The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
user title html markup
Vbulletin by default has the usergroup > html markup feature. However, I'd like one specifically for user TITLE html markup as well. Couldn't find any here, either in modification graveyard or not quite that feature but close.
I tried to figure it out on my own, but not a coder by trade. For one, I want this applied in postbit_legacy at least. So I went to that template. I see this: Quote:
Quote:
|
#2
|
||||
|
||||
<if condition="is_member_of($bbuserinfo, 2,6,7,35)">
for just admins and mods: <if condition="is_member_of($bbuserinfo, 5, 6, 7)"> |
#3
|
||||
|
||||
So where on the postbit template do you place the code
<if condition="is_member_of($bbuserinfo, 5, 6, 7)"> Dan |
#4
|
||||
|
||||
Around the item that you only want shown to users in usergroup 5, 6, or 7.
|
#5
|
||||
|
||||
Like this?
<if condition="is_member_of($bbuserinfo, 5, 6, 7)"><div class="smallfont">$post[usertitle]</div></if> if so it didn't work for me? |
#6
|
||||
|
||||
What is it you are trying to do? What you are trying to do will influence what variables to use. The condition that is written will only show certain information to a user if the *user looking at the thread* is a moderator/supermod/admin. If you only want to show it if the poster is a moderator/supermod/admin, then use $post in the condition.
|
#7
|
||||
|
||||
Basically I want to have my user title have the colour like my username for example :
in my postbit I have at the min this: Dannykilla Guild Leader I want it to show this: Dannykilla Guild Leader |
#8
|
||||
|
||||
It's not quite that easy to do what you want. Your username actually gets processed through a function called fetch_musername to determine what is should be displayed as. You might be able to modify that function to do the same for the title (includes/functions.php). It might be easier to just modify the postbit to add the style directly. ie for red admins:
HTML Code:
<if condition="is_member_of($post, 6)"><div style="color:red;">$post[usertitle]</div></if> |
#9
|
||||
|
||||
Thanks Lynne, but I have sorted it now I just copied the <span style .... >
into the User title box and that worked !!!!! |
#10
|
||||
|
||||
Yes, if you use that, then that would work also. (I don't use that so I'd have to do it a different way on my site.)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|