I run a site with some members who insist on using alot of capitalization. Ideally I would like to be able to run a filter that removes excessive capitalization.

Does anyone know of a filter I could use to achieve this, or how I would be able to set up a filter myself to do it.

Comments

yelvington’s picture

Back in the 1980s when bulletin board systems were new, there was a user "Sugar Bunny" on a BBS in Seattle WHO ONLY USED CAPS. The Citadel BBS software then gained the "Bunny Filter" to downcase any posts that were constructed entirely of capital letters.

I don't know of anything like that today for any system, including Drupal. Probably not terribly hard to code, although ironically it's likely to be easier in C than PHP.

Sorry not to be very helpful. :-)

georgiebon’s picture

I'm not a great coder (yet!) and so will probably just have to live with all those caps, but thanks for taking the time to reply.

WorldFallz’s picture

You can always try the css 'text-transform: capitalize' propery-- you'll still have inappropriate initial caps but thats much better than all caps. And after a while, when they realize ALL CAPITALS DON'T WORK the guilty users will hopefully give up.

mcfilms’s picture

I was going to suggest this, but it seems like the result would be initial caps for everybody.

So Every Poster Would End Up With Something Like This. It Penalizes The Good Guys, Unless There Is A Way To Do Conditional Css That I Don't Know Of.

A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com

mattwmc’s picture

I know vbulletin has some kind of way to detect posts that are in all Caps and make them lowercase.

So there is definitely a way.

Would this help? Though I think this stops the post if its all in caps.

http://www.webmasterworld.com/javascript/3584829.htm

WorldFallz’s picture

good point-- that didn't occur to me. You can also use the ucfirst php function in combination with preg_replace or preg_split to do sentence case-- google it a bit and I'm sure you'll find a snippet.