vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Thread title over flow (https://vborg.vbsupport.ru/showthread.php?t=49588)

Milez 03-03-2003 02:19 PM

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.

Davey 03-03-2003 02:41 PM

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.

Dean C 03-03-2003 04:02 PM

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

Milez 03-03-2003 04:15 PM

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.

Xenon 03-03-2003 04:19 PM

Quote:

Originally posted by Davey
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.

*ggg* thanx ;)

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
  • Page Generation 0.03584 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete