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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 123
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 81
  • Total: 81

Latest Topics

Started by MKJ, March 05, 2006, 12:12:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MKJ

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

IchBin

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) . '...';

bloc

Was this for a TP "recent topics" block?

scso1502

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

scso1502

#4
Never mind, it was a short_subject setting in the ssi.php file. I reset it 60 and now the whole subject appears!

Enjoy.

Zetan

For future reference, in ssi.php find:



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



Change the 25 to a number of choice.

This website is proudly hosted on Crocweb Cloud Website Hosting.