Quote:
Originally posted by NTLDR
In newthread.php place the code after:
PHP Code:
// update forum stuff
if ($visible==1) {
$DB_site->query("UPDATE forum SET replycount=replycount+1,threadcount=threadcount+1,lastpost='".time()."',lastposter='".add$
}
Then the bot will show as the last poster, and newreply.php after:
PHP Code:
} else {
$DB_site->query("UPDATE thread SET lastpost='".time()."',replycount=replycount+1,lastposter='".addslashes($postusername).$
}
}
|
I did as you advised NTLDR, however my bot isn't showing as the last user posted on my forumhome. However it is showing up as the last poster on my forum itself.
EDIT: Stand corrected...it is only newreply.php that it doesn't show. Newthread.php works.
EDIT 2: Okay figured out how to make it work. Instead of adding
PHP Code:
include "tomstalkerbot.php";
after
PHP Code:
} else {
$DB_site->query("UPDATE thread SET lastpost='".time()."',replycount=replycount+1,lastposter='".addslashes($postusername).$
}
}
in newreply.php, add
PHP Code:
include "tomstalkerbot.php";
after
PHP Code:
// update forum stuff
if ($visible==1) {
$DB_site->query("UPDATE forum SET replycount=replycount+1,lastpost='".time()."',lastposter='".addslashes($postusername)."' WHERE forumid IN ($foruminfo[parentlist])");
}
in newreply.php
This will make it show up on the forumhome