Skyrider
12-31-2012, 09:23 AM
I'm trying to use the "Show in one forum" conditional, but I can't get it to work what so ever.
Example:
<vb:if condition="$forum[forumid] == x">Show this if forum id is x</vb:if>
^ This code, trying to apply it to the newthread (forumhome) code:
With example:
<vb:if condition="$forum[forumid] == 35">TEST
<vb:else />
<vb:if condition="$show['newthreadlink']"><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw foruminfo.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top"><span>+</span> {vb:rawphrase post_new_thread}</a></vb:if>
<vb:if condition="$show['threadslist']"></vb:if>
<div class="threadpagenav">
{vb:raw pagenav}
<div id="threadpagestats" class="threadpagestats">{vb:rawphrase showing_threads_x_to_y_of_z, {vb:raw limitlower}, {vb:raw limitupper}, {vb:raw totalthreads}}</div>
</div>
</vb:if>
Now, the Forum ID is 35, as such I only want the text "TEST" to be visible in that section only at the "new thread" location. Just, it doesn't work.. When I replace the == with !=, it works. But it also affects every single section of which I don't want..
Am I doing something wrong, or does the code doesn't work properly?
Example:
<vb:if condition="$forum[forumid] == x">Show this if forum id is x</vb:if>
^ This code, trying to apply it to the newthread (forumhome) code:
With example:
<vb:if condition="$forum[forumid] == 35">TEST
<vb:else />
<vb:if condition="$show['newthreadlink']"><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw foruminfo.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top"><span>+</span> {vb:rawphrase post_new_thread}</a></vb:if>
<vb:if condition="$show['threadslist']"></vb:if>
<div class="threadpagenav">
{vb:raw pagenav}
<div id="threadpagestats" class="threadpagestats">{vb:rawphrase showing_threads_x_to_y_of_z, {vb:raw limitlower}, {vb:raw limitupper}, {vb:raw totalthreads}}</div>
</div>
</vb:if>
Now, the Forum ID is 35, as such I only want the text "TEST" to be visible in that section only at the "new thread" location. Just, it doesn't work.. When I replace the == with !=, it works. But it also affects every single section of which I don't want..
Am I doing something wrong, or does the code doesn't work properly?