TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 481
  • Total: 482
  • lurkalot

Recent block, edting the new link to got to unread posts rather than last post

Started by damouse, January 18, 2011, 10:26:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

damouse

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?

ZarPrime

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


This website is proudly hosted on Crocweb Cloud Website Hosting.