-
Pamela replied to the topic How to remove admin from members list in the forum How-to & Troubleshooting 10 years ago
I agree it should do but as you see it doesn’t unless something else later on is amending the exclude
-
Pamela replied to the topic How to remove admin from members list in the forum How-to & Troubleshooting 10 years ago
I already have this bit of code
add_action('bp_ajax_querystring','bpdev_exclude_users', 20, 2 );function bpdev_exclude_users($qs=false,$object=false){
global $count_of_excluded_members;
global $count_of_included_members;
$count_of_excluded_members = 0;if ($object != 'members') {
return $qs;
}$subscribers =…[Read more]
-
Pamela started the topic How to remove admin from members list in the forum How-to & Troubleshooting 10 years ago
How do I remove admin which is the site administrator from http://ibsregister.com/members/ please
I tried
function custom_bp_core_get_users($users, $params) {$users_ids_to_hide = array(1);
if (isset($users['users'])) {
foreach($users['users'] as $user_idx => $user) {
if (in_array($user->ID, $users_ids_to_hide) !== false)…[Read more] -
Pamela started the topic my-events/edit-event link in the forum How-to & Troubleshooting 10 years ago
I want to change the address of the link under my profile for the events for add event
Ie I want to change the link from http://……/members/admin/my-events/edit-event/ to something else
What is the best way to do it?
bp_get_options_nav() appears to be the function that needs altering but I am not sure how
Thanks
-
Pamela replied to the topic Member Total when excluding subscribers in the forum How-to & Troubleshooting 10 years, 3 months ago
OOps it is now working. I had missed out $args = wp_parse_args($qs); when doing the exclude for the subscriber role
-
Pamela replied to the topic Member Total when excluding subscribers in the forum How-to & Troubleshooting 10 years, 3 months ago
I have now added my own to functions.php which shows the correct counts but the links still don’t work and I have no idea why. When you click on them it always come up with page 1
function members_pagination_count() {
echo get_members_pagination_count();
}function get_members_pagination_count() {
global $members_template;
global…[Read more] -
Pamela started the topic Member Total when excluding subscribers in the forum How-to & Troubleshooting 10 years, 3 months ago
I have this code in functions.php to exclude subscribers
add_action('bp_ajax_querystring','bpdev_exclude_users', 20, 2 );
function bpdev_exclude_users($qs=false,$object=false){
global $bp;
global $members_template;
if ($object != 'members') {
return $qs;
}$subscribers = get_users('role=subscriber');
$exclude = "";
foreach…[Read more] -
Pamela replied to the topic listings.php in the forum How-to & Troubleshooting 10 years, 4 months ago
Sorry my First time with BuddyPress. It is the directory plugin – directory/ui-front/buddypress/members/single/directory/listings.php plus a couple of listings in directory/ui-front/general
-
Pamela started the topic listings.php in the forum How-to & Troubleshooting 10 years, 4 months ago
I want to change the layout in members/single/directory/listings.php. How do I go about it? I presume I take a copy of the existing one but where do I put it?
Thanks
-
Pamela started the topic Exclude from blogs and members list in the forum How-to & Troubleshooting 10 years, 4 months ago
How do you exclude anyone with the role Subscribers from the blogs list?
This works in functions.php for the members list
add_action('bp_ajax_querystring','bpdev_exclude_users', 20, 2 );
function bpdev_exclude_users($qs=false,$object=false){
if ($object != 'members') {
return $qs;
}$subscribers =…[Read more]
@infoknutsford-softwarecouk
Active 4 years, 8 months ago