1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Please donate today & help us with our growing server costs or buy premium for access to our premium products
    Dismiss Notice

Free Give Forum Node Icons "Mark Forums as Read" Links

Discussion in 'Xenforo Template Mods & Extras' started by HAWK, Mar 21, 2016.

  1. HAWK

    HAWK Administrator Staff Member ADMIN

    Likes Received:
    593
    Trophy Points:
    113
    Gender:
    Male
    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.
    Go to the template called node_forum_level_2 and replace the following code:
    Code:
            <span class="nodeIcon" title="{xen:if '{$forum.hasNew} OR !{$visitor.user_id}', '{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} OR !{$visitor.user_id}', '{xen:phrase unread_messages}', ''}"></span>
            </xen:if>
     

Share This Page