The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#5
|
||||
|
||||
![]()
Create a function, get_member_background($userinfo). Have it return the color you want. Define it in a plugin on global_complete or something.
Do you want to be able to call this function in a template? If so, add another plugin on the template_safe_functions hook, and then add your function name into the allowed functions for conditionals, like so: PHP Code:
HTML Code:
<vb:if condition="$post['background'] = get_member_background($post)"><div class="{vb:raw post.background}"> <vb:else /> <div class="userinfo"> </vb:if> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|