Add a Recent Posts link to the navigation bar

Does what it says on the tin.

  1. android88
    Совместимость с XenForo:
    • XenForo 1.2
    • XenForo 1.3
    • XenForo 1.4
    • XenForo 1.5
    Add a Recent Posts link to the navigation bar
    From..
    AUYmmAo.png
    To..
    AUY12.png
    This is something I added a long time ago on my site but I removed it prior to updating to 1.2.
    Big mistake! The members went crazy!

    They said it was the most useful link on the navigation bar as it allowed them to quickly and easily see all recent posts, not just unread ones.
    So, for something so trivial, here is how to add it.

    Look for this in the navigation template:
    Код:
    <li><a href="{xen:link 'watched/threads'}">{xen:phrase watched_threads}</a></li>
    </xen:if>
    <li><a href="{xen:link 'find-new/posts'}" rel="nofollow">{xen:if $visitor.user_id, {xen:phrase new_posts}, {xen:phrase recent_posts}}</a></li>
    </xen:hook>
    Replace with this:
    Код:
    <li><a href="{xen:link 'watched/threads'}">{xen:phrase watched_threads}</a></li>
    </xen:if>
    <xen:if is="{$visitor.user_id}">
    <li><a href="{xen:link find-new/posts, '', 'recent=1'}" rel="nofollow">{xen:phrase recent_posts}</a></li>
    </xen:if>
    <li><a href="{xen:link 'find-new/posts'}" rel="nofollow">{xen:if $visitor.user_id, {xen:phrase new_posts}, {xen:phrase recent_posts}}</a></li>
    </xen:hook>
Поделиться этой страницей в