![]() |
Thread title over flow
I have searched for this to no avail. I am finishing off a template. I have images in the category bars and am happy with the look.
The trouble is that thread titles that are too long have a line break and ruin the effect of the images in the thread title category bar. I am searching for the variable to change the amount of allowable charcters in a thread title. I hope this is not a rudimentary question that has been asked before. Thanks to all who look. |
1) Open up the editpost template and find this line:
<td bgcolor="{secondaltcolor}"><normalfont><input type="text" class="bginput" name="title" value="$postinfo[title]" size="40" maxlength="85" tabindex="1"></normalfont></td> 2) Change: maxlength="85" to the value of the maximum length of characters you want in the subject. 3) Save the editpost template. 4) Open up the newreply template and find this line of code: <td bgcolor="{secondaltcolor}"><normalfont><input type="text" class="bginput" name="title" value="$title" size="40" maxlength="85" tabindex="1"></normalfont> <smallfont>(Optional)</smallfont></td> 5) Change: maxlength="85" to the value of the maximum length of characters you want in the subject. 6) Save the newreply template. 7) Open up the newthread template and find this line: <td bgcolor="{secondaltcolor}"><normalfont><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1"></normalfont></td> 8) Change: maxlength="85" to the value of the maximum length of characters you want in the subject. 9) Save the newthread template. 10) Open up the template threads_editthread and find the line: <td bgcolor="{secondaltcolor}" width="27%"><normalfont><input type="text" class="bginput" name="title" value="$threadinfo[title]" size="50" maxlength="85"></normalfont></td> 11) Change: maxlength="85" to the value of the maximum length of characters you want in the subject. 12) Save the threads_editthread template. 13) Open the threads_merge template and find: <td bgcolor="{secondaltcolor}" width="27%"><normalfont><input type="text" class="bginput" name="title" value="$threadinfo[title]" size="50" maxlength="85"></normalfont></td> 14) Change: maxlength="85" to the value of the maximum length of characters you want in the subject. 15) Save the threads_merge template. That's it. I'm sure Xenon can come up with a simpler way to do it through a PHP file edit, but this is the only way I'd have done it. Dave. PS: To do it with the calendar event's too: 16) Open the calendar_enterevent template and find: <td bgcolor="{firstaltcolor}"><input type="text" class="bginput" name="subject" value="$subject" size="50" maxlength="50" tabindex="4"></td> 17) Change: maxlength="50" to the value of the maximum length of characters you want in the subject. 18) Save the calendar_enterevent template. |
This is to do with the forumhome templates davey. There is no obvious fix for this other than extending the tables or shortening the category name :D
- miSt |
Wow thanks for the quick reply guys! :eek:
Uhm...Jeez thats alot of edits. Uhm you sure you didn't miss any Mist? I have alot of hours on this board and dont want to add too many more :nervous: I was kind of hoping for this to be more than an afterthought for vbb but a quick browse of the php reveals no variable for this. I guess my only option is to change all of the text box maxlength variable to a shorter value? Ick. I will give your edits a try, thanks for the post. |
Quote:
Hmm, what about the simplest way? going into phpmyadmin and reduce the max length of thread title and post title? i don't know if it would hurt anywhere but that would be the simplest thing :) |
All times are GMT. The time now is 02:30 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|