[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
Locked
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

[MODDB] Anti all uppercase letters

Post by mtrs » Mon Sep 29, 2008 7:16 pm

Modification Name: Anti all uppercase letters
Author: mtrs

Modification Description: Prevents or corrects all uppercase-capital letters in post_texts and topic titles. It can be configured at ACP to make first title letters capital and can prevent a few repeptitive characters in topic title.
Modification Version: 1.0.0

Features:
  • Prevents or corrects all uppercase letters in topic title an post_text
  • Ability to set allowed uppercase characters ratio at ACP (default %80)
  • remove_shouting_utf8() function can correct letters first to lowercase, then makes first letters after [ . ! ? ] uppercase.
  • Regardless of other configurations, it can make first letters of topic titles uppercase.
  • Post count limit to enable mod for users fewer posts than limit. By default, users who has fewer than 10 posts, is affected by mod.
  • Ability to enable and disable mod for topic title and post text.
  • Ability to enable only for certain users.
  • Ability to prevent e few repetitive characters in topic title
Download: Anti all uppercase letters


This mod is at BETA level and is not tested enough, enabling for all users is not recommended.

After installing, you need to clear cache and enable mod at ACP. Also, you can set ignore uppercase check or compulsory uppercase correction permissions at ACP USERS AND GROUPS/user permissions.

Edit: 2008-10-11 - Version 0.0.2
  • User override ALL CAPS check permission added
Edit: 2008-10-26 - Version 0.0.3
  • Correction improved
Edit: 2008-10-29 - Version 0.0.4
  • Improved Turkish utf8 correction function added
Edit: 2008-11-03 - Version 0.1.0
  • post_subject are only checked in new topics
  • codes from posting.php seperated to function file
  • watched_users list replaced with check_uppercase user permission
Edit: 2008-11-15 - Version 0.1.1
  • mb_convert_case($string, MB_CASE_TITLE, "UTF-8") title correction function changed
  • bug fix of correction function
  • Since, %95 time people do not change post_subject, this only controls topic titles..
  • For utf8 computability, English post_text correction function is selected utf8 mode.
Edit: 2009-04-19 - Version 0.1.2
  • Repetitive characters check added
  • Allowed all uppercase letters % ratio option added
  • UMIL suppport added
    Edit: 2009-04-20 - Version 0.1.3
    • Bug fix to allow valide post
[/size][/color]
Last edited by mtrs on Wed Jul 15, 2009 8:28 am, edited 10 times in total.
I abandoned all of my mods.

User avatar
KellyBean
Registered User
Posts: 270
Joined: Wed Nov 07, 2007 3:06 pm
Location: Massachusetts
Contact:

Re: [ALPHA] Anti all uppercase letters (0.0.1)

Post by KellyBean » Tue Oct 07, 2008 6:21 pm

Very interested in this one. :)
My Forum | My Design/How-to Site
Need help MODing or customizing your site? I can do it for a very reasonable fee. Contact me!

Image

User avatar
Dugi
Registered User
Posts: 1386
Joined: Sun May 25, 2008 5:36 pm
Location: Mainz, Germany
Name: Dukagjin Surdulli
Contact:

Re: [ALPHA] Anti all uppercase letters (0.0.1)

Post by Dugi » Wed Oct 08, 2008 3:08 pm

working!! thanks :twisted:
PM me for custom extension pricing / My validated MODs / My MODs in development

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

Re: [ALPHA] Anti all uppercase letters (0.0.1)

Post by mtrs » Thu Oct 09, 2008 6:18 pm

Thanks for your interest.
In next versions, I may add user and forum permissions to ignore this ALL UPPERCASE check.

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

Re: [ALPHA] Anti all uppercase letters (0.0.2)

Post by mtrs » Sun Oct 12, 2008 12:12 am

Version updated to 0.0.2
User permission to ignore all uppercase check added.
I abandoned all of my mods.

User avatar
Dugi
Registered User
Posts: 1386
Joined: Sun May 25, 2008 5:36 pm
Location: Mainz, Germany
Name: Dukagjin Surdulli
Contact:

Re: [ALPHA] Anti all uppercase letters (0.0.2)

Post by Dugi » Sun Oct 12, 2008 11:13 am

great :D
PM me for custom extension pricing / My validated MODs / My MODs in development

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

Re: [ALPHA] Anti all uppercase letters (0.0.3)

Post by mtrs » Sun Oct 26, 2008 12:52 am

Updated to 0.0.3
The correction function improved..
I abandoned all of my mods.

User avatar
DoYouSpeakWak
Registered User
Posts: 2307
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Name: Hans Lassen
Contact:

Re: [ALPHA] Anti all uppercase letters (0.0.3)

Post by DoYouSpeakWak » Sun Oct 26, 2008 9:43 am

Very nice. I hope this can go on a live board later on. Keep up the good work :)
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid phpBB help and System administrator services.

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 » Thu Nov 06, 2008 12:59 am

Thanks for comments,
Updated to 0.1.0 Beta
- Added utf8 correction funtion
I abandoned all of my mods.

User avatar
Lisbon
Registered User
Posts: 825
Joined: Wed Jan 30, 2008 12:28 pm
Location: Zermatt

Re: [ALPHA] Anti all uppercase letters (0.0.1)

Post by Lisbon » Thu Nov 06, 2008 8:27 am

KellyBean wrote:Very interested in this one. :)
Same here ;)

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 » Thu Nov 06, 2008 8:37 am

The mod features are achieved, I don't intend to add anymore feature.
Also, I need to add, at 0.1.0, I made topic title control only by default, because I see in my board, %95 of users don't change post_subjects in replies.
I abandoned all of my mods.

User avatar
Lisbon
Registered User
Posts: 825
Joined: Wed Jan 30, 2008 12:28 pm
Location: Zermatt

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

Post by Lisbon » Fri Nov 07, 2008 8:46 am

Im my opinion this mod must to have a option for adapte some word´s. for exemple:

PT = Portugal
USD = Dolars
US = United Stades
CHF = Swiss Francs
EUR = money

Lock here: http://www.doktor-listesi.com/phpbb3/vi ... p?p=61#p61

Another sugestion. this mod cam allow same uppercase letters words for exemple 3 for post reply (configurabel im ACP). Like this:

If you enjoy using XAMPP and would like to help in carrying some of the financial burden of the project, we would greatly appreciate your voluntary support payment. PLEASE note that this is NOT considered a tax-deductible donation.

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 » Fri Nov 07, 2008 10:45 am

Lisbon wrote:Im my opinion this mod must to have a option for adapte some word´s. for exemple:

PT = Portugal
USD = Dolars
US = United Stades
CHF = Swiss Francs
EUR = money
You're telling about optional message text auto correction function. It can't be perfect, but may be tuned for better. You can filter some words to correct ones as you desire..
Open
includes/functions_lowercase.php
Around line 248
Find

Code: Select all

	$string = str_replace(array("``", "`|", "´´"), array(".", "?", "!"), $string);
Replace with

Code: Select all

	$string = str_replace(array("``", "`|", "´´", "Image", ".Jpg", ".Bmp", ".Png", ".Gif", " pt ", " usd ", " chf "), array(".", "?", "!", "image", ".jpg", ".bmp", ".png", ".gif", " PT ", " USD ", " CHF " ), $string);
Lisbon wrote:Another sugestion. this mod cam allow same uppercase letters words for exemple 3 for post reply (configurabel im ACP). Like this:

If you enjoy using XAMPP and would like to help in carrying some of the financial burden of the project, we would greatly appreciate your voluntary support payment. PLEASE note that this is NOT considered a tax-deductible donation.
I don't think this is a good idea, because there are "of", "to", "the", all have 3 or fewer letters. This correction cannot be very good, it's a replacement to all caps message rejection, so should be good enough for people who always insist on writing with all uppercase.
If I can, I want to exclude some bbcodes (quote, code, img) tagged texts from the message text correction 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.0)

Post by danswano » Mon Nov 10, 2008 2:02 pm

I tried switching the options alot in the ACP but i couldn't get i want

i want to prevent all small in title only: ever title written in all small convert to first letter cap and the message stay the same!

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:12 pm

In ACP options, try as follows. This way only topic title first letters are made uppercase, without any control.

Code: Select all

Enable ALL CAPS preventions             : Yes
---                                     : No
---                                     : No
---                                     : No
Make topic title first letters uppercase: Yes
By default it will check only topic titles.
I abandoned all of my mods.

Locked

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