BuddyDev

Search

Replies

  • Participant
    Level: Enlightened
    Posts: 47
    blade on in reply to: [Resolved] member type on registration #2788

    Super cool master!
    I slightly modded “$new_html” in “class-member-type-field.php” for theming purposes.

    
    $new_html = sprintf( '<input %1$s type="radio" name="%2$s" id="%3$s" value="%4$s" class="radio_item"><label for="%3$s" class="label_item" style="display: inline-block;"><span style="display:block; margin-top: 30px;">%5$s</span></label>',
                    $selected,
                    esc_attr( "field_{$this->field_obj->id}" ),
                    esc_attr( "option_{$member_type}" ),
                    esc_attr( stripslashes( $member_type ) ),
                    esc_html( stripslashes( $label ) ),
                    '../wp-content/themes/'.get_template().'-child'
                );
    
    

    and a little css:

    
    .radio_item{
    display: none !important;
    }
    
    .label_item {
    opacity: 0.2;
    }
    
    .radio_item:checked + label {
    opacity: 1;
    }
    

    It looks awesome master!! I would like to send you a picture or a video of my self-made multi-step-registration if you want.

    I mark this as resolved 🙂
    (would be awesome to make it visible in the profile)

    Cheers
    Blade

    • This reply was modified 6 years, 11 months ago by blade.
    • This reply was modified 6 years, 11 months ago by blade.
    • This reply was modified 6 years, 11 months ago by blade.
  • Participant
    Level: Enlightened
    Posts: 47
    blade on in reply to: [Resolved] member type on registration #2786

    Oh my God Brajesh!! It works almost perfect!!!! Thank you sooo much master!!

    Radio-registration works perfectly, only one small visual “bug”:
    I think we need to add the new name/value-pair to the profile-loop?
    (i hope this is not a total noob-non-sense idea)

    Membertype does get assigned, but view profile doesnt show it yet.
    Edit-profile also doesnt show it, but that is ok, since I dont want to let the user change its value.

    [Im so sorry, that my english is soo underaverage. I hope it is understandable]

  • Participant
    Level: Enlightened
    Posts: 47
    blade on in reply to: [Resolved] member type on registration #2779

    Wow, Brajesh himself answered me. I’m feeling very honored.

    Thank you very much master!!

  • Participant
    Level: Enlightened
    Posts: 47
    blade on in reply to: [Resolved] member type on registration #2764

    Is it possible to change the dropdown-list of the membertype-selection in the registration-process to radio-buttons?

    Example:
    [currenty]:

    —-
    membertype1
    membertype2

    [my wish]:

    °membertype1
    °membertype2

    Removing the “—-” and converting <option …> to <input type=”radio”…> would allow me to theme the radio-buttons with images, thus allowing a nice (maybe multi-stepped) registration process where a user just have to click the left or right image – e.g. Male-Female or student-teacher

    Thank you soo much

    Gratefully
    Blade