TinyPortal

Development => Support => Topic started by: futuro on August 08, 2006, 11:09:48 AM

Title: Problems with recent topics with smf 1.1rc2 and tp 0.86
Post by: futuro on August 08, 2006, 11:09:48 AM
First, sorry for my english.

I want show the last messages in the index, and for it I use tinyportal. The problem is that it cuts the title and a great space remains in target. How i do to remove the constrainer of characters? I have not found anything.

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fimg67.imageshack.us%2Fimg67%2F5576%2Fdibujoki0.th.jpg&hash=698fcb7b86432f48b6239931e6e2262338aa2c8c) (http://img67.imageshack.us/my.php?image=dibujoki0.jpg)

thanks :)
Title: Re: Problems with recent topics with smf 1.1rc2 and tp 0.86
Post by: Nokonium on August 08, 2006, 01:33:52 PM
The output for Recent Topics is an SSI from SSI.php in your forum root folder, lines 281 and 282

'subject' => $row['subject'],
'short_subject' => shorten_subject($row['subject'], 25),


The Recent Topics in 0.86 TPortalBlocks.template has on line 64

<a href="'.$w['href'].'">'.$w['short_subject'].'</a>

Now I haven't tried this, but it looks like you have two options. The first is to change the SSI number of characters displayed in the short_subject, from 25 to whatever. The second looks like if you replace ['short_subject']  with ['subject'] you should output the full topic title.

Fingers crossed .....

Title: Re: Problems with recent topics with smf 1.1rc2 and tp 0.86
Post by: futuro on August 08, 2006, 01:50:47 PM
perfect with the second option :)

thanks :)

and... How might I do to that this list was updated automatically?

something like
http://digg.com/spy