Replies
- calu on August 17, 2020 at 9:13 am in reply to: show Xprofile Field Data in The Profile Header, exclude own profile #32499
Hi Brajesh, thanks for adding this simple and elegant solution to the code, it works perfectly!
Sorry for adding the topic twice 😉
Regards
Carsten - calu on August 10, 2020 at 7:29 pm in reply to: [Resolved] Disable Admin Bar for All Users Except for Administrators code not working #32279
Hi Brajesh, thanks again, for your expert advice regarding the other code.
I have pasted your updated code in now, and it is working perfectly!
Thanks again, to both of you!
Regards
Carsten - calu on August 10, 2020 at 7:18 pm in reply to: [Resolved] Disable Admin Bar for All Users Except for Administrators code not working #32275
Hi Ravi, found this snippet which works as well:
add_action('after_setup_theme', 'remove_admin_bar'); function remove_admin_bar() { if (!current_user_can('administrator') && !is_admin()) { show_admin_bar(false); } }
Thanks!
- calu on August 10, 2020 at 6:27 pm in reply to: [Resolved] Disable Admin Bar for All Users Except for Administrators code not working #32267
Hi Ravi, thanks very much for your prompt reply and a code solution.
Unfortunately the code breaks my site, would you please check again for a syntax error?
Thanks!
Carsten
- calu on August 10, 2020 at 10:45 am in reply to: [Resolved] Problem with 'Make a WordPress site Private code' #32242
Hi Brajesh, thanks for the code, it works very well
Regards
Carsten - calu on August 5, 2020 at 10:15 pm in reply to: [Resolved] Problem with 'Make a WordPress site Private code' #32110
My question is, would it be possible to change this code, to make BP pages private, not WP pages in general?
- calu on July 28, 2020 at 8:53 pm in reply to: [Resolved] Recent Visitors shortcode creating issues in Blocks #31995
Hi Brajesh, thanks for the update, I can confirm that the issue is solved.
Regards
Carsten - calu on July 28, 2020 at 5:05 pm in reply to: [Resolved] Recent Visitors shortcode creating issues in Blocks #31982This reply has been marked as private.
- calu on July 28, 2020 at 3:11 pm in reply to: [Resolved] Recent Visitors shortcode creating issues in Blocks #31980
Until then I’m testing the Custom listing of Recent Visitors code snippet, but I’m not getting any output from it. Can you confirm that it’s still supposed to work?
Thanks
/* custom Recent visitor code to list it anywhere for logged in user */ $visitors = visitors_get_recent_visitors(get_current_user_id(), 5);//pass the user id for which we are retriving and how many we want foreach( (array) $visitors as $visitor_id ){ echo bp_core_get_userlink( $visitor_id );//display the name of the //bp_core_get_user_displayname( $visitor_id ); //use it to fetch the user display name //bp_core_get_user_domain( $visitor_id ); //use it to get user profile url //bp_core_fetch_avatar( array('item_id'=> $visitor_id, 'height'=>25, 'width'=> 25)); //fetch user avatar }
- calu on July 28, 2020 at 2:11 pm in reply to: [Resolved] Recent Visitors shortcode creating issues in Blocks #31979This reply has been marked as private.