View Full Version : Latest Posts And Large titles
Acido
05-16-2005, 11:54 AM
Hello
I'm having troubles with large titles on the latest Posts block when large titles enlarge the block size taking place from the center blocks. This disrupt the CMPS page designs.
Is there a way to avoid that?
Thanx in advance .
Brian
05-16-2005, 12:44 PM
There is an option in the latest threads settings where you can control the maximum number of characters of the title to display.
Acido
05-16-2005, 02:43 PM
There is an option in the latest threads settings where you can control the maximum number of characters of the title to display.
Sure. But my problem is when a words in the title, is too long. Usually users that abuse the characters for titles like: coooooooooooooooool! and so.
Or when user post a title like: News on www.longurlofmysite.com (http://www.longurlofmysite.com)
Have an option without ban the users? ;)
Brian
05-16-2005, 04:00 PM
I get the same problem on my personal site. Really the only way around it is to set the max characters to a number low enough not to stretch out the module. Currently 23 seems to work well for my personal site.
Acido
05-17-2005, 08:42 AM
I get the same problem on my personal site. Really the only way around it is to set the max characters to a number low enough not to stretch out the module. Currently 23 seems to work well for my personal site.
Well... navigating PHP.net i found a solution but i'm not sure. It work, but i think that the code can be improved.
My solution is find in /modules/latesttopics.php
this code:
$thread['title'] = fetch_trimmed_title($thread['title'], $vba_options['portal_threads_maxchars']);
And replace with:
$thread['title'] = chunk_split(fetch_trimmed_title($thread['title'], $vba_options['portal_threads_maxchars']), 17, " ");
The only need what you need is change the value in red "17" for another to match your needs.
It seems works, but i'm still checking it.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.