View Full Version : Usergroup Usertitle HTML Markup
Athena PMS
12-20-2007, 06:48 AM
Is it possible to do markup for a usertitle like the username for entire usergroups. But apply the HTML markup to all usertitles of the usergroup including admin set custom ones. For example we have usergroups with all custom admin set titles but we all want them to be one color based on the usergroup. We would rather not manually add color HTML markup to every user we change their usertitle to.
Is this possible through a template hack/mod?
Thank You :)
Triky
12-20-2007, 09:01 AM
vBAdminCp --> Manage Usergroups --> Edit --> HTML Markup.
There you can set a usergroup based color. :)
Athena PMS
12-20-2007, 09:14 AM
Yes I know you can, my question is doing the exact same for custom usertitles
Thanks
dismas
12-20-2007, 11:25 AM
Try this (I haven't tested it to see if it works but I think it will)
Find in your post bit template
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
replace with:
<if condition="$post['usertitle']"><div class="smallfont"><if condition="is_member_of($bbuserinfo, X, Y, Z)"><font color="#FF00FF">$post[usertitle]</font><else />$post[usertitle]</if></div></if>
Replace the X, Y, Z with the id numbers of the usergroups that you want a specific color for. And change the #FF00FF to whatever color you like (http://en.wikipedia.org/wiki/Web_color)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.