Quote:
Originally Posted by discrob
I grabbed the shoutbox that was posted on the gazelle forums and am wondering if anyone has figured out how to add new torrents announce to it?
|
mod this source it shouldn't be to difficult
PHP Code:
$text = ":hi: [color=green]To our newest member[/color]".htmlspecialchars($wantusername)."[color=orange] we hope you enjoy your stay[/color]";
$userid = 1;
$username = greentide;
//$date=time();
$date=time()-3600;
mysql_query("INSERT INTO shoutbox (id, userid, username, date, text) VALUES ('id'," . sqlesc($userid) . ", " . sqlesc($username) . ", $date, " . sqlesc($text) . ")") or sqlerr(__FILE__, __LINE__);
$added = sqlesc(get_date_time());
?>
This will obviously need to be modded, I havent done it but i will have a look see