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

XF 1.2 New posts at the bottom

Discussion in 'Styling and Customization Questions' started by AndreaMarucci, Nov 8, 2013.

  1. AndreaMarucci

    AndreaMarucci Well-Known Member

    I have the need to have a button at the forum bottom that work like the New Posts link in the menu bar so when someone has finished reading all the thread can check the new posts without going back to the top of the page.

    Anyone has an idea on how to do that?
     
    Last edited: Nov 8, 2013
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Edit the thread_view template and add the code for the new posts link to the bottom somewhere, with appropriate styling.
    You can check the navigation template for the code to use.
     
  3. AndreaMarucci

    AndreaMarucci Well-Known Member

    Thanks but I need that someone tell me exactly what to do. I can imagine what to do but my knowledge is not at the level that I can apply the modifications by myself :rolleyes:
     
  4. AndreaMarucci

    AndreaMarucci Well-Known Member

    Something like that one red bordered...

    here.png
     
  5. AndreaMarucci

    AndreaMarucci Well-Known Member

    After many tries I've edited the thread_view template and added after
    Code:
    </form>
    this row
    Code:
    <a href="/find-new/posts" class="callToAction"><span>Nuovi Messaggi</span></a>
    and it worked. I'd like to move the button on the right but I've noticed that if you're in the middle of a long thread, on the right there's a link that tell you how many messages you've to see.

    Any other idea on where to place this button?
     
  6. Mr Lucky

    Mr Lucky Well-Known Member

    How about in the footer? Or in the template ad_below_content.

    Alternatively I find it useful to have a link under each post. Add it to the bottom of post template (but you may want shorter anchor text in that case
    Code:
    </xen:hook>
    <a href="/find-new/posts" class="callToAction"><span>Nuovi Messaggi</span></a>
    
     
  7. Amaury

    Amaury Well-Known Member

    It's also recommended to phrase it so it can be easily changed later if needed.
     

Share This Page