View Full Version : Postbit for certain forum
sonic3d
05-28-2003, 02:36 AM
can ne1 make a small hack that will have a different postbit for a certain forum?
l8er
sonic
Logician
05-28-2003, 07:02 AM
edit admin/functions.php, find:
// do posts from ignored users
if (($ignore[$post[userid]] and $post[userid] != 0)) {
eval("\$retval = \"".gettemplate("postbit_ignore")."\";");
} else {
eval("\$retval = \"".gettemplate("postbit")."\";");
}
Replace it as:
// do posts from ignored users
if (($ignore[$post[userid]] and $post[userid] != 0)) {
eval("\$retval = \"".gettemplate("postbit_ignore")."\";");
}
elseif ($forum['forumid']==X)
{
eval("\$retval = \"".gettemplate("postbit2")."\";");
}
else {
eval("\$retval = \"".gettemplate("postbit")."\";");
}
Replace X with your forumid and create a new template named "postbit2". (If you have more than 1 template sets create your template in ALL template sets)
Enjoy..
sonic3d
05-28-2003, 01:00 PM
thanx it worked. many thanks.
l8er
sonic
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.