Version: , by Milez
Developer Last Online: Feb 2019
Version: Unknown
Rating:
Released: 03-03-2003
Last Update: Never
Installs: 0
No support by the author.
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.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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.
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.