ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

CAPTCHA for Members but not Contributors

July 09, 2007 7:24am

Subscribe [2]
  • #1 / Jul 09, 2007 7:24am

    Robert Barbour

    2 posts

    I can turn CAPTCHAs on and off for Members or visitors when posting comments, but I’d like to be able to require CAPTCHAs for normal Members (group_id: 5) but not Contributors (group_id: 6).

    Is this possible using the normal configuration options? If not, could I write an extention/plugin to do this?

    Similarly I’d like to require CAPTCHAs for registrations off site (by IP, we already have a filter to determine this) but not on site.

    TIA

  • #2 / Jul 09, 2007 10:39am

    PXLated

    1800 posts

    Not sure about the offsite thing but for the other couldn’t you just surround the Captcha code in a conditional so it’s only there for that one group…

    {if member_group == "5"}
    Captch Code
    {/if}

  • #3 / Jul 09, 2007 10:52am

    Robert Barbour

    2 posts

    I have tested this approach and it hides the captcha but captcha is still enabled so the validation of the post fails.

    Can I conditionally disable the captcha requirement from a template?

    {if member_group == "5"}
    {if captcha}
    Submit the word you see below:

    {captcha}


    <input type=“text” name=“captcha” value=”” size=“20” maxlength=“20” style=“width:140px;” ID=“Text5”/>

    {/if}
    {/if}

  • #4 / Jul 09, 2007 11:39am

    Lisa Wess

    20502 posts

    You are right that it is based on logged in or logged out, and not member group.  You could possibly change this via extension, but one of our developers would have to address that.  A feature request to have this option per member-group would be ideal.

    For the registration, the CAPTCHA is an all or nothing, again, it might be changable via extension.  You could put in a feature request for that but it’s a bit more specialized so a custom solution is probably your best bet.

  • #5 / Jul 09, 2007 11:44am

    PXLated

    1800 posts

    CAPTCHA is an all or nothing, again

    Ahhhhh. Don’t blog so don’t use captchas so was just taking a stab in the dark 😉

  • #6 / Jul 09, 2007 12:13pm

    Lisa Wess

    20502 posts

    Randy, they could be useful for non-blogs.  Say, for adding comments on a product in a store… 😉

  • #7 / Jul 09, 2007 12:27pm

    PXLated

    1800 posts

    Ya, I’m aware of that, just haven’t used them since I stopped blogging a couple years ago. Will probably be using them again at some point I’m sure though.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases