Announcement

Collapse
No announcement yet.

Template Conditionals

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • oldengine
    replied
    Nope.

    That line is followed with:

    Code:
    <img src="images/forum_pics/$forumid.gif" alt="$foruminfo[title]" border="0" />
    Each forum getting a different graphic in the section after the navbar. They also get $foruminfo[title] and $foruminfo[description]

    Thanks for the ! though.

    Leave a comment:


  • Floris
    replied
    If you have 150 forums, but only want to not show it in 5. Then perhaps you should move it around.

    ! makes it NOT IN ..

    So instead of doing in array 1-145
    You could !in_array list-only-5

    <if condition="!in_array($forumid, array(3,8,9,10,20,65))">

    Leave a comment:


  • oldengine
    replied
    That's the one that worked, thank you. Now if I don't go into array overload.

    Code:
    <if condition="in_array($forumid, array(1,2,4,5,6,7,18,21,22,23,25,27,28,32,34,36,38,39,42,43,45,51,54,56,57,59,60,64))">

    Leave a comment:


  • Floris
    replied
    I always use this one:
    <if condition="in_array($forumid, array(5,6))">

    Leave a comment:


  • peterska2
    replied
    The first one works on all pages in that forum including forumdisplay and showthread

    The second one only works on forumdisplay

    The third one is another way of doing the first one

    Leave a comment:


  • oldengine
    started a topic Template Conditionals

    Template Conditionals

    Could someone please shed some light on the differences in the lines below?
    Code:
    <if condition="in_array($forumid, array(5,6))">
    
    <if condition="in_array($forum['forumid'], array(5,6))">
    
    <if condition="in_array($GLOBALS[forumid], array(5,6))">
    I'm looking to use a version of these in FORUMDISPLAY and SHOWTHREAD
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X