Vincent_imported
Trusted Member
- Joined
- Dec 1, 2010
- Messages
- 747
Hello,
If you want your Unread Forum Node Icons to be "Mark Forum as Read" link for Registered Users.
Notes:
by the following code:
If you want your Unread Forum Node Icons to be "Mark Forum as Read" link for Registered Users.
Notes:
- It will only be a link if you're a Registered User, so not to guests.
- It will only be a link if the forum has unread posts.
Code:
<span class="nodeIcon" title="{xen:if $forum.hasNew, '{xen:phrase unread_messages}', ''}"></span>
by the following code:
Code:
<xen:if is="{$visitor.user_id} AND {$forum.hasNew}">
<a href="{xen:link 'forums/mark-read', $forum, 'date={$serverTime}'}" class="OverlayTrigger">
<span class="nodeIcon" title="{xen:if '{$forum.hasNew} OR !{$visitor.user_id}', '{xen:phrase unread_messages}', ''}"></span>
</a>
<xen:else />
<span class="nodeIcon" title="{xen:if $forum.hasNew, '{xen:phrase unread_messages}', ''}"></span>
</xen:if>