The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Hi,
please post that or a reference into the Hack Releases forum, thx for your work, -Tom |
#12
|
||||
|
||||
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? |
#13
|
|||
|
|||
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. |
#14
|
|||
|
|||
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...?
|
#15
|
||||
|
||||
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:
|
#16
|
|||
|
|||
I dont have a
############## Start buildpostbit ############ In admin / functions.php and i am running 2.01, any suggestions? |
#17
|
|||
|
|||
Quote:
|
#18
|
|||
|
|||
ahh ok, will do!
|
#19
|
||||
|
||||
Quote:
|
#20
|
|||
|
|||
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]. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|