Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
  1.  # 1
    Hello!

    I would really like a simple extension that catches posts that are in all upper case and makes them lower case. I have a few forum users that have a habit of abusing the caps lock button, and i know I cant be the only one :) I did a search on the add ons site for "caps" but it turned up nothing.

    Thanks!
    •  
      CommentAuthorWallPhone
    • CommentTimeSep 8th 2006
     # 2
    tHE COMMENTS SECTION HERE HAS SOME EXAMPLE FUNCTIONS: http://www.php.net/strtolower

    Oops...

    Plug one of those into the instructions here: http://lussumo.com/docs/doku.php?id=vanilla:development:formatters

    And you are golden.
    •  
      CommentAuthorWallPhone
    • CommentTimeSep 8th 2006
     # 3
    •  
      CommentAuthorc-unit
    • CommentTimeSep 8th 2006
     # 4
    YOU CAN'T ABUSE CAPS LOCK
    • CommentAuthorithcy
    • CommentTimeSep 8th 2006 edited
     # 5
    i did it in javascript:

    STOP CAPS ABUSE add-on

    it works on a caps-to-lowercase-letters ratio which you can set in default.php.
    you can also define the minimum comment length to be checked for caps abuse.

    example: if you set your minimum comment length to 8 and your caps ratio to 50%,
    "AAAAA" will pass, "aaaaAAAA" will pass, but "aaaAAAAA" will fail.

    the user receives a confirmation box if caps abuse is detected, which gives them the option to correct the comment themselves, or else have it automatically converted to sentence case and submitted.
  2.  # 6
    Thanks ithcy!
    •  
      CommentAuthoroutbreak
    • CommentTimeSep 9th 2006 edited
     # 7
    tHE COMMENTS SECTION HERE HAS SOME EXAMPLE FUNCTIONS: http://www.php.net/strtolower

    Oops...


    oh god, the irony is delicious.
    •  
      CommentAuthorWallPhone
    • CommentTimeSep 9th 2006
     # 8
    Whats even funnier is I really typed that and didin't even realize the caps lock was on... just had to leave it in.
  3.  # 9
    hah. nice one.

    ithcy - I'm lookign at what you've made right now, and sorry for this most likely stupid question but in your default.php it says "You should cut & paste this language definition into your conf/your_language.php file (replace "your_language" with your chosen language, of course)". Could you clarify what you mean? Im used to uploading things to the extensions folder, checking off the box in settings and calling it a day. Thanks!
    • CommentAuthorithcy
    • CommentTimeSep 9th 2006 edited
     # 10
    eh, you can ignore that. that's for translators.
    that text is actually left over from the old vanilla 0.9.2 extensions that used to be packaged with the forum - i still use an empty one of them as a template when i make a new add-on. so i blame Mark for your confusion.
    • CommentAuthorithcy
    • CommentTimeSep 9th 2006
     # 11
    is this the same onetwentyeight from o8, by the way?
  4.  # 12
    I believe it is, yes. I keep getting him confused with eightseventhree though.
    •  
      CommentAuthorWallPhone
    • CommentTimeSep 9th 2006
     # 13
    Anybody else think its funny his user ID is twentyninetyeight?
  5.  # 14
    itchy - yep thats me. ex o8 and dreamless way back when.

    by the way, i cant get your extensions to work. giving me an error every time i try to enable both this one and confirm go back.
    • CommentAuthorithcy
    • CommentTimeSep 11th 2006 edited
     # 15
    hmm...

    can you paste the error message here?
    also what browser are you using?

    when you say "both of them" do you mean they work independently but not together, or they don't work at all?
    •  
      CommentAuthorbugsmi0
    • CommentTimeSep 12th 2006
     # 16
    WHAT'S, WRONG, WITH, USING, ALL, CAPS, ISN'T, THAT, CAPS PROFILING ?
    I suppose if someone abuses the comma, , , , , , , ,they will be targeted next, just kidding ;-)

    I have never seen such serious abuse maybe a few words with all CAPS but I really don't see how it can offend people, they call it SHOUTING but its nothing you can not possibly hear anything geez man virtual communities need to get a life,
    •  
      CommentAuthor3stripe
    • CommentTimeSep 12th 2006
     # 17
    how clever would this thing be, would it leave alone one word in caps in the middle of lowercase for example?
    •  
      CommentAuthorjimw
    • CommentTimeSep 12th 2006
     # 18
    I just had a weird thought. With the appropriate extensions (or plugins in the WP world), whatever the user enters can be changed to whatever we want. Filtering user input does scare me although the user can certainly review what he (or she) said to make sure it's accurate.
    • CommentAuthorithcy
    • CommentTimeSep 12th 2006
     # 19
    3stripe: it's not that clever. it just works on the ratio of caps to lowercase in the message, after a certain message length. it will hopefully achieve the same effect that way.

    jimw: yes, but as soon as people figure out that you're altering their input, you won't get many repeat visitors.
  6.  # 20
    ithcy - the error is this

    param: 'stopcaps abuse'

    click ok

    response: '<div class="Error"> the file could not be opened. please make sure that PHP has write access to the www/sffixed/Vanilla.merge/conf/extensions.pho file. </div>

    click ok

    failed to modify extension

    click ok
    • CommentAuthorithcy
    • CommentTimeSep 12th 2006
     # 21
    extensions.pho? is that your typo?
  7.  # 22
    yea, thats my typo. sorry. heh.
    • CommentAuthorithcy
    • CommentTimeSep 12th 2006
     # 23
    ok. this is not a problem with my extensions, really...
    do you have any other extensions running? you need to check the permissions on your conf/extensions.php file and make sure it's writeable (666)
    •  
      CommentAuthorc-unit
    • CommentTimeSep 12th 2006
     # 24
    A PHP/server side solution would be much better. Users with Javascript turned off can still caps lock.
    • CommentAuthorithcy
    • CommentTimeSep 12th 2006
     # 25
    users without javascript are not going to have a good time using vanilla at all. i'm not worried about them.
  8.  # 26
    ah it was at 664. that solved it, thanks ithcy.
    •  
      CommentAuthorc-unit
    • CommentTimeSep 12th 2006
     # 27
    You can do core things without Javascript.
    • CommentAuthorithcy
    • CommentTimeSep 12th 2006
     # 28
    yeah. my point is that it's easier this way and there's no need to avoid javascript since you pretty much need to have it enabled to use vanilla at all.
    • CommentAuthorithcy
    • CommentTimeSep 12th 2006
     # 29
    oh, i see what you're saying - nevermind.
    maybe i'll rewrite it when i'm a little less lazy - this took me all of 15 minutes :)
Add your comments
    Username Password
  • Format comments as