The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Why dont you just open the 'newthread' template and change the 'maxlength="85" value of the title input to maxlength="45".
|
#12
|
|||
|
|||
Quote:
You can simply change the VARCHAR size of the title column in the thread table to the maximum size you want, which will definitely restrict character length. Combined with a maxlength attribute, it will work perfectly. |
#13
|
|||
|
|||
Meltdown: Because I only want to cut the title off the thread title off during threadlist process. Also, my forums have been online for 3 years, with 270000 posts... so setting the cap now does very little. I have a certain cell width I want the titles to fit into so by cutting it off, it helps keep it within the cell.
filburt1: If I limit the VARCHAR size of the title column is it just going to randomly cut it off? |
#14
|
|||
|
|||
Will someone please help me? I have not been able to port the vb3 stuff over to vb2.
|
#15
|
||||
|
||||
Ok. But keep in mind that I don't use anymore VB2...
However, the code posted below will work perfectly for you. Find the $thread['title'] (I don't remember the function name, sorry) and below, add: Code:
if (strlen($thread['title']) > 45) { $thread['title'] = substr($thread['title'], 0, 42) . '...'; } "The white dog jumps over the red deer to catch the yellow ball!" with: "The white dog jumps over the red deer to catch the yello..." (45 chars limit). Sorry, but if other VB2 users know what is the function I talk about, they will tell you exacly where to place the code mentioned above. As you see, is pretty easy. No need to complicate your life with complex code, simple will do just great. Regards, Floren. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|