Forum Replies Created
-
Author
-
internetserviceParticipant
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.
internetserviceParticipantyes, 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?
July 5, 2017 at 13:58 in reply to: how to redirect non-paid member away from buddypress component? #166354internetserviceParticipantbtw I had solved this problem by using this code.
COPY CODEif( !current_user_can( 'manage_options) ){ if( !pmpro_hasMembershipLevel() ){ return; } }
so you can close this ticket.
thanksJuly 4, 2017 at 18:27 in reply to: how to redirect non-paid member away from buddypress component? #166282internetserviceParticipantyes, thank you for your help. actually, I had solved it though by joining in the pmpro forum. and by using this code below.
COPY CODEif ( 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?
-
AuthorPosts