vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Minimum length required for thread title (https://vborg.vbsupport.ru/showthread.php?t=111101)

xlguy 03-21-2006 10:00 PM

Minimum length required for thread title
 
Minimum Length Required for Thread Title

This is my first plugin for 3.5.x so please be gentle ;)

Purpose: Stop users from starting a new thread unless the title has more than X number of characters, which you can specify from the vB settings area.

Instructions: Download the zip file and unpack it. You should find the .xml file there. Go to your vB admin > Plugin System > Manage Products > Add/Import Product and upload it there. That's it. The default plugin requires 30 characters for the thread title but you can change this in the vB settings menu.

If you use this hack please click here to tell vB.org you've installed it and show your support :)

xlguy 03-22-2006 03:11 PM

[ First post reserved in case needed at a later date ]

xlguy 03-22-2006 04:24 PM

I have made a modification to this, so if someone does "Hello............" it will strip off all those ... before it does the count. Basically it reduces the number of .... anywhere in the string to just three. If anyone wants this as well then PM me or reply here and I'll package it up.

COBRAws 03-22-2006 06:23 PM

This is handy, thank you xlguy

EasyTarget 03-22-2006 06:29 PM

I was reading the request area and found this.. does this support the max limit in the plugin as well?

xlguy 03-22-2006 08:19 PM

No, this only deals with the minimum length. To do the maximum length you just need to edit your newthread template and put in a maxlength variable. If you need full instructions then let me know, but it's just a template edit for that.

hiiped 03-23-2006 12:28 AM

Quote:

Originally Posted by xlguy
I have made a modification to this, so if someone does "Hello............" it will strip off all those ... before it does the count. Basically it reduces the number of .... anywhere in the string to just three. If anyone wants this as well then PM me or reply here and I'll package it up.

Please include this instructions

SHalliday 04-19-2006 01:45 PM

I tried installing according to installation instructions. Used product manager to import as product and received the following error:

XML Error: not well-formed (invalid token) at Line 1

Has anyone else received this error or have any idea how I can get it fixed?

xlguy 04-19-2006 01:47 PM

Did you unzip the package first?

SHalliday 04-19-2006 05:59 PM

My mistake and a very stupid one at that. Thank you for pointing out the problem and thank you for writing such a useful plugin. I now have it installed and tested so I am clicking INSTALL.


All times are GMT. The time now is 09:03 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.01607 seconds
  • Memory Usage 1,727KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete