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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,236
  • Total Topics: 21,353
  • Online today: 340
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 198
  • Total: 198

Problems with recent topics with smf 1.1rc2 and tp 0.86

Started by futuro, August 08, 2006, 11:09:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

futuro

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.



thanks :)

Nokonium

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 .....


futuro

perfect with the second option :)

thanks :)

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

something like
http://digg.com/spy

This website is proudly hosted on Crocweb Cloud Website Hosting.