The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to show usergroup title markup for one group to all
I want to show one of my usergroups title as a certain markup. The code i want to use for the markup is:
Code:
<span style="font-weight:bold;font-style:italic;color:red;">$post[usertitle]</span> Code:
<if condition="$post['usertitle']"><div class="smallfont"><if condition="$bbuserinfo[usergroupid] == 9"><span style="font-weight:bold;font-style:italic;color:red;">$post[usertitle]</span> <else />$post[usertitle]</div></if></if> |
#2
|
|||
|
|||
Is there some reason you're not just entering the markup for the usergroup in the ACP? (Maybe because you only want it in postbit?)
Anyway, I think you want something like: Code:
<if condition="is_member_of($post, 9)"> if you use $bbuserinfo it will check the current user (the one viewing), not the one for each post. |
#3
|
|||
|
|||
I do not want it just for one post. And I already tried doing the markup in the usergroup itself. It allows for markup for the username only I guess. I tried both html & bb code neither works. I've attached a couple of screenshots to show what I'm trying to do.
postbit explanation Cannot place html or bb markup in this space. |
#4
|
|||
|
|||
OK, sorry - I missed that "title" in your first post. So anyway, did you try that condition? (Here's what you posted with the condition changed)
Code:
<if condition="$post['usertitle']"><div class="smallfont"><if condition="is_member_of($post, 9)"><span style="font-weight:bold;font-style:italic;color:red;">$post[usertitle]</span> <else />$post[usertitle]</div></if></if> And I also don't know about this but just so it won't get lost: Quote:
|
#5
|
|||
|
|||
Hey that worked. Thanks. Now for the other one.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|