The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Case Statement with UserID
Hello,
I cannot find a plugin that will allow us to change the color of different users without placing them in their own separate, secondary usergroup. So my idea was to place this code in the postbit and just edit accordingly. It will basically just change the span around the username based on their UserID. Your help with this would be greatly appreciated: Code:
<?php switch ($bbuserinfo['userid']) { case 0: <span style="color: #ffeab1;">; case 1: <span style="color: #ffeab1;">; case 2: <span style="color: #ffeab1;">; default: <span>; } ?> |
#2
|
||||
|
||||
Create a plugin in postbit_display_start, and utilize the variable you create in the postbit template. Or if you'd like to just ditch the php, you can always use template conditionals in the postbit template.
https://vborg.vbsupport.ru/showthread.php?t=216367 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|