View Full Version : Please help me!! >.<
Koutaru
03-11-2003, 12:19 AM
I have a pretty active forum but place strict rules over them. However, some members are asking for a "spam forum" The only problem is, I have a "gil" hack from Bitsys's battle hack and I don't want them to gain any points or posts for every post they place in the spam forum...
Can someone help me??
Thanks!! :glasses:
Erwin
03-11-2003, 12:22 AM
Just make posts in that forum not count. Then edit the newthread.php and newreply.php files to exclude that forum from gaining points.
Koutaru
03-20-2003, 10:03 PM
Sorry for being a newbie but how exactly do I edit newthread.php and new reply.php
The PHP part is this:
// Itemshop code by Mewtwo and Battle Code by Bitsys
if($foruminfo[countposts]) {
$options=$DB_site->query_first("SELECT padd,pointfield,lesanestore FROM items_options");
if(!$options[2]) {
$pointfield="$options[pointfield]";
if($pointfield) {
$points = $DB_site->query_first("SELECT $pointfield FROM userfield WHERE userid='$bbuserinfo[userid]'");
$DB_site->query("UPDATE userfield SET $pointfield=$points[0]+$options[padd] WHERE userid=$bbuserinfo[userid]");
}
}
$battleopt = $DB_site->query_first("SELECT givepostexp, expperpost FROM battle_options");
If($battleopt[givepostexp] == 1 && $battleopt[expperpost] > 0)
$DB_site->query("UPDATE user SET xp=xp+$battleopt[expperpost] WHERE userid='$bbuserinfo[userid]'");
}
// End Itemshop code by Mewtwo and Battle Code by Bitsys
Xenon
03-20-2003, 10:08 PM
the code is correct already:
if($foruminfo[countposts]) {
so just disable count posts in that forum via your acp and it won't add points to a users postcount also
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.