- Совместимость с XenForo
- 1.2, 1.3, 1.4, 1.5
Add a Recent Posts link to the navigation bar
From..
To..
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:
Replace with this:
From..
To..
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>
Код:
<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>