thread title trim?

blur13th

New Member
Hi,

Is there a feature in vBulletin that allows you to make the thread titles shorter. (not last thread in forum display)

EG - make title width before prone 10 and the title is "Test Topic 1" which as 12 so it would show as "Test Top.."

thanks.
 
I'm gonna be a liitle bit lazy lol but in New Posting Templates> newthread template I see;

example;

<input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="1" />

just stick maxlength="10" or something in the code for the title you want shortened. I'm not sure if the section I pointed out is exactly what you wanted.
 
I found a solution.

Edit /includes/functions_forumdisplay.php

Find this.
Code:
// word wrap title
	if ($vbulletin->options['wordwrap'] != 0)
	{
		$thread['threadtitle'] = fetch_word_wrapped_string($thread['threadtitle']);
	}

After Insert this.
Code:
if (strlen($thread['threadtitle']) > 60)
{
 $thread['threadtitle'] = substr($thread['threadtitle'], 0, 55) . '...';
}


like this
PHP:
	// word wrap title
	if ($vbulletin->options['wordwrap'] != 0)
	{
		$thread['threadtitle'] = fetch_word_wrapped_string($thread['threadtitle']);
	}
if (strlen($thread['threadtitle']) > 60)
{
 $thread['threadtitle'] = substr($thread['threadtitle'], 0, 55) . '...';
}

	$thread['threadtitle'] = fetch_censored_text($thread['threadtitle']);
 
Back
Top