Development > Applied Requests
posts since last visit
sornok:
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.
Nathaniel:
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:
--- Code: ---global $scripturl;
echo '<a href="', $scripturl, '?action=unread">View new posts since last visit</a>';
--- End code ---
sornok:
Oh that's great. Could it also be possible to add it in the "User Info" Block ?
[SiNaN]:
Hmmm, we can have a count of it leading to the unread page maybe.
sornok:
I guess u re talking about something like :
--- Quote ---View new posts since last visit (18)
--- End quote ---
showing the number !
I guess also something like
--- Quote ---There are no new posts since your last visit
--- End quote ---
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 ?
Navigation
[0] Message Index
[#] Next page
Go to full version