<input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="1" />
ryu said:I believe there is an built-in option in vBulletin to trim the titles.
// 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) . '...';
}
// 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']);