News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Show unread posts since last visit

Started by ~DS~, March 13, 2010, 02:35:13 PM

Previous topic - Next topic

~DS~

I am not sure if it's a bug but why does the "Show unread posts since last visit." became marked as read when signed out. I had about 10 unread and decided to read them later so I signed back in and there was no unread posts. WTF?
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Ashley S

That's always been with SMF. So i guess it ain't a bug.

Owdy

Quote from: Dismal Shadow on March 13, 2010, 02:35:13 PM
I am not sure if it's a bug but why does the "Show unread posts since last visit." became marked as read when signed out. I had about 10 unread and decided to read them later so I signed back in and there was no unread posts. WTF?
They are "since last visit.". If you log out, it ends your visit. Try http://thetwoworldsforum.com/index.php?action=unread;all , it shows all unread posts.

Show unread posts since last visit -> All unread topics.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

~DS~

Thanks that works. This link "action=unread;all" should be default in SMF under "Show unread posts since last visit" somehow.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Owdy

#4
You can add it:

Index.template.php

find:

<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>

Add after:

<li><a href="', $scripturl, '?action=unread;all">', $txt['unread_topics_all'], '</a></li>
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

~DS~

Quote from: Mr. Positive on March 13, 2010, 04:23:07 PM
You can add it:

Index.template.php

find:

<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>

Add after:

<li><a href="', $scripturl, '?action=unread;all">', $txt['unread_topics_all'], '</a></li>


I have this
', empty($modSettings['shd_helpdesk_only']) ? ('<li><a href="' . $scripturl . '?action=unread">' . $txt['unread_since_visit'] . '</a></li>
<li><a href="' . $scripturl . '?action=unreadreplies">' . $txt['show_unread_replies'] . '</a></li>
<li><a href="'. $scripturl. '?action=zeroreplies"> Show unanswered topics.</a></li>') : '';

Where does the code goes in?
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Owdy

Try before this
<li><a href="' . $scripturl . '?action=unreadreplies">' . $txt['show_unread_replies'] . '</a></li>

Like this

               ', empty($modSettings['shd_helpdesk_only']) ? ('<li><a href="' . $scripturl . '?action=unread">' . $txt['unread_since_visit'] . '</a></li>
<li><a href="', $scripturl, '?action=unread;all">', $txt['unread_topics_all'], '</a></li>
<li><a href="' . $scripturl . '?action=unreadreplies">' . $txt['show_unread_replies'] . '</a></li>
<li><a href="'. $scripturl. '?action=zeroreplies"> Show unanswered topics.</a></li>') : '';
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

~DS~

Ok the comma was wrong. Had to change it to this
<li><a href="' . $scripturl . '?action=unread;all">' . $txt['unread_topics_all']. '</a></l
It works.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

~DS~

Does this show unread topics or posts? Because the link text says "All Unread Topics"
Should be "Show Unread Posts"

"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

~DS~

<li><a href="' . $scripturl . '?action=unread;all">' . $txt 'Show Unread Topics and Posts'. '</a></l
Does that work? :)
Again thank you.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Owdy

This should

<li><a href="' . $scripturl . '?action=unread;all">Show Unread Topics and Posts</a></li>

edit: notice that your ending tag was broken too: </l should be </li>
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

~DS~

yeah got it Mr. Positive. Thanks.

May this interest someone who needs it or either can be moved to Tips?
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Raffoz

ok, very useful...

i like very much the ioption in Invision ower Board where you can choose to see the new posts since your last visit or the new posts that remain new until you don't see them, modifying so the way the cookie is going to work...

ok we have the 2 options in smf...

who knows how to add a beautiful button (like the "reply" one) in order to put it and let appear: "Show unread posts" making it working as the mod code here posted?
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

~DS~

It's possible but it will mess with the avatar and overflow the layout.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Raffoz

yeah, but my idea was to put it in the right part of the forum...

i attach an image...
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

Advertisement: