![]() |
Hi,
please post that or a reference into the Hack Releases forum, thx for your work, -Tom |
OK... I want to make it so that all my admins have glowing usernames in threads while everyone else doesn't.
Now... the question is... What am I doing wrong? I've tried this and I still don't get glowing admins. I know I can make everyone glow... but... aggh. This is under ### start buildpostbit ### function getpostbit($post) in board/admin/functions.php vB ver 2.0.3 PHP Code:
I am a PHP newbie... but I saw $usergroupid=$bbuserinfo['usergroupid']; used further down in functions.php and figured it should work... But I guess not. Any suggestions? |
looks to me like $bbuserinfo isn't defined in that section (see the global line for what variables are usable)
at least, that's my best guess. |
Ah, and you're using an admin function, that I assume is only for the Admin CP. try showthread.php, member.php, or functions.php. Where are you trying to make it glow? In threads, the memberlist, user info...?
|
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:
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:
|
I dont have a
############## Start buildpostbit ############ In admin / functions.php and i am running 2.01, any suggestions? |
Quote:
|
ahh ok, will do!
|
Quote:
|
I toyed with the variables that show in postbit, and here's the one I found:
$userinfo[usergroupid] That displays the number of the usergroup. Try that instead of $bbuserinfo[usergroupid]. |
All times are GMT. The time now is 04:59 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|