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

XF 1.2 Add ad_forum_view_below_thread_list

Discussion in 'XenForo Questions and Support' started by ForexTalk, Dec 21, 2013.

  1. ForexTalk

    ForexTalk Member

    Hello,

    I would like to add some content at ad_forum_view_below_thread_list but there have no such template.

    Can you suggest how to create one? or how to add ad_forum_view_below_thread_list?

    Thank you.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Use the ad_below_content template and use a conditional statement for the templates you want it to show on.
     
  3. ForexTalk

    ForexTalk Member

    Sorry but can you please explain about more detail? Thanks.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

  5. ForexTalk

    ForexTalk Member

    I tried this:

    Code:
    <xen:if is="{$thread_list_item}">
    content
    </xen:if>
    But not working, can you suggest what is wrong? Thanks.
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, you need to use the template name.

    How can I find out which template to edit?
    Using your browser, view the page source and look for a line of code near the top of the page which begins
    <div id="content" class="; the class is the name of the template. So for the main forum page, the line of code is:<div id="content" class="forum_list">, which makes the template forum_list.

    http://xenforo.com/community/threads/frequently-asked-questions.5183/#post-181112
     
  7. ForexTalk

    ForexTalk Member

    I found the template and add the code:

    Code:
    <xen:if is="{$discussionList}">
    ad code
    </xen:if>
    But nothing happen! Can you suggest what is wrong? Thanks.
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    {$discussionList} is not the name of the template.

    Refer to my previous post for how to get the template/page name.
     
  9. ForexTalk

    ForexTalk Member

    Sorry, I now find the class=forum_view but it's also not work!
    Code:
    <xen:if is="{$forum_view}">
    ad code
    </xen:if>
    Can you suggest what is wrong? Thanks.
     
  10. Jeremy

    Jeremy XenForo Moderator Staff Member

    Brogan's conditional resource has an example on the proper conditional to use.
     
  11. ForexTalk

    ForexTalk Member

    so, what is wrong with the code above?
     
  12. Jeremy

    Jeremy XenForo Moderator Staff Member

    Your conditional is incorrect.
     
  13. ForexTalk

    ForexTalk Member

    Can you please correct it for me? Thanks.
     
  14. Jeremy

    Jeremy XenForo Moderator Staff Member

    The resource Paul linked to above has the exact conditional you need.
     
  15. ForexTalk

    ForexTalk Member

  16. Brogan

    Brogan XenForo Moderator Staff Member

     
  17. ForexTalk

    ForexTalk Member

    I found the template: forum_view

    I checked conditional resource and use:

    Code:
    <xen:if is="{$forum_view}">
    ad code
    </xen:if>
    So, what's wrong?
     
  18. Brogan

    Brogan XenForo Moderator Staff Member

    From the resource I linked you to previously:

    How can I show content on a specific page?
    <xen:if is="{$contentTemplate} == 'xyz'">
    This content will show on the xyz template
    </xen:if>
     
  19. ForexTalk

    ForexTalk Member

    Yes, it work now. Thank you.
     

Share This Page