
11-09-2001, 01:10 PM
|
 |
|
|
Join Date: Nov 2001
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally posted by Reno of Shinra
I was just basing this off the above version which uses postcounts...
I set where the glow effect is displayed through my templates... that isn't related to this.
The function is supposed to set the $post[specialusername] to $post[username] plus html formatting...
I KNOW it work, because if I remove the conditional and just say
PHP Code:
$post[specialusername] = "<table style=\"filter:glow(color=orange, strength=4)\"><tr><td>$post[username]</td></tr></table>";
then ALL usernames glow.
That's not a problem.
My problem is that the if statement that checks the usergroupid does not work.
That's the ONLY thing that needs fixing...
As I asked... do i need a different variable in there or something?
$bbuserinfo is declared a few lines above where I pasted code from...
PHP Code:
// ###################### Start buildpostbit #######################
function getpostbit($post) {
// sorts through all the stuff to return the postbit template
// user
global $bbuserinfo,$ignore;
// showthread
global $counter,$firstnew,$sigcache,$highlight,$postid,$forum;
// global options
global $showdeficon,$showonline,$displayemails,$enablepms,$allowsignatures,$wordwrap,$dateformat,$timeformat,$logip,$replacewords,$postsperday,$avatarenabled,$registereddateformat,$viewattachedimages;
// begin glowing admin attempt
$post[specialusername] = $post[username];
$usergroupid=$bbuserinfo['usergroupid'];
if ($usergroupid == 5) { $post[specialusername] = "<table style=\"filter:glow(color=orange, strength=4)\"><tr><td>$post[username]</td></tr></table>"; }
// end attempt
|
same problem : if i don't put the condition it works but fo all the users... now how can we make it work only for the admins
|