News:

Wondering if this will always be free?  See why free is better.

Main Menu

Recent posts Index - Read/NotRead

Started by olihar, October 02, 2011, 04:11:01 PM

Previous topic - Next topic

olihar

Do you have any suggestion how I might be able to let users see what recent posts they have already looked at on the front page.

Lets say all new posts are bold, but when user has looked at 1 or more and goes back to front page the ones he has already looked at will not be bold.

Making it easier for the users see what is really new.

thanks.

rtil

um.. i suppose it's possible if you're willing to do some modifications to the theme template and how it handles threads with new posts, however, SMF already has plenty of built-in links for users to see what posts are new. on the board index, clicking on the icon next to a board will show thread with new replies, a "new" image will appear next to threads with unseen replies in the topic index, and there's a "Show unread posts since last visit" and
"Show new replies to your posts" links at the top by your avatar. i don't see why there'd need to be more available options to see recent posts.

olihar

After looking around something like it says in MessageIndex.template.php could be used for the recent items as well on the front page, to create a little gif image next to the recent topics.


// Is this topic new? (assuming they are logged in!)
if ($topic['new'] && $context['user']['is_logged'])
echo '
<a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><img src="', $settings['lang_images_url'], '/new.gif" alt="', $txt['new'], '" /></a>';



Could something like this be added to Subs-Recent.php and called from there.

Advertisement: