The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vbcode problem
Hi!
I really need help! I have make a vbcode that shows guest a picture and members a text. But it doesn't work, it always show both the pic and the text. Here is the code: <if condition="$show['guest']"> <img src="images/sorry.gif" alt="Sorry" width="120" height="120" border="0" /> <else /> {param} </if> Is there anything wrong? Or is there a hack that make this? Thanks! |
#2
|
||||
|
||||
I'd guess $show[guest] isn't valid... you aren't trying to put this into the custom bbcode settings are you? By default conditionals don't work there, I believe Marco made a hack to change thiws.
|
#3
|
||||
|
||||
Let's say you want the code to show up in Member's Info or Postbit replace:
Code:
<if condition="$show['guest']"> Code:
<if condition="is_member_of($bbuserinfo, 1)"> |
#4
|
||||
|
||||
You are basicly doing the same coditional though, just checking a differnt way
the easiest way, is <if condition="$bbuserinfo[userid]"> If a users id is not valid, they are a guest. However, as I pointed out, if he is trying to do this in certain tempaltes, or the custom bbcode sertings, he doesn't have access to $bbuserinfo, or possibly any of the $show varibles. |
#5
|
||||
|
||||
You're right, Zachery. That was one of the other conditionals which would elimnate all but logged in users. I just have a habit of doing "array" because I add other Usergroups to it.
|
#6
|
|||
|
|||
Quote:
Do you know where I can find the modification from marco? Oh, <if condition="is_member_of($bbuserinfo, 1)"> and <if condition="$bbuserinfo[userid]"> dosen't work. I searching now over 7 hours for a solutions of my problem.... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|