[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!
Ideas Centre
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 » Mon Nov 10, 2008 2:19 pm

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 » Mon Nov 10, 2008 2:33 pm

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 » Mon Nov 10, 2008 2:40 pm

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 » Mon Nov 10, 2008 2:49 pm

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 » Mon Nov 10, 2008 3:04 pm

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 » Mon Nov 10, 2008 3:49 pm

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 » Mon Nov 10, 2008 7:26 pm

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 » Mon Nov 10, 2008 7:37 pm

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 » Mon Nov 10, 2008 9:56 pm

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 » Wed Nov 12, 2008 11:24 am

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 » Wed Nov 12, 2008 12:41 pm

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 » Wed Nov 12, 2008 4:30 pm

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 » Wed Nov 12, 2008 6:02 pm

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 » Thu Nov 13, 2008 11:44 am

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 » Sat Nov 15, 2008 4:15 pm

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”