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

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

Author Topic: AutoMsg.php  (Read 5824 times)

0 Members and 1 Guest are viewing this topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
AutoMsg.php
« on: July 17, 2007, 10:39:59 pm »
AutoMsg

This is Like a cross between !announce and !news

it will send a msg to every 1 online and save the msg and then send it to other members when they log on.
u can do as many messages as you want.
a message will only be sent once.
messages can be deleted at any time.

it Now Only Sends the Message to 1 Alt

!automsg - Show messages
!automsg add <msg> - Add msg and send to members online
!automsg del <ID> - Delete message
!automsg rem <ID> - Delete message

Change Log

  • 18/07/07 - Added Alts Feature and Removed Bug were you had to have atleast 2 words in the msg
  • 20/07/07 - Fixed 2 Bugs (see topic)
  • 25/07/07 - Now useing cache for messages
  • 25/07/07 - Added a Check to see if Loging on or Off

Moved to 0.4 Board Clicky
« Last Edit: August 03, 2007, 12:57:24 am by Temar »

Offline Nytridr

  • BeBot Expert
  • ****
  • Posts: 262
  • Karma: +0/-0
    • Rising Sun
Re: AutoMsg.php
« Reply #1 on: July 21, 2007, 12:13:39 am »
Code: [Select]
Fatal error: Cannot use string offset as an array in C:\aobots\Bebot\custom\modu
les\AutoMsg.php on line 100

Code: [Select]
MySQL error (# 0) on query: ALTER TABLE rsbot_users ADD `lastmsg` TINYINT(5) DEF
AULT '0' NOT NULL
Duplicate column name 'lastmsg'

I can
Code: [Select]
//$db -> query("ALTER TABLE  #___users ADD `lastmsg` TINYINT(5) DEFAULT '0' NOT NULL");
 
  to get rid if the the last error, but I think the fatal you get to have fun with it..  This is using the latest svn, would love to have this included in svn along with !mail 
Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: AutoMsg.php
« Reply #2 on: July 21, 2007, 12:39:42 am »
would love to have this included in svn along with !mail
Won't happen before 0.4 is released though ;)

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: AutoMsg.php
« Reply #3 on: July 21, 2007, 01:37:55 am »
Bugs Fixed

It will now only attempt to Alter the Table and add the Extra field if it doesnt exist( this error will apear if you have no members tho)

Quote
Fatal error: Cannot use string offset as an array in C:\aobots\Bebot\custom\modu
les\AutoMsg.php on line 100
Should now be fixed (untested)

Offline Nytridr

  • BeBot Expert
  • ****
  • Posts: 262
  • Karma: +0/-0
    • Rising Sun
Re: AutoMsg.php
« Reply #4 on: July 21, 2007, 02:43:07 am »
Bugs Fixed

It will now only attempt to Alter the Table and add the Extra field if it doesnt exist( this error will apear if you have no members tho)

Quote
Fatal error: Cannot use string offset as an array in C:\aobots\Bebot\custom\modu
les\AutoMsg.php on line 100
Should now be fixed (untested)

so far so good.. i will keep testing it but at least it loads up and dont do fatal errors anymore..
Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: AutoMsg.php
« Reply #5 on: July 25, 2007, 05:22:43 am »
Now useing Cache for Messages

 

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


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


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


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 468
  • 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