[MODDB] Anti all uppercase letters

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Anti-Spam Guide
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [BETA] Anti all uppercase letters (0.1.0)

Post by mtrs » Sat Nov 15, 2008 6:41 pm

Mod updated to version 0.1.1, to upgrade from 0.1.0 to 0.1.1 just download the package and upload
includes/functions_lowercase.php function to overwrite older one.
danswano wrote:Another bug for this example:
Forum's Calendar > Forum'S Calendar
????
I have changed the title correction function mb_convert_case($string, MB_CASE_TITLE, "UTF-8") , those correction errors comes from that function.
sotis wrote:If “Enable ALL CAPS prevention:” is “Yes” and “Enable auto correction to lowercase:” is “No”, I always receive a warning: “It is not allowed to type with all uppercase letters in topic title!” even the subject is all lowercases.
This is a bug and corrected in 0.1.1 . I have added a new control line.
sotis wrote:And if “Enable ALL CAPS prevention:” is “Yes” and “Enable auto correction to lowercase:” is “Yes” it always corrects the text in subject and in the post, it doesn't matter if I enable or disable the other settings.
There are two user permissions comes with this mod, one of them to ignore this mod, the other is forcing any text to be corrected. If you don't want to ignore this mod or force anyone always checked, don't touch permissisons. I guess, you must have set YES to "can post with uppercase" permission. Set it NO.
sotis wrote:And one question, I want only first letter in hole subject to be corrected to uppercase, not every word. How this can be done. Correcting every word in the subject to uppercase is only for English grammar.
Enable ALL CAPS prevention: Yes
No:
No:
No:
Make topic title first letters uppercase: Yes

This will only make first letters of topic titles uppercase.
I abandoned all of my mods.

danswano
Registered User
Posts: 273
Joined: Sun Apr 06, 2008 10:43 pm

Re: [BETA] Anti all uppercase letters (0.1.1)

Post by danswano » Sat Nov 15, 2008 8:18 pm

The mod is better now but the message correction not working at all, everything enabled!

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [BETA] Anti all uppercase letters (0.1.1)

Post by mtrs » Sat Nov 15, 2008 8:21 pm

Therer is
User posts limit for ALL CAPS check: 10
The default 10 value means, only users with post counts fewer than 10 to be check.
Make use to select a big enough number for testing.
I abandoned all of my mods.

danswano
Registered User
Posts: 273
Joined: Sun Apr 06, 2008 10:43 pm

Re: [BETA] Anti all uppercase letters (0.1.1)

Post by danswano » Sat Nov 15, 2008 8:36 pm

I set the number to 9999999999 and still not working! :geek:

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [BETA] Anti all uppercase letters (0.1.1)

Post by mtrs » Sat Nov 15, 2008 8:54 pm

mtrs wrote:
danswano wrote:i want just the titles with smalls not caps without returning message!
You just want title check.
Open
posting.php
Find

Code: Select all

$message_parser->message = message_text_uppercase_check($message_parser->message);
Replace with

Code: Select all

//$message_parser->message = message_text_uppercase_check($message_parser->message);
You previously asked for title with no caps correction, then given the code changes above, you cannot control or correct message text.
danswano wrote:The mod is better now but the message correction not working at all, everything enabled!
Now, you want message correction again, so just uncomment message_text_uppercase_check function .
I abandoned all of my mods.

danswano
Registered User
Posts: 273
Joined: Sun Apr 06, 2008 10:43 pm

Re: [BETA] Anti all uppercase letters (0.1.1)

Post by danswano » Sat Nov 15, 2008 9:13 pm

I'm very sorry, totally forgot about that edit but i'm sorry to tell you that i can't use the message correction till now becasue of the extensions!
You've added images extensions i see but still the domains like .com and the scripts like .php

Can you remove this ugly thing from the function that make the letters caps after each dot or comma ?

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [BETA] Anti all uppercase letters (0.1.1)

Post by mtrs » Sat Nov 15, 2008 10:30 pm

danswano wrote:Can you remove this ugly thing from the function that make the letters caps after each dot or comma ?
That is the correction function, you can disable autocorrection..

If you want text correction only make letters lowercase, then do the following edit.

Open
includes/functions_lowercase.php
Find

Code: Select all

				$string = remove_shouting_utf8($string);
Replace with

Code: Select all

				$string = utf8_strtolower($string);
I abandoned all of my mods.

sotis
Registered User
Posts: 294
Joined: Tue Oct 17, 2006 4:56 pm
Location: Bulgaria
Contact:

Re: [BETA] Anti all uppercase letters (0.1.0)

Post by sotis » Sat Nov 15, 2008 10:50 pm

mtrs wrote:
sotis wrote:And if “Enable ALL CAPS prevention:” is “Yes” and “Enable auto correction to lowercase:” is “Yes” it always corrects the text in subject and in the post, it doesn't matter if I enable or disable the other settings.
There are two user permissions comes with this mod, one of them to ignore this mod, the other is forcing any text to be corrected. If you don't want to ignore this mod or force anyone always checked, don't touch permissisons. I guess, you must have set YES to "can post with uppercase" permission. Set it NO.
How danswano said if I don't force the permissions and leave them how they are, the mod doesn't work at all. It doesn't depend of the post count.
mtrs wrote:
sotis wrote:And one question, I want only first letter in hole subject to be corrected to uppercase, not every word. How this can be done. Correcting every word in the subject to uppercase is only for English grammar.
Enable ALL CAPS prevention: Yes
No:
No:
No:
Make topic title first letters uppercase: Yes

This will only make first letters of topic titles uppercase.
This settings don't do anything, it doesn't change anything at all.
But when I put:
YES
NO
NO
YES
YES

it corrects the title, but as I said before it corrects every word of the title, like: “This Is The Title”. I don't want this way, what I want is: “This is the title”, only the first letter of the hole title.

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [BETA] Anti all uppercase letters (0.1.1)

Post by mtrs » Sat Nov 15, 2008 11:08 pm

Try,
  • Yes
    Post count limit:
    No
    No
    No
    Yes
I abandoned all of my mods.

danswano
Registered User
Posts: 273
Joined: Sun Apr 06, 2008 10:43 pm

Re: [BETA] Anti all uppercase letters (0.1.0)

Post by danswano » Sat Nov 15, 2008 11:10 pm

sotis wrote: This settings don't do anything, it doesn't change anything at all.
But when I put:
YES
NO
NO
YES
YES

it corrects the title, but as I said before it corrects every word of the title, like: “This Is The Title”. I don't want this way, what I want is: “This is the title”, only the first letter of the hole title.
Good point too!

sotis
Registered User
Posts: 294
Joined: Tue Oct 17, 2006 4:56 pm
Location: Bulgaria
Contact:

Re: [BETA] Anti all uppercase letters (0.1.1)

Post by sotis » Sat Nov 15, 2008 11:28 pm

mtrs wrote:Try,
  • Yes
    Post count limit:
    No
    No
    No
    Yes
This doesn't do anything.


This doesn't do anything ether:

Anti all uppercase letters – YES
User posts limit for ALL CAPS check: - 99999
Enable for topic title: - NO
Enable for message text: - NO
Enable auto correction to lowercase: - NO
Make topic title and post subject first letters uppercase: - YES

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [BETA] Anti all uppercase letters (0.1.1)

Post by mtrs » Sat Nov 15, 2008 11:38 pm

It will only correct new topic titles.
I abandoned all of my mods.

sotis
Registered User
Posts: 294
Joined: Tue Oct 17, 2006 4:56 pm
Location: Bulgaria
Contact:

Re: [BETA] Anti all uppercase letters (0.1.1)

Post by sotis » Sun Nov 16, 2008 12:02 am

Yes it works this way:
Anti all uppercase letters – YES
User posts limit for ALL CAPS check: - 10000
Enable for topic title: - NO or YES
Enable for message text: - NO or YES
Enable auto correction to lowercase: - NO
Make topic title and post subject first letters uppercase: - YES

but if I put:
Enable auto correction to lowercase: - YES
it corrects every word of the title, like: “This Is The Title”, I want auto correction but with only first letter: “This is the title”

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: [BETA] Anti all uppercase letters (0.1.1)

Post by mtrs » Sun Nov 16, 2008 12:11 am

sotis wrote: but if I put:
Enable auto correction to lowercase: - YES
it corrects every word of the title, like: “This Is The Title”, I want auto correction but with only first letter: “This is the title”
It works in my test board.

To make it certain, as you want

Open
includes/functions_lowercase.php
Find

Code: Select all

				$string = remove_shouting_title_en($string);
Replace with

Code: Select all

				//$string = remove_shouting_title_en($string);
				$string = utf8_ucfirst($string);
This way, only the first letter of new topic titles is made uppercase.
I abandoned all of my mods.

Ciao121
Registered User
Posts: 239
Joined: Wed Jan 28, 2004 1:08 pm

Re: [BETA] Anti all uppercase letters (0.1.1)

Post by Ciao121 » Sat Nov 22, 2008 7:17 pm

I have 2 problems with this useful mod:

1) If I have a bbcode like this i.e. [Youtube] the mod change it to [youtube] and it doesn't work anymore. (I know I can changhe the bbcode but maybe I also have to change it in all posted messages). Maybe the rule is to shave all bbcode written in small?

2) If a user post all caps but uses emoticons, since emoticons codes are for the major par small letters, the pecentage is low and the sistem doesn't correct the text:
ie: HI ALL THIS IS MY POST :mrgreen: :mrgreen: :mrgreen: :mrgreen:

The post is:

Code: Select all

HI ALL THIS IS MY POST  :mrgreen:  :mrgreen:  :mrgreen:  :mrgreen: 
Apri il tuo forum gratuito in 1 minuto.

Locked

Return to “[3.0.x] MODs in Development”