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

Add a Recent Posts link to the navigation bar

Does what it says on the tin

  1. Brogan

    Brogan XenForo Moderator Staff Member

    Brogan submitted a new resource:

    Add a Recent Posts link to the navigation bar - Does what it says on the tin

    Read more about this resource...
     
    whynot, erich37 and DRE like this.
  2. ineedhelp

    ineedhelp Well-Known Member

    What's the difference between this and 'New Posts' ?
     
  3. Brogan

    Brogan XenForo Moderator Staff Member

     
    maszd likes this.
  4. ineedhelp

    ineedhelp Well-Known Member

    But I can see the same posts/threads under New Posts and Recent Posts.

    I'm not noticing any difference.
     
  5. DRE

    DRE Well-Known Member

    Couple months ago I added it, took it off, now I'm putting it back cause I thought it was just me that wondered about this and that I might've been tripping. Glad to know I was justified.
     
  6. erich37

    erich37 Well-Known Member

    great job Brogan (y)


    should be core

    :cool:
     
  7. PyroM

    PyroM Active Member

    Thanks a lot, this is so helpful!
    Is there any way to create some kind of query link (or button) to search for recent posts of the last X days? X would be an input field for the days. I have this on my current vB and would like to take it of to XF.
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Change recent=1 to days=7.

    Code:
    <li><a href="{xen:link find-new/posts, '', 'days=7'}" rel="nofollow">{xen:phrase recent_posts}</a></li>
     
    PyroM likes this.
  9. PyroM

    PyroM Active Member

    You mean days=7, not recent=7 - I'll try, thanks a lot! Earlier I had tried recent=7, which does not work, of course :rolleyes:
     
    Last edited: Aug 20, 2013
  10. Ken Black

    Ken Black Member

    How do you add links to recent posts in the right hand navbar ?
     
  11. Brogan

    Brogan XenForo Moderator Staff Member

    zuardin and RoldanLT like this.
  12. RoldanLT

    RoldanLT Well-Known Member

    Thanks Brogan!
    Added to my TM list (y)
     
  13. Shewie

    Shewie Member

    Hi

    1st post here, total coding newbie I'm afraid

    my code looks a little different ..

    <li><a href="{xen:link 'watched/forums'}">{xenphrase watched_forums}</a></li>
    <li><a href="{xen:link 'watched/threads'}">{xenphrase watched_threads}</a></li>
    </xen:if>

    Would you add the new code between watched/forums & watched/threads lines or after them both but before xen:if?
     
  14. Brogan

    Brogan XenForo Moderator Staff Member

  15. Shewie

    Shewie Member

    Thanks for the link Brogan, as I'm not really familiar with the server file structure on our site I'd rather just play with the code for now, I'm junior joint admin :)

    This looked like an easy one to get my teeth into, but wasn't sure about the difference in code
     
  16. JamesBrown

    JamesBrown Well-Known Member

    Is there a way of excluding a particular forum so it does not show up in recent posts? Thanks
     
  17. Brogan

    Brogan XenForo Moderator Staff Member

    That really has nothing to do with this resource.

    That is a per node setting.

    upload_2014-7-16_21-23-49.png
     
    webducknj likes this.
  18. Ian S

    Ian S Active Member

    brogan does this check the node tree permissions and usergroup permissions as this looks like what need(y)
     
  19. Brogan

    Brogan XenForo Moderator Staff Member

    It duplicates the existing new posts functionality, so yes.
     
  20. Ian S

    Ian S Active Member

    this is awesome brogan what i was looking for this for ages, under my nose as usual:ROFLMAO::ROFLMAO::ROFLMAO::ROFLMAO:

    prob is ive just tested it and if you log out you can see alot of recent posts still, ive checked the permissions and it works awesome, but i cant have guests or unregisted see it, registered see certain recents posts, ive used the cta addon as i found it after i posted here sorry, is there some code to add somewhere for me to stop guests seeing it??? ill check the permissions for registered in a mo

    thanx again for this add on u r the man matey(y)(y)(y)
     

Share This Page