phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

All Capitals


 
Search this topic... | Search MOD Requests... | Search Box
Register or Login to Post    Index » MOD Requests  Previous TopicPrint TopicNext Topic
Author Message
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 548
Location: North West UK


flag
PostPosted: Tue Apr 21, 2009 5:44 pm 
Post subject: All Capitals

Does anyone know of a mod that will take a post that is in all upper case and convert it to lower case save first letter in a sentence or a word or in the case of lone letters?
Either that or if the post is in all upper case stop the post from being made with a warning about SHOUTING.

Before anyone suggests the one in the phpbb.com database I have tested it and basically it does not work properly. It turns all to lower case bar the first letter but in a genuine post that requires some capitalisation it turns some capitals to lower and some lower to capitals.
Posting "My name is Joe Bloggs" gives you "My naMe is joe bloggs"
Note the loss of the two capital letters and the strange way it has capitalised the letter "m"

I am wanting to add this just for one person that keeps lapsing into All capitals (may be intentional as he has been told off on numerous occasions).
I know that some would say ban him if he keeps breaking the rules but I do not want to go down that road.

Jim
Back to top
Dog Cow
Board Member



Joined: 18 Nov 2008

Posts: 378


flag
PostPosted: Tue Apr 21, 2009 7:49 pm 
Post subject: Re: All Capitals

There doesn't appear to be a straightforward solution, but you could have a look here: http://us.php.net/manual/en/function.ucfirst.php#72718
There are a few solutions for capitalizing the first word of each sentence provided on that page.

_________________
Moof!
Lincoln's Tomb, Oak Ridge Cemetery, Springfield IL Mac 512K Blog Mac GUI
Back to top
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 621
Location: Spain


flag
PostPosted: Tue Apr 21, 2009 8:30 pm 
Post subject: Re: All Capitals

Hi Jim,

I use Prevent All Caps Posts Hack and it works, it prevents posting posts and/or titles in ALL CAPS. It shows a message telling the user to not use ALL CAPS.

It's amazingly simple to install.

Have a see... icon_wink.gif

_________________
phpBB2 will never die, I hope!
Back to top
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 548
Location: North West UK


flag
PostPosted: Thu Apr 23, 2009 7:59 am 
Post subject: Re: All Capitals

Thanks guys.
If not to convert back to lower case then the best solution is to stop the post so looks like the one in the last post will do the trick.

Jim

Edit
Better than the other mod but still has some severe limitations. The presence of a single lower case letter in the whole post is enough to allow the post to go through. We could have something like this.

I WILL POST IN ALL CAPITALS AND THERE IS LITTLE YOU CAN DO THAT WILL STOP IT GOING THrOUGH.

Mind you, if he does do that then I shall just activate the troll mod on him.

I and my co-admin have bent over backwards to accommodate him, even retyping some of his posts but we are getting to the end of our tether now.

Maybe some sort of check on what percentage are in upper case would be an improvement with the mod.
Back to top
Display posts from previous:   
Register or Login to Post    Index » MOD Requests  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0286 seconds using 15 queries. (SQL 0.0024 Parse 0.0011 Other 0.0252)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo