vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   limited char in post (https://vborg.vbsupport.ru/showthread.php?t=32388)

Nam 11-13-2001 10:19 PM

Is there a way to eliminate post whores? Like limit the char input to 20 or something? I don't know if I've asked this before, but I've seen UBB has this function.

Palmer ofShinra 11-14-2001 09:04 AM

You mean make it so that they can't have more than a certain number of characters in their posts?

That's built into vB already.

Nam 11-14-2001 09:35 AM

sorry for not clear, I want the other way around, no less than 20, NOT no more than...

For instance, built in that no more than 10000 char as default, now I want the post that 20 < post <10000

T?Pau 02-03-2002 09:41 PM

To set a minimum character limit into the users post, just open newpost.php and newthread.php

find:
Code:

if (strlen($message)>$postmaxchars and $postmaxchars!=0) {
    eval("standarderror(\"".gettemplate("error_toolong")."\");");
  }

directly after that, insert the following:
Code:

if (strlen($message)<20) {
    eval("standarderror(\"".gettemplate("error_tooshort")."\");");
  }

Then go to your Admin cp and create a new Template called error_tooshort
and insert:
Code:

Your Message is too short.
Please write at least 20 characters.

You are done. Change the minimum characters (20) to your needs. :)


All times are GMT. The time now is 02:42 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.01089 seconds
  • Memory Usage 1,710KB
  • 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
  • (3)bbcode_code_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