PDA

View Full Version : Truncate Tread Title Option In Forumdisplay


SS9267547
01-29-2005, 10:00 PM
Just like the username, I wanted to truncate the thread title the under the tread title column to limit the amount displayed. Couldn't find one and I noticed a few people have been looking for this too, so here you go guys.

Version Number: 1.0
vBulletin Version: 3.0.0 +
Files to edit: forumdisplay.php
Last Edited: January 30, 2005
Edited By: Lucas Pawelczyk
Install Time: 2 minutes
Difficulty: Simple

Hack Description: This is a very simple little hack if you want to call it one. It gives you the option to limit the amount of characters you have displayed in the trerad title column in your forumdisplay.php.

Sebastian
02-02-2005, 05:22 PM
do it this way:
$thread['threadtitle'] = fetch_trimmed_title($thread['threadtitle'], 100);

right under
$thread = process_thread_array($thread, $lastread, $foruminfo['allowicons']);

just replace 100 with the amount you want to limit to.