Chatbox auto prune (delete) messages

1. Open chatbox_autoprune.php, edit

$daysold = 0;

Change 0 to the number of days old messages should be pruned (leave 0 to prune all messages)

2. Upload chatbox_autoprune.php to your includes/cron/ folder

3. In your AdminCP, create a new Scheduled Task

Varname: chatbox_autoprune
Title: Chatbox Auto-Prune
Day of the month/Hour etc: choose the time when the script should be run
Active: Yes
Log Entries: No
Filename: ./includes/cron/chatbox_autoprune.php
Product: Chatbox

4. Save the new Scheduled Task. Run it if you want to test it out.


====================================================================
====================================================================

Chatbox auto post message

1. Open chatbox_autopost.php, edit

$user = 'Announcer';
$userid = 0;
$message = '[COLOR=RoyalBlue]This message was posted by the system![/COLOR]';

$user is the user name, $userid is the user ID the name should link to, and $message is the message to post.

2. Upload chatbox_autopost.php to your includes/cron/ folder

3. In your AdminCP, create a new Scheduled Task

Varname: chatbox_autopost
Title: Chatbox Auto-Post
Day of the month/Hour etc: choose the time interval the message should be posted
Active: Yes
Log Entries: No
Filename: ./includes/cron/chatbox_autopost.php
Product: Chatbox

4. Save the new Scheduled Task. Run it if you want to test it out.
