Skip to:
Content
Pages
Categories
Search
Top
Bottom

multiselectbox not working


  • shaisimchi
    Participant

    @shaisimchi

    Hi,

    Ran into an issue which i couldnt find anything on.

    WPMU 2.8.6 BP 1.1.3

    in the registration (or profile edit) I am allowing my users to use a multiselectbox (which looks better than a bunch of check boxes). It seems that only one value (the last one chosen) actually get submitted and registered.

    did anyone run into this and fix it?

    is there a fix/workaround etc?

    Thanks,

    Shai

Viewing 6 replies - 1 through 6 (of 6 total)

  • Brandon Dove
    Member

    @brandondove

    I’m having the same issue with WPMU 2.9.1.1 & BP 1.1.3. I’m looking into a fix. I will let you know if I figure it out.


    Mark
    Participant

    @markschafer

    This was fixed in BP 1.2.3:

    https://trac.buddypress.org/ticket/2173


    Brandon Dove
    Member

    @brandondove

    Well, for those people who can’t/don’t want to update to the new version of BP, here’s the fix.

    Make sure if you have a custom edit profile or registration template that you put brackets at the end of any multiselectbox field name that you’re using.

    So, the following:

    <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" multiple="multiple">

    would become:

    <select name="<?php bp_the_profile_field_input_name() ?>[]" id="<?php bp_the_profile_field_input_name() ?>" multiple="multiple">

    Then, you need to edit lines 400-421 of the BuddyPress core file: /buddypress/bp-xprofile/bp-xprofile-templatetags.php. It starts with case 'selectbox': case 'multiselectbox': and ends with break;

    Replace lines 400-421 with code from here.

    Note: this isn’t a very upgrade friendly way to deal with it, but if you’re stuck with BuddyPress 1.1.3 because of some custom written components, it’s the way to make it work.


    shaisimchi
    Participant

    @shaisimchi

    @brandondove – thank you!!!!!!!!!!!!!

    this one really save me.

    Cheers!


    Brandon Dove
    Member

    @brandondove

    Glad to help.


    acreifi
    Participant

    @acreifi

    i am using BP 1.2.3 and WP 2.9.2 and it is still not possible to save the content of multiselebtbox lists in the profile.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘multiselectbox not working’ is closed to new replies.
Skip to toolbar