collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Standard BeBot News Module + My MOTD module = NewNews!  (Read 23677 times)

0 Members and 3 Guests are viewing this topic.

Offline neongen

  • BeBot User
  • **
  • Posts: 64
  • Karma: +0/-0
Re: Standard BeBot News Module + My MOTD module = NewNews!
« Reply #15 on: November 24, 2006, 06:27:54 am »
oki i'll play a little with it... can only get worse :P

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: Standard BeBot News Module + My MOTD module = NewNews!
« Reply #16 on: December 06, 2006, 06:20:57 pm »
Like MOTD, does this display MOTD/News on login?
Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

Offline neongen

  • BeBot User
  • **
  • Posts: 64
  • Karma: +0/-0
Re: Standard BeBot News Module + My MOTD module = NewNews!
« Reply #17 on: December 06, 2006, 06:35:06 pm »
i should do if you set it up the rigth way  ;)

Offline Bart

  • BeBot User
  • **
  • Posts: 39
  • Karma: +0/-0
Re: Standard BeBot News Module + My MOTD module = NewNews!
« Reply #18 on: December 06, 2006, 07:39:15 pm »
k I know I am kinda stupid, BUT!! I have reread and re applied everything int he instuctions a few times now and still getting "Fatal error: Call to a member function save() on a non-object in modules\NewNews.php on line 51" what I am too dumb to get right?


Bart

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Standard BeBot News Module + My MOTD module = NewNews!
« Reply #19 on: December 06, 2006, 08:01:43 pm »
"Fatal error: Call to a member function save() on a non-object in modules\NewNews.php on line 51" what I am too dumb to get right?

Read the first post. You need to install my Module Settings module first.

Offline Bart

  • BeBot User
  • **
  • Posts: 39
  • Karma: +0/-0
Re: Standard BeBot News Module + My MOTD module = NewNews!
« Reply #20 on: December 06, 2006, 11:14:41 pm »
see told ya I was dumb, I can't even read.. modules settings not MOTD module... rofl, what an idiot I am ...... thx Glarawyn...

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Standard BeBot News Module + My MOTD module = NewNews!
« Reply #21 on: December 29, 2006, 05:39:01 pm »
Updated to 0.9.5.

Changes:

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: Standard BeBot News Module + My MOTD module = NewNews!
« Reply #22 on: December 30, 2006, 06:02:27 pm »
I love it!
Luuv  Bot-Keeper of Vengeance ^^*

Offline vertek

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: Standard BeBot News Module + My MOTD module = NewNews!
« Reply #23 on: April 19, 2007, 04:01:48 am »
Hello!
first off i wanna say im new to PHP, mysql, and ao bots.
But I know enough about programming to understand what i read.

I've got 0.2.11 up and running, even with a few adjustments.
One thing I can't figure out is !news never <message>.

It appears to work just fine, but when i check !news and even the sql table the item i just input did not show up.

I checked the code over a couple of times but i cant see anything wrong.  ???


anyone help me out?

Vert~

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Standard BeBot News Module + My MOTD module = NewNews!
« Reply #24 on: April 19, 2007, 08:01:44 pm »
Check your console when doing the command, most likely theres a sql insert problem.
Eternalist
General of The Syndicate

Offline vertek

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: Standard BeBot News Module + My MOTD module = NewNews!
« Reply #25 on: April 20, 2007, 12:25:27 am »
MySQL error (# 0) on query: INSERT INTO news (id, name, expiretime, news) VALUES
 (1177021079, 'Vertrig', 5471988374, 'This is a test')
Out of range value adjusted for column 'expiretime' at row 1


There we go, now to dig in and fix it :D

Vert~

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Standard BeBot News Module + My MOTD module = NewNews!
« Reply #26 on: April 20, 2007, 05:25:35 pm »
From what I can tell, it sets a 'never' time as the max for int unsigned field, then it is adding the current timestamp onto that and trying to insert it, which isn't going to work as your already at the max the field is capable of. Hence you are getting the "Out of range.." error. I guess it should only be adding the $now if it's !never?
Eternalist
General of The Syndicate

Offline Ornaola

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: Standard BeBot News Module + My MOTD module = NewNews!
« Reply #27 on: April 24, 2007, 05:34:57 pm »
getting that error too , no idea how to fix  ::)

also cant see, to get latests news as motd, it only shows last added news and motd   :(

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Standard BeBot News Module + My MOTD module = NewNews!
« Reply #28 on: April 24, 2007, 05:47:17 pm »
Find L316:
Code: [Select]
$expire_sec = $this -> make_seconds($expirenum, $expireunits);

Replace L317:
Code: [Select]
$expire = $now + $expire_sec;

With:
Code: [Select]
if ($expire_sec == 4294967295)
{
$expire = $expire_sec;
}
else
{
$expire = $now + $expire_sec;
}

That should fix it. Odd though it works perfectly for me. Must be another difference between the MyISAM and InnoDB storage engines...

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 354
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal