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

Want to add some stuff after the first post in specific forums..

Discussion in 'Styling and Customization Questions' started by Mr. Goodie2Shoes, Jan 11, 2012.

  1. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    so yeah... the title says it all... would really appreciate it! :D

    Thanks!
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    so... it will be something like:
    Code:
    <xen:if is="in_array({$forum.node_id}, array(x, y, z))">
    <xen:if is="{$post.position} == 0 AND !{$message.conversation_id}">
    This content will show after the first post in a thread
    </xen:if>
    </xen:if>
    ?

    What will be the template name? message?
     
  4. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    or the "ad_message_below" template?
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    All in the FAQ:

    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

    But yes, the ad_ template is the one to use in this instance.
     
    Mr. Goodie2Shoes likes this.
  6. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    Thanks! :D Gonna try it out :D
     
  7. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    awesome... it works! :D
    I just added the code:
    Code:
    <xen:if is="in_array({$forum.node_id}, array(x, y, z))">
    <xen:if is="{$post.position} == 0 AND !{$message.conversation_id}">
    <li class="message">
    This content will show after the first post in a thread
    </li>
    </xen:if>
    </xen:if>
    at the very bottom of the "message" template :D

    Brogan, many thanks! and you can close the discussion now:D
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Presumably you replaced x, y and z with the actual node IDs? ;)
     
    Mr. Goodie2Shoes likes this.
  9. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    lol... yeah! Im not that dumb! :p
     

Share This Page