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

Give Forum Node Icons "Mark Forum as Read" Links

Vincent

Well-known member
#1
VincentU submitted a new resource:

Give Forum Node Icons "Mark Forum as Read" Links (version 1.0) - Gives your Forum Node Icons a "Mark Forum as Read" link

Hello,

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...
Read more about this resource...
 

Mouth

Well-known member
#2
Awesome! Thanks, this was a missed functionality that vB had.

That said, when you click the node icon you get the pop-up asking if you want to mark the clicked forum as read or all forums. This is great. But when you select either option, you are taken into the forum you clicked on, instead of staying on the forum home page. Anyone know how to achieve the latter?
 

SatGuyScott

Active member
#4
Not working in the latest version of XEN.

Instead the code has changed to:

<div class="nodeInfo forumNodeInfo primaryContent {xen:if $forum.hasNew, 'unread'}">
<span class="nodeIcon" title="{xen:if $forum.hasNew, '{xen:phrase unread_messages}', ''}"></span>

How do you fix?
 

Vincent

Well-known member
#5
Not working in the latest version of XEN.

Instead the code has changed to:

<div class="nodeInfo forumNodeInfo primaryContent {xen:if $forum.hasNew, 'unread'}">
<span class="nodeIcon" title="{xen:if $forum.hasNew, '{xen:phrase unread_messages}', ''}"></span>

How do you fix?
First post updated, that should work :)
 

CFodder

Well-known member
#6
Nice little mod thanks, just one problem and unsure if it can be fixed. Doesn't update to show the forum has been marked as read, have to manually refresh to achieve this.

Is it possible for this to be done automatically?
 

Vincent

Well-known member
#7
Nice little mod thanks, just one problem and unsure if it can be fixed. Doesn't update to show the forum has been marked as read, have to manually refresh to achieve this.

Is it possible for this to be done automatically?
Yes, this is possible. I'll have to do some research for this though :)

I'll come back at this!
 

FredC

Well-known member
#10
This will probably be made when XF 1.2 is out, since it will be easier :)
I'm sorry for the wait..
I reverted my templates when i upgraded to 1.2 and wasnt sure if this still worked?? scratch that... Works like a charm.. Happy to have this back..