Log in

View Full Version : $lastpostinfo['trimthread'] question


ChuanSE
12-31-2006, 08:38 AM
$lastpostinfo['trimthread'] = fetch_trimmed_title($lastpostinfo['lastthread']);

from includes/functions_forumlist.php

can anyone clarify where i can tweak this trimming. So where can i determine after how much chars the lastthread title on forumhome gets trimmed?

thanks in advance and a happy newyear ;D

WetWired
01-09-2007, 02:26 PM
From functions.php, line 500 or so:
function fetch_trimmed_title($title, $chars = -1)
{
global $vbulletin;

if ($chars == -1)
{
$chars = $vbulletin->options['lastthreadchars'];
}

if ($chars)
{

So, you can either change it by finding 'lastthreadchars' in the options, or by passing a positive $chars parameter after the post info.