SimplePortal
Development => Feature Requests => Applied Requests => Topic started by: sornok on September 18, 2008, 03:41:13 AM
-
Hello again,
"View new posts since last visit" was a feature of various portals that was really useful. According to my knowledge, there is nothing like that in simpleportal. Is it possible to have such a link somehow ?
Thanks in advance.
-
Do you just want to add it to its own block?
That should be easy to do with a 'PHP' block, create a new one in the admin section and then add this code to it:
global $scripturl;
echo '<a href="', $scripturl, '?action=unread">View new posts since last visit</a>';
-
Oh that's great. Could it also be possible to add it in the "User Info" Block ?
-
Hmmm, we can have a count of it leading to the unread page maybe.
-
I guess u re talking about something like :
View new posts since last visit (18)
showing the number !
I guess also something like There are no new posts since your last visit
could also be possible, and would make the whole thing more dynamic.
p.s. Any chance I can get some help on how to integrate the original code to "User Info" block ?
-
Do you just want to add it to its own block?
That should be easy to do with a 'PHP' block, create a new one in the admin section and then add this code to it:
global $scripturl;
echo '<a href="', $scripturl, '?action=unread">View new posts since last visit</a>';
Thanks for the code, nice to have it as a little extra. It would be great to have the number of posts too, like someone else said.
-
p.s. Any chance I can get some help on how to integrate the original code to "User Info" block ?
Thinking about it, this would be pretty cool.
Maybe something like a 'Unread Posts' link directly under 'Profile' and 'Logout'
-
This is now in 2.2!