Announcement

Collapse
No announcement yet.

Using checkbox instead of radio as input type to join groups

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using checkbox instead of radio as input type to join groups

    hello,

    on my forum, i want to have a lot of usergroups that people are free to join. as such, i want them to be able to fill out the group membership form (the form located at /profile.php?do=editusergroups) so that it uses checkboxes instead of radio buttons -- thus allowing users to select all the groups they want to join quickly and easily (rather than selecting just one radio button, hitting submit, and then repeating the process indefinitely).

    i edited the HTML for the form code in the modifyusergroups_nonmemberbit template, and that changes the appearance of the form on the front end -- but it does not totally work. if i select multiple checkboxes and then hit submit, only one of the groups i selected will be added to the list of groups i've joined. the other groups will remain the same.

    i am assuming there is another spot where i have to edit and specify that this is a checkbox form and not a radio form, although i'm not sure where that would be. any ideas on how i can solve this problem?

    thanks a lot for your time and consideration.
    A revenue-sharing guitar learning community. Learn with us, and earn with us!

  • #2
    This would require changing the back-end code as well to treat the checkboxes as an array instead of a single variable. You would need to ask for help on this at www.vBulletin.org.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API - Full / Mobile
    Vote for your favorite feature requests and the bugs you want to see fixed.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X