I have only one block. I've setup a conditional in the Forum Blocks Manager text area (html) but it's not working. Could this have something to do with the fact that I have the block displayed (sidebar) on all pages (not just forumhome)? If so, why?
Announcement
Collapse
No announcement yet.
Do conditionals work in block code?
Collapse
X
-
It should not matter. Also, we cant know for sure unless we can see the code.
Finally, all code related talks are better off in http://vbulletin.org where more experienced coders hang out
-
Thank you.. If nothing looks obviously wrong with the code below, I'll check with the .org members. In any event, here's what I have:
PHP Code:<vb:if condition="THIS_SCRIPT !== 'register'"><vb:if condition="THIS_SCRIPT !== 'faq'"><vb:if condition="!is_member_of($bbuserinfo, 13,14,28,41,45,64,65,66,71)">
MY CODE
</vb:if></vb:if></vb:if>
Any ideas?
Comment
-
Some of the reading I've done suggests the content below is unnecessary, as it appears to have been included as part of the stock code since 3.5+, sorry to clutter your thread.
Code:--old-- Since you want to compare to multiple groups at once, make sure you have a version of is_member_of that will support multiple groupids at once. Example: http://www.vbulletin.org/forum/showthread.php?t=61149 (Old so may not work) Another page that might be of help: https://www.vbulletin.com/forum/proj...p?issueid=5755
Last edited by neptune_; Sun 1 Apr '12, 6:02pm.
Comment
Related Topics
Collapse
-
by SiForIm trying to add a conditional statement to the "display_Forums_item" template to display an icon next to one specific forum / node.
I have tried
Code:<vb:if condition="$channel['nodeid']
-
Channel: Support Issues & Questions
Fri 27 Dec '13, 5:30pm -
-
by gatsmanI got an if like:
Code:<vb:if condition="$channel['nodeid'] != 16"> <tr><td>Something</td></tr> </vb:if>
-
Channel: Support Issues & Questions
Tue 22 Apr '14, 6:27am -
Comment