TinyPortal
Development => Support => Topic started 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
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 />' => ' ')));
if (strlen($row['body']) > 128)
$row['body'] = substr($row['body'], 0, 128) . '...';
Was this for a TP "recent topics" block?
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
Never mind, it was a short_subject setting in the ssi.php file. I reset it 60 and now the whole subject appears!
Enjoy.
For future reference, in ssi.php find:
'short_subject' => shorten_subject($row['subject'], 25),
Change the 25 to a number of choice.