« [Plugin] DefaultAvatar
Plugin suggestion - Prevent ALL CAPS

Nao

  • Dadman with a boy
  • Posts: 16,082

txcas

  • Bug Zapper
  • Posts: 202
Re: Plugin suggestion - Prevent ALL CAPS
« Reply #16, on March 18th, 2014, 10:22 PM »
Quote from Nao on February 7th, 2014, 02:37 PM
I'm having no problems on my side either.
Any posts, body contents, [A-Z]{6,}, case-sensitive, save... Done.

BTW, there really isn't an all-caps filter, out of the box. The one I gave above is really limited. I guess it's plugin material, then... :-/
I tried this filter and it did nothing for me.  All Caps still come through.

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Plugin suggestion - Prevent ALL CAPS
« Reply #17, on March 20th, 2014, 06:04 PM »
Hmm, how could we do that... Maybe just do a temp preg_replace (in the post code) that removes all [^a-zA-Z] characters, and then determines whether the resulting string is ~^[A-Z]+$~..? Also make sure not to test on posts that are less than 100 chars long or something... (SO THAT I CAN SCREAM FOR FUN AND STILL NOT BE REJECTED, AH AH!!!!!!)

« [Plugin] DefaultAvatar