News:

Wondering if this will always be free?  See why free is better.

Main Menu

Minimum Characters/Words Per Post

Started by Aitsukai, March 12, 2006, 05:45:06 PM

Previous topic - Next topic

Aitsukai

Link to Mod

With this modification, you may set a minimum character/word requirement for each post on your forum. When a user attempts to post, their post length will be checked, and if the post doesn't have enough words, or enough characters, the person will receive an error.

Screenshots:





Disclaimer:

The code was written by RyanJones. I simply turned it into a package and released it - with his permission, of course.

kezayah

Hello !!!
I've got this errors in my log :

8: Undefined index: minChar
Fichier: /home/www/****/web/Themes/default/Post.template.php (eval?)
Ligne: 209

8: Undefined index: minChar
Fichier: /home/www/****/web/Themes/default/languages/Post.french.php (eval?)
Ligne: 209


I add this code in errors.french.php
$txt['error_minWordLen'] = 'Le message ne répond pas aux exigences minimum de (' . $modSettings['minWordLen'] . ' mots).';
$txt['error_minChar'] = 'Le message ne répond pas aux exigences minimum de (' . $modSettings['minChar'] . ' caractères).';


Where is my error ??  :'(


Prasad007


Aitsukai

Quote from: Prasad007 on March 14, 2006, 07:30:36 AM
by words, do you mean characters?

I mean both. This mod allows you to set both a minimum word and character requirement.

Quote from: kezayah on March 13, 2006, 04:58:37 AM
Hello !!!
I've got this errors in my log :

8: Undefined index: minChar
Fichier: /home/www/****/web/Themes/default/Post.template.php (eval?)
Ligne: 209

8: Undefined index: minChar
Fichier: /home/www/****/web/Themes/default/languages/Post.french.php (eval?)
Ligne: 209


I add this code in errors.french.php
$txt['error_minWordLen'] = 'Le message ne répond pas aux exigences minimum de (' . $modSettings['minWordLen'] . ' mots).';
$txt['error_minChar'] = 'Le message ne répond pas aux exigences minimum de (' . $modSettings['minChar'] . ' caractères).';


Where is my error ??  :'(


Hm, guess this is a bug. Did you save your character/word requirement settings?

kezayah

#4
Yes, in the panel admin, I have put 0 for caracters and 5 for words !!! ;)
Otherwise, I don't modify your mod, exepted for the french's translation !!!  ;D

http://ze-forum.org/mincharword.zip

There is this error when someone post less down 5 words !!!

Aitsukai

I tried with those exact same settings and I'm not getting any errors. I'm pretty sure that wouldn't be caused by a language file either. What version did you install this on?


Aitsukai


kezayah

Quote from: Aitsukai on March 15, 2006, 04:15:50 AM
I tried with those exact same settings and I'm not getting any errors. I'm pretty sure that wouldn't be caused by a language file either. What version did you install this on?
I have this problem since I downloaded your mod ...
Try to write a post with 2 words and you'll see a error in your log ... normally ...
My version ??? SMF ??? RC 1.2 :)

Prasad007

Quote from: Aitsukai on March 15, 2006, 12:00:04 AM
Quote from: Prasad007 on March 14, 2006, 07:30:36 AM
by words, do you mean characters?

I mean both. This mod allows you to set both a minimum word and character requirement.

k thanks! :)

Aitsukai

Quote from: kezayah on March 15, 2006, 06:54:17 AM
Quote from: Aitsukai on March 15, 2006, 04:15:50 AM
I tried with those exact same settings and I'm not getting any errors. I'm pretty sure that wouldn't be caused by a language file either. What version did you install this on?
I have this problem since I downloaded your mod ...
Try to write a post with 2 words and you'll see a error in your log ... normally ...
My version ??? SMF ??? RC 1.2 :)
I didn't see any error. :s

sbarnes

Hi there,
Thanks for mod, works great.
I've always had a problem however.
Even if I set the minimum words per post to 0 it will still show 5 although it will not need minimum of 5 words typed.

It not really a big deal as it does not affect the posting of posts but in the admin posts and topics you see '5' where you know it should read '0'
Any ideas?

azuregenesis

^^ easily fixed. i'm assuming you already installed this mod. now,

go to Admin.template.php (inside your theme folder)

and search for this:
<td valign="top">
<input type="text" name="minWordLen" id="minWordLen_input" value="', empty($modSettings['minWordLen']) ? '5' : $modSettings['minWordLen'], '" size="5" /> ', $txt['minWordLen_words'], '
</td>


replace with this:
<td valign="top">
<input type="text" name="minWordLen" id="minWordLen_input" value="', empty($modSettings['minWordLen']) ? '0' : $modSettings['minWordLen'], '" size="5" /> ', $txt['minWordLen_words'], '
</td>


done.

K_4_kelly

i couldnt find the setting in the control panel... :-[
where is it..???

PrizeLive.com

Quote from: ukwalker on May 04, 2006, 09:36:55 PM
i couldnt find the setting in the control panel... :-[
where is it..???

Admin --> Posts and Topics

---------

How can you choose which boards to apply this mod to?
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

mfKG

Quote from: SurfExcelerator.com on July 01, 2006, 01:32:42 PM
Quote from: ukwalker on May 04, 2006, 09:36:55 PM
i couldnt find the setting in the control panel... :-[
where is it..???
Admin --> Posts and Topics

sorry, but i also can't find it there,....
SRY my SiG is AtM AFK

PrizeLive.com

Quote from: mfKG on July 03, 2006, 06:04:50 AM
sorry, but i also can't find it there,....

Here's what it looks like: IMAGE.

It'd be useful to me if you can apply it to certain boards instead of all of them. Is there a way to do this?
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

mfKG

#17
Thx for u'r Answer, and the pic (i know where i need 2 seach for it, but there must be another Problem)

So it look like by me ;(

but it's not there  :(

(i'm using SMF 1.1 RC2)
SRY my SiG is AtM AFK

PrizeLive.com

Can this mod be modified to select which boards to apply it to?

I only want select boards on my forum to have a minimum char/word count per post.

I'm using version 1.1 RC2.

Thanks!
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

Brianw1212

Hi guys,

This mod works great for me.. the only question i have relates to if a board member quotes another member... let's say if i quote your post and in your post, you typed 5 words, i only need to post 1 word to send the message through... so basically, the quoted part is included in the total amount of words allowed, correct?  That to me isn't solving the problem.. I'm still having tons of members quoting each others posts and typing in 1 word responses.. i was wondering if there was a way to set it so the system does not count whatever is in quotes as part of the "5 word requirement"..

Does anyone know of a way to fix this?

Thanks


Advertisement: