WordPress.org

Ready to get started?Download WordPress

Forums

Cimy User Extra Fields
[resolved] Checkboxes checked by default (12 posts)

  1. Matt Jensen
    Member
    Posted 3 years ago #

    Hi there
    Great plugin, thanks very much.
    Just wondering if there's a way to have a checkbox checked by default on the registration/profile page?
    I tried setting the value to 'YES' but that didn't seem to work.
    Thanks again
    Cheers
    Matt

    http://wordpress.org/extend/plugins/cimy-user-extra-fields/

  2. Marco Cimmino
    Member
    Plugin Author

    Posted 3 years ago #

    Indeed this is disabled in the code, but I forgot why :)
    I'll check

  3. Marco Cimmino
    Member
    Plugin Author

    Posted 3 years ago #

    I enabled it and seems working, you can try editing cimy_user_extra_fields.php at line 437 and add in the list:
    "checkbox"

  4. Matt Jensen
    Member
    Posted 3 years ago #

    Hi Cimmo

    Works, thanks very much!

    As a side note, I tried it for "dropdown-multi" but it didn't work.

    Sorry for the delay responding, I've been experiencing another issue where for some reason I've been seeing CUEF validation messages on the 'Dashboard > Users > Add New' page, even though that page doesn't even show the CEUF fields...! I'm wondering if it's possibly a WordPress 3.1 issue as I've only just started seeing it. It may be me too though!

    Thanks again!
    Cheers
    Matt

  5. Marco Cimmino
    Member
    Plugin Author

    Posted 3 years ago #

    Indeed in the same line 437 you can also add:
    "dropdown" and "dropdown-multi"
    divided by commas and should work out of the box.

    You need to specify the exact items you want to preselect for example:
    label: my label/item1,item2,item3,item4
    value: item2,item4

    Regarding the issue 'Dashboard > Users > Add New' yes WP 3.1 changed something and broke my previous fix for this, shit I hate it.

    So open cimy_uef_register.php line 279 and change with this one:
    if (($_POST["action"] == "adduser") || ($_POST["action"] == "createuser"))

    should fix the problem, let me know for everything :)

  6. Marco Cimmino
    Member
    Plugin Author

    Posted 3 years ago #

    I fixed all bugs mentioned by you in the development version, you might want to check it out:
    http://downloads.wordpress.org/plugin/cimy-user-extra-fields.zip

    let me know, thanks
    Marco

  7. Matt Jensen
    Member
    Posted 3 years ago #

    All the code changes look to work for me - nice one!! Must be frustrating!
    Thanks a lot!
    Cheers
    Matt

  8. Matt Jensen
    Member
    Posted 3 years ago #

    (I'll try the download next).

  9. Matt Jensen
    Member
    Posted 3 years ago #

    Sweet - download looks all good for these issues!
    Legend!
    Thanks
    Matt

  10. ale152
    Member
    Posted 2 years ago #

    I'm using wordpress 3.1.4 and I can't add extra fields from "Dashboard > Users > Add New" :(
    What can I do?

  11. Marco Cimmino
    Member
    Plugin Author

    Posted 2 years ago #

    I'm using wordpress 3.1.4 and I can't add extra fields from "Dashboard > Users > Add New" :(
    What can I do?

    Extra fields from add new user in backend are not supported, add the user from:
    1. Frontend
    2. Edit/Modify an user
    3. Users->Users Extended page.

    Plus you are totally off topic here.

  12. zeckenklauber
    Member
    Posted 2 years ago #

    Hi Marco,

    i am having kind of the same issue. I want to check a checkbox field by default.
    BUT WITH URL!
    The documentation says values can be passed as URL parameters:

    You can use URL (only for registration page), example:
    http://www.exampleofmywebsite.it/wordpress29/wp-login.php?action=register&FIELD_01=test1&FIELD_02=test2

    FIELD_01 and FIELD_02 are two existing fields that will get default assignment with string “test1″ and “test2″.

    I tried it with my checkbox, but it doesnt work. When i assign a value (e.g. yes) in the field definition, it works, the checkbox is checked.
    But i REALLY need the URL feature, as it gives me the only opportunity to have kind of two different registration forms. I only need the default checked checkbox in a special case!

    Thanks for your great plugin and help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic