Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: MoreBloodWine on November 05, 2010, 11:39:07 AM

Title: This keeps returning me to unread replies...
Post by: MoreBloodWine on November 05, 2010, 11:39:07 AM
I wanted something for a TP block to mark individual topics as read so I pieced this together and while it does work like it should in that it clears individual topics it always returns me to the unreadrpelies place. Now I know that this is due to the sa=unreadreplies but I can't find a way to keep this working without it in there. I did at one point achieve this feat but it marked all topics as readd instead of just the one the red X was placed beside.

So, I ask... can anyone help me figure out how I can keep the current functionality of this but have it always return me to the page I'm was o nwhen I clicked the ink ?

<b><a href="index.php?action=markasread;sa=unreadreplies;topics=' , $post['topic'] , '.msg' , $post['new_from'] , ";sesc=" , $context['session_id'] , '" style="color: #FF0000;" title="Mark as Read">X</a></b>
Title: Re: This keeps returning me to unread replies...
Post by: Oya on November 05, 2010, 12:44:28 PM
there's no way to do what you're asking without modifying smf's code - a thread is marked read when you visit it, or when the entire board is marked read, and the latter just returns you to the list of threads
Title: Re: This keeps returning me to unread replies...
Post by: MoreBloodWine on November 05, 2010, 05:46:20 PM
Marking as solved, ty for your help.