PDA

View Full Version : Invisible postbits.


MartynJ
07-12-2003, 05:19 PM
I need some code to place in admin/functions.php

It's at the part which decides which postbit to send for eval. You have something like:

if bbuserinfo[ignore]=1
{
eval postbit_ignore;
}
else
{
eval postbit
}

I need to add another part in which checks to see if a post is nuked, and then if it is, AND the user viewing it is a mod or admin, then the post is shown, but if a normal user views it, they are shown a postbit which is blank (effectively, nothing).

all-the-vb
07-13-2003, 08:13 AM
i don't understand what you want to do
because my english is not good
but see that

if ($bbuserinfo[ignore] != 1 AND $bbuserinfo[usergroupid] == 6)
{
eval postbit
}
else
{
eval postbit_ignore;
}


???

MartynJ
07-13-2003, 11:12 AM
Just figured it out, thanks.