TinyPortal

Development => Support => Topic started by: MKJ on March 05, 2006, 12:12:06 PM

Title: Latest Topics
Post by: MKJ on March 05, 2006, 12:12:06 PM
Question 1:
How can I increase the number of charactors displayed?  At the moment the highlighted text - hyperlink for the topic and title - is quite short.  As I want to use the Latest Topics on the top of the forum this needs to be considerably increased and longer headings used.

Question 2:
Bit odd this but I am thinking of displaying the last 10 topics through an iframe at the top of my site using the SSI script.  This way I won't disturb the forum.  Only problem after testing this is the need to have the topics open with the tag "_top".  Can this be altered?
Edit:
Got Question 2 sorted.  I did a replace command on the SSI.php file and did this:

altered all the <a href=" code to <a target="_top" href="

Might come in handy for others.  Will probably make a copy of this file and call it SSItop or something and put the original back as it was.  Call this new file into my recent topics ssi page instead.

Regards
MKJ
Title: Re: Latest Topics
Post by: IchBin on March 05, 2006, 07:43:09 PM
I'm not sure exactly as I don't "know" php very well yet.

But I think this line is where it is only allowing 128 characters to be shown. Try playing with it in the SSI.php file.

$row['body'] = strip_tags(strtr(parse_bbc($row['body'], $row['smileysEnabled'], $row['ID_MSG']), array('<br />' => '&#10;')));
if (strlen($row['body']) > 128)
$row['body'] = substr($row['body'], 0, 128) . '...';
Title: Re: Latest Topics
Post by: bloc on March 11, 2006, 09:20:31 AM
Was this for a TP "recent topics" block?
Title: Re: Latest Topics
Post by: scso1502 on February 25, 2008, 12:11:45 PM
Did anyone ever figure out the answer to showing more charactors for the recent topics list here?

I can only view about 25 or so charactors and would like to see the whole title of the topic listed so people know exactly what it is instead of it being cut off.

You can see what I mean by viewing the recents on my home page here: www.boomgaming.net/smf

Thanks for any help you can offer!

Mike Vail
www.boomgaming.net
Title: Re: Latest Topics
Post by: scso1502 on February 25, 2008, 12:22:56 PM
Never mind, it was a short_subject setting in the ssi.php file. I reset it 60 and now the whole subject appears!

Enjoy.
Title: Re: Latest Topics
Post by: Zetan on February 25, 2008, 01:14:40 PM
For future reference, in ssi.php find:



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



Change the 25 to a number of choice.