TinyPortal

Development => Block Codes => Topic started by: damouse on January 18, 2011, 10:26:51 PM

Title: Recent block, edting the new link to got to unread posts rather than last post
Post by: damouse on January 18, 2011, 10:26:51 PM
Hi there

I don't see a topic for this, so I hope you don't mind my starting a new one.

I would like to edit the recent posts block so that when I click on the "new" buttons in it, they link to the first unread post in the topic rather than the utmost newest in the topic.

My best uneducated guess is to edit the way it links by editing a bit of TPBlocks.template.php (I'm using TinyPortal v1.0 beta 4 ) on line 347:
echo ' <a href="'.$w['href'].'"><img src="'. $settings['images_url'].'/'.$context['user']['language'].'/new.gif" alt="new" /></a> ';

can anyone help me?
Title: Re: Recent block, edting the new link to got to unread posts rather than last post
Post by: ZarPrime on January 19, 2011, 11:38:50 PM
Hello damouse,

Welcome to the TP Support Site.

What you are asking is not as easy as you might think.  I will give you a link to a topic where one of our Coders and a member were looking at something along these lines.  Perhaps there is something in there that will help you.  Here is the link --> http://www.tinyportal.net/index.php?topic=33329.0

ZarPrime
Title: Re: Recent block, edting the new link to got to unread posts rather than last post
Post by: damouse on January 20, 2011, 06:01:37 AM
thank you so much, I'll read through that.