1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 ad_sidebar_bottom

Discussion in 'Troubleshooting and Problems' started by upnet, May 8, 2015.

  1. upnet

    upnet Active Member

    I am trying to add this code to the ad_sidebar_bottom but it seems to not work. Is this conditional not applicable in this template?

    <xen:if is="{$forumId} == 107">
    <a href="yahoo.com"><img src="yahoo.jpg"></a>
    </xen:if>
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    That won't work in the sidebar on the forum index.
     
    upnet likes this.
  3. upnet

    upnet Active Member

    I use this code below for the forum index and it works well. What I am trying to do is have a code that displays an ad in the sidebar_bottom only in a specific forum - node 107. Any idea how to do that?

    <xen:if is="{$contentTemplate} == 'forum_list'">
    <a href="google.com">
    <img src="google.jpg">
    </a>
    </xen:if>
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    The sidebar isn't present when viewing a forum.
     
  5. upnet

    upnet Active Member

    aha, i'm just tricked by widgets into thinking it is...
     
  6. upnet

    upnet Active Member

    so I can specify position: hook:ad_sidebar_bottom in widget framework but is it possible to specify only a certain forum? i tried using the if forumId in the expression but to no avail. any other possible solution to place an image with a link in the sidebar of a specific forum.
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    You would need to ask in the add-on thread.
     
    upnet likes this.
  8. upnet

    upnet Active Member

    noted.
     

Share This Page