![]() |
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 |
you should use this:
PHP Code:
|
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. |
what file do you insert the PHP code into?
|
functions.php getpostbit section
|
ok i found a section called buildpostbut but no getpostbit, I tried entering that code into that section and that did not work either.
|
the function ist called getpostbit, if you don't find it, you have a corrupted file and your board wouldn't work
|
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.
|
Quote:
|
lin 57-63 on a unhacked 229 functions.php:
PHP Code:
and you have to put the code into this function, :) |
All times are GMT. The time now is 03:16 AM. |
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:
|