vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Setting a minimum and maximum thread title limit? (https://vborg.vbsupport.ru/showthread.php?t=108710)

xlguy 02-23-2006 04:40 PM

Setting a minimum and maximum thread title limit?
 
Hi guys, I was wondering if there was a place I could hook into to set both a minimum and maximum topic title length? I thought this was an option in vB but now I can't seem to find it. Unless I'm going mad? :rolleyes:

xlguy 03-02-2006 09:07 PM

Just a polite bump to see any suggestions, thanks.

Ntfu2 03-02-2006 09:26 PM

I dont think you can set thread title limits, you can set post limits though

AdminCP -> vBulletin Options -> Message Posting Options

xlguy 03-02-2006 09:46 PM

Thanks, yeah I'm looking for a similar setting but for topic titles.

I imagine it's a relatively simple hook which could be written in to a plugin? I just want to stop users from being able to have topic titles like "lol" and "see this"

xlguy 03-22-2006 03:19 PM

I've finally had time to code this up, enjoy:
https://vborg.vbsupport.ru/showthread.php?t=111101

:)

Freesteyelz 03-22-2006 05:37 PM

I haven't checked your code, xlguy, but to force the limit on character amount in thread titles just look for (in your posting templates):

Code:

maxlength="85"
And adjust it to whatever. :)

xlguy 03-22-2006 06:09 PM

Yeah, the maximum length wasn't really the main issue, it was the minimum length. The plugin deals with that and also now can remove excessive '.....' from the end. Thanks for the help though.


All times are GMT. The time now is 03:59 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.02874 seconds
  • Memory Usage 1,719KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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