Log in

View Full Version : Different Postbit For Premium Members


mcyates
06-07-2003, 01:03 PM
Is it possible to have a different postbit for premium members. Such as Different Colour? And different layout?

Please reply a.s.a.p

Thanks

Chris M
06-07-2003, 01:49 PM
Open 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 with:
// do posts from ignored users
if (($ignore[$post[userid]] and $post[userid] != 0)) {
eval("\$retval = \"".gettemplate("postbit_ignore")."\";");
} elseif ($bbuserinfo[usergroupid]==X) {
eval("\$retval = \"".gettemplate("postbit_contributor")."\";");
} else {
eval("\$retval = \"".gettemplate("postbit")."\";");
}(Replace X with the id of the contributor's postbit):)

Satan

mcyates
06-07-2003, 01:56 PM
thankyou very much

mcyates
06-07-2003, 01:57 PM
how does it know if the member is a contributor? Is there contribution hack or does it work on usergroupds

Xenon
06-07-2003, 02:00 PM
usergroupids :)

also you can look into my custom postbit for users hack, it can be used for specific usergroups also :)

mcyates
06-07-2003, 02:05 PM
thanks mate!!!