PDA

View Full Version : Post Count Hack


Mike Cout
03-16-2003, 11:55 AM
Hi,

My board has had a spam problem lately, i thought it would be nice if i was able to change their post counts to "????"

I was thinking that it could probly be done using an if statment. Something like if ($userid == 1) then change there post count to "????".

I am not very good with php and do not know how to do this, only scripting im really familar with is actionscript (flash).

Thanks,
-Mike

Xenon
03-16-2003, 12:43 PM
open admin/functions.php

find that: if (($ignore[$post[userid]] and $post[userid] != 0)) {
eval("\$retval = \"".gettemplate("postbit_ignore")."\";");
} else {
eval("\$retval = \"".gettemplate("postbit")."\";");
}

add this line before:
if ($post['userid'] == x) $post['posts'] = '???';

Mike Cout
03-16-2003, 01:25 PM
thanks alot!

ill try it later tonite

-Mike