![]() |
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! |
Try changing the condition to :
Code:
<if condition="is_member_of($vbulletin->userinfo, 5, 6) OR ($post[userid] == $vbulletin->userinfo[userid])"> |
awesome! ty!
|
Doesn't seem to be working... any other ideas?
|
(removed.... sorry did not read the entire question... please delete, thanks.)
|
Hmm...maybe try using $bbuserinfo in place of $vbulletin->userinfo?
|
That didn't work either :(
|
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> |
Hey, I remember this :)
Anyway, I just tried this in my postbit_legacy template: Code:
<if condition="$bbuserinfo[userid] == $post[userid]"> 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...) |
I use that first part myself kh99, take a look here for some conditionals http://tech6.com/f51/vbulletin-templ...als-list-t112/
|
All times are GMT. The time now is 05:02 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|