Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress – xprofile field visibility


  • agtd
    Participant

    @agtd

    Is the buddypress profile visibility toggle CSS only? [if I click on the change button the the radio buttons appear. When I click on close the options collapse. I am having an issues with my currrent theme and I am trying to determine the isse]

    Thanks
    Tom

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

  • Tammie Lister
    Moderator

    @karmatosed

    It switches between show / hide using CSS yes but scripting assigns that class. I doubt that would be causing an issue though. Could you provide a link to see your theme and the issue?


    agtd
    Participant

    @agtd

    Sorry for the late reply. I did not get a notification. [anycase] here is a link to my site:
    uat.petpalidtags.com

    I have raised a support ticket with the theme developer but I think it will be a while before I see anything. The theme is supposed to support Buddypress 1.6 but I had to copy the following CSS section from the defualt.css file.
    [/*————————————————————–
    6.9 – Extended Profiles
    ————————————————————–*/

    This does display the “change” link but the section does not expand i.e. display:block.

    Please have a look as I would love to get this fixed as I cannot deploy this theme.

    Thanks

    Tom


    agtd
    Participant

    @agtd

    I got it to work. So here is the solution for anyone that might need to do this in future.

    CSS: Add the above css to your theme css
    JS: Add the following to yout theme js file. [this extract was take from the buddypress global.js file]

    /** Profile Visibility Settings *********************************/
    var jq = jQuery;
    jq(‘.field-visibility-settings’).hide();
    jq(‘.visibility-toggle-link’).on( ‘click’, function() {
    var toggle_div = jq(this).parent();

    jq(toggle_div).fadeOut( 600, function(){
    jq(toggle_div).siblings(‘.field-visibility-settings’).slideDown(400);
    });

    return false;
    } );

    jq(‘.field-visibility-settings-close’).on( ‘click’, function() {
    var settings_div = jq(this).parent();

    jq(settings_div).slideUp( 400, function(){
    jq(settings_div).siblings(‘.field-visibility-settings-toggle’).fadeIn(800);
    });

    return false;
    } );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Buddypress – xprofile field visibility’ is closed to new replies.
Skip to toolbar