PDA

View Full Version : conditional needed


GoTTi
04-20-2006, 09:56 PM
i guess its a conditional.

i need to stop the showing of the rep icon in a certain forum. how would i be able to do that?

peterska2
04-20-2006, 10:38 PM
<if condition=$vboptions[forumid]!=x">
Rep Icon Code
</if>should work. I've not tested it, but if I remember correctly then thats the one.

Paul M
04-20-2006, 10:51 PM
I'm pretty sure that won't work - try using $foruminfo[forumid]

peterska2
04-20-2006, 10:53 PM
oops. yup, your right. You saved my bacon again there Paul :)

GoTTi
04-22-2006, 02:06 PM
peter can u give me a complete idea of what the code will look like and what template this goes into. thanks.

Zowners
04-22-2006, 02:59 PM
I'm pretty sure you would just find the coding that dispays it, and put that conditional around it. Go into your ftp and find the name of the rep icon, and then do a search for the name of the icon. Then find where it displays the image source and everything, and condtionalize it.. Is conditionalize a word?

EDIT: I went and got mine:

<if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" /></a></if>

GoTTi
04-22-2006, 04:39 PM
so should it look this this???

<if condition=$foruminfo[forumid]!=64">
<if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> &nbsp;</if></if>

cuz i tried that and its wrong

peterska2
04-22-2006, 04:44 PM
<if condition="$forum[forumid]!=64">
<if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> &nbsp;</if></if>

Try that. I changed the first line to parse correctly, plus changed $foruminfo to $forum

and yes, this is the postbit template.

Zowners
04-22-2006, 04:46 PM
:) You are welcome!

GoTTi
04-22-2006, 05:42 PM
rep icon are still showing

Zowners
04-22-2006, 06:01 PM
it could be that I am using a skin that uses different things. I just gave you mine as an idea.