Jump to content

SOLVED: how to disable "Mark as read"?


Go to solution Solved by Morrigan,

Recommended Posts

I don't get the need for a "mark as read" button, but I do understand that it has more good than bad potential for those who do want it when it's presented as "mark as read" (like the text button under the search bar). 
What I don't understand, is the need to make the "dots" (icons?) next to forum names act as a "mark forum as read" without any popup window or confirmation dialog. 

Is there any way to disable that functionality or have it display any kind of dialog?

To solution.

Edited by Pavel Chernitsky
Link to comment
Share on other sites

  • Solution

Find this template:

forums > front > index > forumRow

Find this:

{{if !$forum->redirect_on}}
			{{if \IPS\forums\Topic::containerUnread( $forum ) AND \IPS\Member::loggedIn()->member_id}}<a href="{{if $isSubForum}}{$forum->url()->setQueryString( array( 'do' => 'markRead', 'return' => $forum->parent_id ) )->csrf()}{{else}}{$forum->url()->setQueryString( 'do', 'markRead' )->csrf()}{{endif}}" data-action='markAsRead' title='{lang="mark_forum_read"}' data-ipsTooltip>{{endif}}
			{{endif}}

Remove it and then find this:

{{if !$forum->redirect_on and \IPS\forums\Topic::containerUnread( $forum ) AND \IPS\Member::loggedIn()->member_id}}
			</a>
			{{endif}}

And remove it as well.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...