The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Colored usernames in postbit?
werd, I have been trying to get this to work for ages now, but I cant seem to on 228/229 its werid.
anyone help shed some light on this? I wanna set my users postbit username to a color based on their usergroup. (admins red, mods green, users blue) I tried this code.. but it just didnt change anything. no errors, just didnt work. PHP Code:
thanks.. -myles |
#2
|
||||
|
||||
you should use this:
PHP Code:
|
#3
|
||||
|
||||
Make sure in your postbit template the code you have listed is not $post[username] but $post[specialusername].
There isn't really any point in creating a new variable, just re-use $post[username] for all the if statements. The code seems to be correct, but you might have just forgot to place something in.. edit: gah, Xenon replies out of no-where :ninja: Ignore my post, skipped the part referring to usergroup, not userid. |
#4
|
|||
|
|||
what file do you insert the PHP code into?
|
#5
|
||||
|
||||
functions.php getpostbit section
|
#6
|
|||
|
|||
ok i found a section called buildpostbut but no getpostbit, I tried entering that code into that section and that did not work either.
|
#7
|
||||
|
||||
the function ist called getpostbit, if you don't find it, you have a corrupted file and your board wouldn't work
|
#8
|
|||
|
|||
Well my board is working becuase im testing it on my home server right now. I am Using ArieSoft WinSyntax as my editor and I did a search through a couple of file for it including admin/functions.php and nothing came up, I even manually searched the file and found nothing. All I can find in 2.2.9 is buildpostbit.
|
#9
|
|||
|
|||
Quote:
|
#10
|
||||
|
||||
lin 57-63 on a unhacked 229 functions.php:
PHP Code:
and you have to put the code into this function, |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|