Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Pavel Chernitsky Posted December 10, 2020 Posted December 10, 2020 (edited) 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 December 17, 2020 by Pavel Chernitsky
bfarber Posted December 10, 2020 Posted December 10, 2020 By editing the theme you could remove the data-* attribute that facilitates the mark as read functionality.
Pavel Chernitsky Posted December 13, 2020 Author Posted December 13, 2020 (edited) Can you say that again, but in a way a monkey* would understand? 😄 *One who's coding capabilities consist of copy-pasting. Edited December 13, 2020 by Pavel Chernitsky
Morrigan Posted December 14, 2020 Posted December 14, 2020 Are you using the grid or the table layout @Pavel Chernitsky
Pavel Chernitsky Posted December 16, 2020 Author Posted December 16, 2020 @Morrigan Table. Thanks for the assist.
Solution Morrigan Posted December 16, 2020 Solution Posted December 16, 2020 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.
Pavel Chernitsky Posted December 17, 2020 Author Posted December 17, 2020 (edited) Nice! Thank you, Works perfectly. Edit: Is there no Mark as solution in this forum? Couldn't find it... So I edited the title 🤷♂️ Edited December 17, 2020 by Pavel Chernitsky
Ryan Ashbrook Posted December 17, 2020 Posted December 17, 2020 6 hours ago, Pavel Chernitsky said: Nice! Thank you, Works perfectly. Edit: Is there no Mark as solution in this forum? Couldn't find it... So I edited the title 🤷♂️ I've enabled it. 🙂
Joel R Posted December 17, 2020 Posted December 17, 2020 (edited) 7 hours ago, Ryan Ashbrook said: I've enabled it. 🙂 See, it would have been more clever if you had marked your answer as Marked as Solved. That would have been meta. And a good demonstration of the software. Edited December 17, 2020 by Joel R Pavel Chernitsky 1
Recommended Posts