[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
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 »

But i'm getting the return information message and if i enable it it correct the message what to do ?
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 »

If auto correction is disabled and title and message text control enabled, this mod will reject messages with a warning.
Can you try again and give more info to reproduce what you have seen?
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 »

Ok what i want is to by pass the warning and go to the auto corrected post but just for the title!
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 »

danswano wrote:Ok what i want is to by pass the warning and go to the auto corrected post but just for the title!
So, at ACP options, you should select

Code: Select all

Enable for message text:  No
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 »

Enable ALL CAPS preventions : Yes
Enable for topic title: : Yes
Enable for message text: : No
Enable auto correction to lowercase: : Yes
Make topic title first letters uppercase: Yes


I made this but it's still making first letter of the message cap, tust me buddy i tried them all!
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 »

There are two user permissions comes with this mod, by default they are NO, if you made the second one YES, it can always checks your text.
Besides, I tested this mod for English text, works fine in my demo board, you can check.
If you like, you can pm me test account info, to see your error.
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 »

My second permission is set to no (can ignore check), how i will remove this returning message from the code ?
i want just the titles with smalls not caps without returning message! :?
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 »

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);
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 »

Now it's working as i want, thank you for the fast replies and for the mod and i hope that you find a solution for the URL issues like .com and the extensions like .jpg as a whole other tan adding them one by one to the function! :D
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 »

The titles that contains "&" are getting converted to "&Amp;", do you have any idea why ?
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 »

danswano wrote:The titles that contains "&" are getting converted to "&Amp;", do you have any idea why ?
My demo board doesn't reproduce this error.. Can you give a sample title?
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 »

I've posted a topic called "Creepy & Cute" and i've disabled the check on me as admin but when my users reply to the topic it becomes "Re: Creepy &Amp; Cute" !!!!!!!!
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 »

I saw it, it comes after mb_case function, we can filter that part.

Open
includes/functions_lowercase.php

Find

Code: Select all

//$string = str_replace(array(" Of ", " And ", " To ", " In ", " On "), array(" of ", " and ", " to ", " in ", " on "), $string);
Replace with

Code: Select all

$string = str_replace(array(" Of ", " And ", " To ", " In ", " On ", "&Amp;"), array(" of ", " and ", " to ", " in ", " on ","&"), $string);
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 »

Another bug for this example:

Forum's Calendar > Forum'S Calendar

????
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 »

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.

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.

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.
Locked

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