![]() |
Minimum characters needed for a new post
What does this hack do?
If you post a new thread or a new reply and the message is too short (shorter than a number of characters you specify), you'll recieve an error. This *might* stop spamming. Requested by https://vborg.vbsupport.ru/showthread.php?postid=377468 Screenshots -Admin CP Options -> [Thread Display Options] -The actual error page Installation See attached text file Approx. install time: 5 min or so [high]After installation, remember to set the 'Minimum Characters per post' option to a suitable value (for example 50)[/high] Updates -fixed lil typo in the install file :) (template name was wrong) -thanks to Zelda-King for pointing me on editpost.php ;) [high]Please click the install button if you installed this hack!!![/high] |
Screenshot
Admin options [Thread Display Options] |
Screenshot
The actual error page |
Nice little addition. I will make it so Admins and Mods are exempt, though. ;)
|
Nice idea - vB users are really hitting down on spammers nowadays ;)
- miSt |
Quote:
PHP Code:
[high]not tested though![/high] please tell me if it works ;) [high]btw, anyone know if there's a similar function to in_array, but that returns FALSE where in_array returns TRUE (like checking if something is NOT in an array...)[/high] |
Here's the code I was going to use.
PHP Code:
|
I recommend the code be inserted into editpost.php as well. Also, in the text file you said to make a template called 'error_toolong'. Surely you mean 'error_tooshort'.
|
great work, i saw this on vb3, altho it's more a little pop up like the pm thing but blah, this is great!
|
this is nice, im gonna install
|
i think i'll install too
|
Haha, first ever hack dedicated to me! -Punches air-
Thanks for this, i'm grateful. Good job! :) -Clicks Install- |
I cant understand this one:
now, run this query: -------------------- INSERT INTO setting VALUES ('', 8, 'Minimum Characters per post', 'postminchars', '0', 'The minimum number of characters that you want to require per post. Set this to 0 to disable it.', '', 7); -------------------- |
Run it in PHPmyadmin
(SQL) |
You mean Ill put everything that's inside the parenthesis?? :) I have PHPadmin running but how do I do it? What are the procedures for this?? :)
|
bump
|
You run the whole query, just like it is written:
INSERT INTO setting VALUES ('', 8, 'Minimum Characters per post', 'postminchars', '0', 'The minimum number of characters that you want to require per post. Set this to 0 to disable it.', '', 7); in phpmyadmin, which you should be able to get to from your server. If not, talk to your host and they will tell you how to get to phpmyadmin. ;) |
Quote:
I know how to get to phpmyadmin, in fact i was the one who installed it. I just dont know how to run this query, what should I click and what are the fields that I should fill up? Is it ok to provide me the steps? :) |
Ok, let's try this one last time. ;)
Before you do anything, backup your database! Go to phpmyadmnin and click on the database name (at the top) in the left window. You will see 5 options in the right hand window. They are: Structure SQL Export Search Query Click on the SQL option and enter this in the big box (just copy and paste): INSERT INTO setting VALUES ('', 8, 'Minimum Characters per post', 'postminchars', '0', 'The minimum number of characters that you want to require per post. Set this to 0 to disable it.', '', 7); Hit go and you are done. |
Wow! That was easy! thanks :)
|
Ei, what if I dont want this hack anymore, how do I uninstall it?? :)
|
Why not just set the min characters to 0 to disallow?
|
Leider ist die .txt Datei nicht mehr vollständig.
Könnte das vielleicht nochmal jemand anhängen? |
This hack is exactly what I was looking for! It works great, thanks a lot!
|
I installed the hack, works fine. One of my mods asked if it would be possible to make a different limit based on post count? We basicially want newbies to post more information than our regular members, so we want a higher minimum for the newbs.
|
All times are GMT. The time now is 12:06 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|