Page 2 of 7

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

Posted: Mon Nov 10, 2008 2:19 pm
by danswano
But i'm getting the return information message and if i enable it it correct the message what to do ?

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

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

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

Posted: Mon Nov 10, 2008 2:40 pm
by danswano
Ok what i want is to by pass the warning and go to the auto corrected post but just for the title!

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

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

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

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

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

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

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

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

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

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

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

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

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

Posted: Wed Nov 12, 2008 11:24 am
by danswano
The titles that contains "&" are getting converted to "&Amp;", do you have any idea why ?

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

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

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

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

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

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

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

Posted: Thu Nov 13, 2008 11:44 am
by danswano
Another bug for this example:

Forum's Calendar > Forum'S Calendar

????

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

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