vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Showthread/Postbit Big Title Problem (https://vborg.vbsupport.ru/showthread.php?t=48959)

sonic3d 02-15-2003 10:02 PM

Showthread/Postbit Big Title Problem
 
ok does ne know how i can shorten up the thread title in the postbit cuz when the title is very big it messes up the postbit.

does ne1 know how i can shorten it?

l8er
sonic

007 02-15-2003 11:35 PM

put a limit of say 20 characters on the title field. that should do it.

i believe this can be done in the template "newthread" (you will also have to do this on "newreply" and "newpoll:"

(It would be sort of like this, i think?) The first line might be different... but just mess around with this for a bit and who knows? :nervous:

PHP Code:

if (postmaxchars != 0) {
        if (
theform.subject.value.length 20) {
            
alert("Your subject is too long.\n\nReduce your subject to 20 characters.\nIt is currently "+theform.subject.value.length+" characters long.");
            return 
false; }
        else { return 
true; } 

:cool:

007 02-15-2003 11:36 PM

k I just tested that and it didn't do anything, so I guess it doesn't work. maybe someone knows what I did wrong??? lol :ermm:

sonic3d 02-16-2003 08:40 PM

ne1 else?

l8er
sonic


All times are GMT. The time now is 07:20 AM.

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.00964 seconds
  • Memory Usage 1,715KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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