Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Thread title over flow Details »»
Thread title over flow
Version: , by Milez Milez is offline
Developer Last Online: Feb 2019 Show Printable Version Email this Page

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.

Comments
  #2  
Old 03-03-2003, 02:41 PM
Davey Davey is offline
 
Join Date: Nov 2002
Location: England
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 03-03-2003, 04:02 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

- miSt
Reply With Quote
  #4  
Old 03-03-2003, 04:15 PM
Milez Milez is offline
 
Join Date: Jan 2002
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow thanks for the quick reply guys!

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.
Reply With Quote
  #5  
Old 03-03-2003, 04:19 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:47 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.04065 seconds
  • Memory Usage 2,239KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete