View Full Version : Conditionals Help!!
Sweeks
04-13-2009, 12:05 PM
I am trying to show some data on the MEMBERINFO template which I want only to show if the user is viewing their own profile and not everyone else so I think I need a conditional for it. I have searched the conditionals lists Ive found online but no success so far. Hope someone can help :)
Thank you.
________
Payment Protection Insurance Dicussion (http://www.insurance-forums.org/payment-protection-insurance/)
nexialys
04-13-2009, 12:10 PM
if $bbuserinfo[userid] == $vbuserinfo[userid] >
this is when you hit the visitor to the visited...
Sweeks
04-13-2009, 12:12 PM
It isnt working :(
<if $bbuserinfo[userid] == $vbuserinfo[userid]>
<div>
$variable here
</div>
</if>
It wont allow me to save.
--------------- Added 1239628574 at 1239628574 ---------------
I have also tried this but not working:
<if condition="$bbuserinfo[userid] == $vbuserinfo[userid]">
<div>
$myvariable
</div>
</if>
That allows me to save but the data disappears completely on all profiles :(
--------------- Added 1239628786 at 1239628786 ---------------
I have also tried this but back to square one.
<if condition="$bbuserinfo[userid] == $bbuserinfo[userid]">
<div>
$myvariable
</div>
</if>
________
Herbal Health (http://herbalhealthshop.com)
EnIgMa1234
04-13-2009, 12:55 PM
It isnt working :(
<if $bbuserinfo[userid] == $vbuserinfo[userid]>
<div>
$variable here
</div>
</if>
It wont allow me to save.
--------------- Added 1239628574 at 1239628574 ---------------
I have also tried this but not working:
<if condition="$bbuserinfo[userid] == $vbuserinfo[userid]">
<div>
$myvariable
</div>
</if>
That allows me to save but the data disappears completely on all profiles :(
--------------- Added 1239628786 at 1239628786 ---------------
I have also tried this but back to square one.
<if condition="$bbuserinfo[userid] == $bbuserinfo[userid]">
<div>
$myvariable
</div>
</if>
Try this:
<if condition="$bbuserinfo[userid] == $prepared[userid]">
<div>
$variable here
</div>
</if>
Sweeks
04-13-2009, 12:59 PM
Great thank you so much!!!
I now need the reverse of the first one lol
So I would have basically if it isnt your own profile show $mysecondvariable on this users profile who isnt my own profile if you get me. I hope this is possible :D
Thanks so much.
________
SILVER SURFER VAPORIZER REVIEWS (http://vaporizerinfo.com/)
EnIgMa1234
04-13-2009, 02:27 PM
Great thank you so much!!!
I now need the reverse of the first one lol
So I would have basically if it isnt your own profile show $mysecondvariable on this users profile who isnt my own profile if you get me. I hope this is possible :D
Thanks so much.
<if condition="$bbuserinfo[userid] !== $prepared[userid]">
<div>
$mysecondvariable
</div>
</if>
Lynne
04-13-2009, 02:38 PM
Great thank you so much!!!
I now need the reverse of the first one lol
So I would have basically if it isnt your own profile show $mysecondvariable on this users profile who isnt my own profile if you get me. I hope this is possible :D
Thanks so much.
<if condition="$bbuserinfo[userid] !== $prepared[userid]">
<div>
$mysecondvariable
</div>
</if>
Or just add an else to the first one:
<if condition="$bbuserinfo[userid] == $prepared[userid]">
<div>
$variable here
</div>
<else />
<div>
$mysecondvariable
</div>
</if>
Sweeks
04-13-2009, 02:39 PM
Awesome, thank you very much!!! I would give rep if I could :)
________
MAINE MEDICAL MARIJUANA DISPENSARY (http://maine.dispensaries.org/)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.