The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Conditional Help
<if condition="is_member_of($vbulletin->userinfo, 5, 6)">
<font size="1"><div class="info" align="center"><center>$post[field41]<center><br></div></font> </if> This displays custom profile field 41 on the postbit_legacy if a user is a super-mod or admin. How can I make it *also* display to the user themself? thanks! |
#2
|
|||
|
|||
Try changing the condition to :
Code:
<if condition="is_member_of($vbulletin->userinfo, 5, 6) OR ($post[userid] == $vbulletin->userinfo[userid])"> |
#3
|
|||
|
|||
awesome! ty!
|
#4
|
|||
|
|||
Doesn't seem to be working... any other ideas?
|
#5
|
|||
|
|||
(removed.... sorry did not read the entire question... please delete, thanks.)
|
#6
|
|||
|
|||
Hmm...maybe try using $bbuserinfo in place of $vbulletin->userinfo?
|
#7
|
|||
|
|||
That didn't work either
|
#8
|
|||
|
|||
Anyone else want to give it a shot? The full code is:
I want the tab to show to Admins, Mods, Usergroup 32, *AND* the poster themselves. Everything's working except the original poster can't see the tab. <!--TAB CONTENT --> <div id="tab8$post[postid]" class="tabcontent"> <if condition="$post['field57']"> <div style="background-color:#1A1A1A; padding:5px; border: 1px dimgrey solid"> <div class="info"><if condition="$post['field57']">$post[field57]</if></div> <if condition="is_member_of($bbuserinfo, 5,32) OR $show['moderatethread']"> <font size="1"><div class="info" align="center"><center>$post[field70]<center><br></div></font> </if> <div class="info" align="center"><if condition="$post['field51']"> <img src="$post[field51]" width="100" border="1" /><br></if></div> <div class="info"><if condition="$post['field63']"><br><font size="1"> $post[field63]</font></if></div> </div> </if> </div> |
#9
|
|||
|
|||
Hey, I remember this
Anyway, I just tried this in my postbit_legacy template: Code:
<if condition="$bbuserinfo[userid] == $post[userid]"> This is my post!!! </if> Code:
<if condition="is_member_of($bbuserinfo, 5,32) OR $show['moderatethread'] OR $bbuserinfo[userid] == $post[userid]"> (If not, this is really my last try...) |
#10
|
||||
|
||||
I use that first part myself kh99, take a look here for some conditionals http://tech6.com/f51/vbulletin-templ...als-list-t112/
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|