No announcement yet.

Using <if> command in <head>

  • Filter
  • Time
  • Show
Clear All
new posts

  • Using <if> command in <head>

    Question. I am using pop-unders in a forum, but I don't them want them to show up for certain member groups. Will using the <if condition> with the usergroup variable work in the <head> section, because that's where obviously the pop-under code needs to go.

    Thank you.

  • #2
    From the styles manager click on the dropdown and select common templates, the header includes template is there, which is where you can put code for <head>


    • #3
      No I know that, my question is whether using the <if condition> with the usergroup variable IN the <head> section will actually work.

      Sorry for the confusion.

      I know how to do it, I just don't know if using that code will work actually work the way I want in there.


      • #4
        <if condition="$this == 'that'">.. <else /> .. </if>

        that is a template conditional.. they're made to be in templates.
        If the variable you're looking for to use is available in that template, yes.

        Usergroup and forum id numbers are most likely available in that template.


        • #5
          Cool guess I'll give it a shot and see what happens. I have seen forum ID's in there, so I'll hope for the best.



          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.