Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • in reply to: how to modifed search result display page? #166433
     internetservice
    Participant

    so anyway I had solved the år problem by adding this CSS code below.

    COPY CODE
    .date:after {
        content: " år";
    }

    quite good right? 🙂

    so now my next question is how to add city info below the age? what’s the field name for the city to be displayed? after I had the year info then I’d like to add city info also.

    in reply to: how to modifed search result display page? #166395
     internetservice
    Participant

    yes, I did add this code in functions.php

    COPY CODE
    //members page fields 
    add_action('after_setup_theme','kleo_my_member_data');
    function kleo_my_member_data() 
    {
    global $kleo_config;
    //this is the details field, right now it take the "About me" field content 
    $kleo_config['bp_members_details_field'] = 'About me';
    //this display the fields under the name, eq: 36 / Woman / Divorced / Berlin. Modify with the names of the fields you want to appear there
    $kleo_config['bp_members_loop_meta'] = array(
    'år',
    'I am a',
    'Marital status',
    'City'
    );
    
    }

    but the members account page info still not changing. the problem is that the word that I am putting is år. and that Danish letter of å can’t be parsed in PHP. but I think I should put år in HTML page as PHP can’t parse that unique letter in danish. what is the HTML file for https://www.dnsj.dk/medlemmer/ though? any idea?

     internetservice
    Participant

    btw I had solved this problem by using this code.

    COPY CODE
    if( !current_user_can( 'manage_options) ){
        if( !pmpro_hasMembershipLevel() ){
            return;
        }
    }

    so you can close this ticket.
    thanks

     internetservice
    Participant

    yes, thank you for your help. actually, I had solved it though by joining in the pmpro forum. and by using this code below.

    COPY CODE
    if ( pmpro_hasMembershipLevel() ) { //if the user has a membership level or an admin, show the 'add friend button'.
            return $button;
        }

    but the code above will hide the button for free users and administrator. so paying members will be able to see the button but it seems that administrator will be imposed the same restrictions as a free user in which the button won’t show up.

    so my question is what is the code function that will allow administrator to have the same rights as those paying membership?

    any idea?

Viewing 4 posts - 1 through 4 (of 4 total)

Log in with your credentials

Forgot your details?