SMF Support > SMF 2.0.x Support
Question about "Unread posts"
ChalkCat:
--- Quote from: Arantor on July 22, 2012, 09:09:46 AM ---Yup, it really is 'since last visit', although the technical definition of 'since last visit' is a little vague at times.
Personally, I just removed it and went with 'all unread' because while there is an overhead attached, it tends to make people 'mark all read' and presents a more sane experience to them.
--- End quote ---
Arantor, please can you point me in the direction of how to change "unread since last visit" to "all unread"? It looks simple enough but I'm afraid of screwing it up if I just try to figure it out on my own ;)
Edit: Ooh hang on, in index.template.php, I've found:
--- Code: ---<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
--- End code ---
So if I change this to:
--- Code: ---<li><a href="', $scripturl, '?action=unread;all;start=0">', $txt['unread_since_visit'], '</a></li>
--- End code ---
then change $txt['unread_since_visit'] in the language file, will that do it?
Arantor:
It's not actually that simple, it was a good two hours work to make the change since it wasn't just a cosmetic change of pointing the unread link to unread;all;start=0, I physically removed all the other code so it only ever did all unread. IIRC it made quite a mess of the code too.
ChalkCat:
Oops I cross posted my edit with your reply... Ah, so not something I can do on my own then. Is it worth me trying it? What was the other code you needed to remove?
Arantor:
What you've changed is mostly the aesthetic side, and while it will work, it can quite easily confuse people when there are ways it can switch between 'all' and 'not all'.
The rest of the changes are really not for the faint of heart.
ChalkCat:
Thank you ;)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version