Showing google adsense in forumdisplay but not to all forums - just selected

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kristijan[cro]
    Member
    • Oct 2005
    • 52
    • 3.5.x

    Showing google adsense in forumdisplay but not to all forums - just selected

    Hello,

    Anybody know how can i show only selected adsense banner in forumdisplay but just to selected forums.

    Example i want to show 728X90 Skyscraper to forumdisplay but only in forum category which is ID: 88, 22, 33, 55, 6, 7

    and for this i create one channel, and for different IDS example 99, 123, 125, 156 i want display another channel.

    is this possible and how can i do it.

    Thanks
  • Andy Huang
    Senior Member
    • Feb 2004
    • 4602

    #2
    Code:
    <if condition="in_array($forumid, array(88, 22, 33, 55, 6, 7))">
    <!-- Skyscraper code here -->
    </if>
    Code:
    <if condition="in_array($forumid, array(99, 123, 125, 156))">
    <!-- another channel here -->
    </if>
    Best Regards,
    Andy Huang

    Comment

    • Jan Klerks
      Senior Member
      • Jul 2002
      • 265

      #3
      How does 'else' fit into this?

      Comment

      • Kristijan[cro]
        Member
        • Oct 2005
        • 52
        • 3.5.x

        #4
        what do u mean else?

        Comment

        • Andy Huang
          Senior Member
          • Feb 2004
          • 4602

          #5
          Originally posted by Jan Klerks
          How does 'else' fit into this?
          Well, since it wasn't specified that it'd be in the same place, I didn't do else tags. But if it is in the same place, it can be done like so:
          Code:
          <if condition="in_array($forumid, array(88, 22, 33, 55, 6, 7))">
          	<!-- Skyscraper code here -->
          <else />
          	<if condition="in_array($forumid, array(99, 123, 125, 156))">
          		<!-- another channel here -->
          	</if>
          </if>
          Further details regarding to template conditionals can be found here:


          And if that doesn't answer the question in mind, feel free to open a new thread in this section, and I -- or someone else on the support team -- will definetly try to help you as soon as we get around to reading the message
          Best Regards,
          Andy Huang

          Comment

          • Kristijan[cro]
            Member
            • Oct 2005
            • 52
            • 3.5.x

            #6
            i will tested tomorow to see if this working

            i need about 15 codes?

            that mean 15 elses or?

            Comment

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