I Experienced a Little with the Code of One of the Plugins and I Found the Way; perhaps you can Include it in the Next Update of your Mod with an Option in the Control Panel for Admins to Set it:
I added the Following Code on the Plugin "
Recently Viewed Threads - Browse Recently Viewed", by
Code:
$recent_thread['title'] = substr($recent_thread['title'], 0, 30);
if (strlen($recent_thread['title'])>=30)
{
$recent_thread['title'] .= '...';
}
You just have to Change the
30 to the Number of Characters You'd Like the Text to be Limited to.
so that Plugin would be:
Code:
if($vbulletin->options['recent_threadviews_enabled'] AND $vbulletin->userinfo['userid'] AND !empty($vbulletin->userinfo['recent_threadviews'])){
$get_recent_threadviews = $vbulletin->db->query_read("SELECT threadid, title
FROM " . TABLE_PREFIX . "thread
WHERE threadid IN (" . $vbulletin->userinfo['recent_threadviews'] . ")
ORDER BY FIELD(threadid," . $vbulletin->userinfo['recent_threadviews'] . ") DESC
");
while($recent_thread = $vbulletin->db->fetch_array($get_recent_threadviews)){
$recent_thread['title'] = substr($recent_thread['title'], 0, 30);
if (strlen($recent_thread['title'])>=30)
{
$recent_thread['title'] .= '...';
}
//$recent_thread['title'] = fetch_trimmed_title(fetch_censored_text($lastpostinfo['lastthread']));
eval('$recently_viewed_threads .= "' . fetch_template('recent_threadviews_navbit') . '";');
}
eval('$template_hook[navbar_search_menu] .= "' . fetch_template('recent_threadviews_nav') . '";');
}
And that's it.
My Best Regards.