Search Results for 'number of members is wrong'
-
Search Results
-
Topic: Wrong User counting
Hello everyone,
I encountered a weird behaviour on the total number of user :
In my dashboard, I have a total of 698 users. On my “Members” page, the total number indicated is 597. But, if I set the filter from “Active recently” (where i have 597), to “Alphabetical order”, the total number indicated goes up to 698 users.What is happening and how can i have the right number of users ?
Thank you very much
Bobafotz
Topic: Recover member counters
we emptied out some spam memberships from your database, and we need to know what happens next to update the count on the activity page.
The registration on my website is showing the wrong figures as 112904 members the link for that page is activity page. It should be correct and we have also use repair logs but the number is still visible. How to solve the counter or reset it.
Some time ago I updated the buddypress component, and now the member profile pages come out wrong.
The information I earlier had in this pages is listed as a separate column under the cryptic heading “View Base”, while a number of entries have been added on the left hand side “Profile, Groups, Docs”
I want to remove all of this except the personal data fields. How do I do this?
I want to remove “View Base” and “Profile, Groups 3, Docs” in all profiles like this: http://gamephilosophy.org/members/margarita/
Hope someone can give me a tip..
Hi there! I ‘m trying to change the number of members per page. I changed the bp-members-template.php from 20 to 150 and I added <?php if ( bp_has_members ( ‘per_page=150’ ) ) : ?> to the members.loop.php but without succes. What am I doing wrong? Do I have to change another template?
I am trying to show the field/fields that are required, but do not have any data.
The following works when they are not set (during the members first visit to the site)
//Check For Mandatory Profile fields - $has_profile_pic = get_user_meta(bp_loggedin_user_id(), 'has_avatar', true); $has_cph_maxtopay = xprofile_get_field_data('Cost Per Hour'); $has_age_ranges = xprofile_get_field_data('Age Ranges Of Children Able To Sit'); $has_age = xprofile_get_field_data('Age'); $has_suburb = xprofile_get_field_data('Suburb'); $has_mobile = xprofile_get_field_data('Mobile Phone Number'); $has_gender = xprofile_get_field_data('Gender'); $member_type = xprofile_get_field_data('Member Type'); //Check to see if profile items are set //If not get error on screen to display if (empty($member_type)) { $error = $error + 1; $error_text = $error_text .'<li>Member Type</li>'; } else { if (empty($has_cph_maxtopay)) { $error = $error + 1; $error_text = $error_text .'<li>Cost Per Hour/Max To Pay</li>'; } if (empty($has_age_ranges)) { $error = $error + 1; $error_text = $error_text .'<li>Age Ranges Of Children Able To Sit/Age Ranges of Kids</li>'; } if (empty($has_age )) { $error = $error + 1; $error_text = $error_text .'<li>Age</li>'; } if (empty($has_suburb )) { $error = $error + 1; $error_text = $error_text .'<li>Suburb</li>'; } if (empty($has_mobile )) { $error = $error + 1; $error_text = $error_text .'<li>Mobile</li>'; } if (empty($has_gender )) { $error = $error + 1; $error_text = $error_text .'<li>Gender</li>'; }
I know I’m probably using the wrong function, but the xprofile_get_field_data will return the currently saved item for a user. Hence the reason why it works so well on a new user, the fields are emtpy. I want to check on the unsaved data when they click on save as well, so that I can show them what field is in error, and also highlight the field as well, so they can be guided visually to fill it in.
IE They clear their cost per hour value, and I want to tell them it’s empty, and not just the generic Please make sure you fill in all required fields in this profile field group before saving.
Let me know where I am going wrong with this.Hi,
I have a problem.
When I see all the groups, I can see 20 members for a group.
But when I go to the admin page of this group, there is only 2 members (1admin + 1 member) and it’s the right number of members.See : http://screencast-o-matic.com/watch/cbVZ2FQ7dh
Why i have this difference ?
How can I fix it ?pending to your reply.
thanks
regards
LudovicHello everyone,
I’m experiencing some strange behavior of the BuddyPress 2.7.2 Groups.
First of all, the call
$bp->groups->slug
returns the wrong slug. It should return ‘gruppen’ but still returns ‘groups’. The slug of the page was set to ‘gruppen’ and the page has been set as the groups page.Second, the number of members in a group is incorrect. I got a group with 3 members in it, but in the backend (on the groups page) and on the frontend it says that there are 4 members.
Third, after the last update some users complained that they wont see all the groups they’re in. I checked that in the backend, the users are still registered in their correct groups, so the frontend output is messed up.
What could have gone wrong? Is the database damaged?
Hi, I’m new to BP, and I’m running WPMU.
I meet a strange situation.I saw some thread about member count, but there weren’t solutions.My test site shows “All Members 10” in Members page.
This is strange, because there are 7 users in the ‘WP_Signup’ table and 9 users in the ‘WP_Users’ table. I thought BP might pull the number of users from WP-user table, but I’m still curious why it’s 10 not 9.I’m guessing BP has its own cache system. Does anyone have idea?
I added a Post Tab to my Buddypress Navigation Tab Menu which displays the latest Posts and Custom Posts for each user.
Now I want to add the total number of all Posts (standard wordpress posts and CPT posts) but only standard posts get counted. What am I doing wrong?
function bpck_post_profile_setup_nav() { global $bp; $parent_slug = 'post'; $child_slug = 'post_sub'; $post_count = count_user_posts( bp_displayed_user_id(), array('video','discography','post' ) ); bp_core_new_nav_item( array( 'name' => 'My Posts <span>'.$post_count.'</span>', 'slug' => $parent_slug, 'parent_url' => $bp->loggedin_user->domain . $parent_slug.'/', 'screen_function' => 'profile_page_show_screen', 'position' => 40, 'default_subnav_slug' => $child_slug ) ); } function profile_page_show_screen() { add_action( 'bp_template_content', 'profile_post_page_screen_content' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); } function profile_post_page_screen_content() { do_action( my_profile_post); } add_action( 'bp_setup_nav', 'bpck_post_profile_setup_nav' );
What’s even more confusing if I add
function my_custom_userpostcount() { echo '<span>' . count_user_posts( bp_displayed_user_id(), array('video','discography','post' ) ) . ' Posts</span>'; } add_action( 'bp_before_member_header_meta', 'my_custom_userpostcount');
to the user header, the total count number is correct, it counts all post types in the array.
Don’t know what I’m doing wrong.
My member numbers since the recent upgrade are wrong. I have tried the Repair total members count tool and it’s had no effect. I have no caching software installed and I have tried using a different theme.
Any help much appreciated.
Thanks
Topic: Restricting Private Messages
Hi all,
I’ve been trying to use a function to limit or remove the use of private messaging for certain user groups. Im using the latest WP and BP and also pmpro to manage my memberships.
I realise this has been asked before but none of the functions that have been posted in previous threads have worked (however, as a complete novice i may be doing something wrong).
Ideally i would like to limit the number of private messages per week for a certain membership level, but would be happy to just remove the option to pm altogether if limiting isn’t a option.
Thank you in advance for any suggestions or advice you can offer meHello guys,
I have a problem in members directory it counts wrong.
Viewing 1-n from n members shows wrong number .Is there any way to remove this ? (viewing….)
i use buddypress 2.3.5 and wordpress 4.3.1 with kleo theme
thanks a lot
Hi,
I’m new to wordpress/buddypress and I’m having trouble displaying field names.
I have a field named “Age:” and using the following code:bp_member_profile_data( 'field=Age:' );
in the members-loop file, the members age is displayed. I would like to add “Age: ” in front of the number, I searched and found this thread:
https://buddypress.org/support/topic/displaying-profile-field-name-in-member-loop/
but all the suggestions leave me with a blank members page???
If I remove the opening and closing php tags for the bp_member_profile_data section and use<p>Age: <php bp_member_profile_data( 'field=Age:' );?><p>
I get the following under all profiles despite only one having an age value set:
/*** * If you want to show specific profile fields here you can, * but it’ll add an extra query for each member in the loop * (only one regardless of the number of fields you show): * * bp_member_profile_data( ‘field=the field name’ ); */
Age:
the one profile with an age value set isn’t shown.
Can anyone see where I’m going wrong with this?Please i need help, all member count on my website is showing 3 instead of 1. i am the only registered member. i have checked my database to see that i am the only one registered. i have deactivated all plugins and changed my theme to Twenty Fifteen but still showing the wrong number. Please i need help i am going crazy here
wordpress version: 4.3.1–en_GB
buddypress version: 2.4.0I’d like to display the latest Posts, Images and Videos posted by a User in Subtabs of My Contributions tab in the profile of each member. Images and Videos are both custom post types.
I found an example how to set up a Tab with a single subtab. I got this working:
https://buddypress.org/support/topic/creating-a-custom-tab-that-takes-in-the-info-from-wp-recent-posts/
But I’m stuck how to add the custom post types images and videos in seperate sub tabs. These should be displayed as thumbnails. Not sure how to achieve this. I tried to copy the given code for a second sub tab but what happens then that all the latest posts disappear and only the latest images of the current logedin member get displayed in the subtab, not the images of the specfici author. So I must be doing something completely wrong.That’s what I tried:`
function bpfr_get_post() { /* * to get all post, comment the line 'author' */ $myposts = get_posts( array( 'posts_per_page' => 25, // set the number of post to show 'author' => bp_displayed_user_id(), // show only this member post 'post_type' => 'post', 'orderby' => 'post_date', 'order' => 'DESC', 'post_status' => 'publish' )); if( ! empty( $myposts ) ) { foreach($myposts as $post) { setup_postdata( $post ); $page_object = get_post( $post ); /* * uncomment next line to show only a list of titles linked to full post * if you uncomment, you have to comment the 2 echo below */ echo '<a href="' . get_permalink($post->ID) . '">' . get_the_title($post->ID) . '</a><br />'; /* * comment the 2 following echo (or remove them) if you use the above */ // echo '<h3 class="profile_post">'. $page_object->post_title .'</h3>'; // echo $page_object->post_content; } wp_reset_postdata(); } else { echo '<div class="info" id="message">No post to show actually.</div>'; } } add_action ( 'my_profile_posts', 'bpfr_get_post' ); function bpfr_get_image() { $myimages = get_posts( array( 'posts_per_page' => 25, // set the number of post to show 'author' => bp_displayed_user_id(), // show only this member post 'post_type' => 'image', 'orderby' => 'post_date', 'order' => 'DESC', 'post_status' => 'publish' )); if( ! empty( $myimages ) ) { foreach($myimages as $post) { setup_postdata( $post ); $page_object = get_post( $post ); /* * uncomment next line to show only a list of titles linked to full post * if you uncomment, you have to comment the 2 echo below */ echo '<a title="' . get_the_title($post->ID) . '" href="' . get_permalink($post->ID) . '">' . get_the_post_thumbnail($post->ID, 'thumbnail') . '</a>'; } wp_reset_postdata(); } else { echo '<div class="info" id="message">No images to show actually.</div>'; } } add_action ( 'my_profile_image', 'bpfr_get_image' ); function bpfr_post_profile_setup_nav() { global $bp; $parent_slug = 'posts'; $child_slug = 'posts_sub'; $child_slug2 = 'images_sub'; bp_core_new_nav_item( array( 'name' => __( 'My contributions' ), 'slug' => $parent_slug, 'screen_function' => 'bpfr_profile_post_screen', 'position' => 50, 'default_subnav_slug' => $child_slug ) ); //Add subnav item bp_core_new_subnav_item( array( 'name' => __( 'Latest posts' ), 'slug' => $child_slug, 'parent_url' => $bp->loggedin_user->domain . $parent_slug.'/', 'parent_slug' => $parent_slug, 'screen_function' => 'bpfr_profile_post_screen' ) ); //Add subnav item bp_core_new_subnav_item( array( 'name' => __( 'Latest images' ), 'slug' => $child_slug2, 'parent_url' => $bp->loggedin_user->domain . $parent_slug.'/', 'parent_slug' => $parent_slug, 'screen_function' => 'bpfr_profile_image_screen' ) ); } function bpfr_profile_post_screen() { add_action( 'bp_template_content', 'bpfr_profile_post_screen_content' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); } function bpfr_profile_post_screen_content() { do_action( my_profile_post); } function bpfr_profile_image_screen() { add_action( 'bp_template_content', 'bpfr_profile_image_screen_content' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); } function bpfr_profile_image_screen_content() { do_action( my_profile_image); } add_action( 'bp_setup_nav', 'bpfr_post_profile_setup_nav' );
I’m really new to this, so please forgive me if I’m asking help for something that might be obvious for anyone else. I really would appreciate if someone could guide me to a solution. Thanks a lot!
Topic: Wrong Member Count
Hey all,
The “members” tab on my site-wide activity stream is showing the wrong member count and member are not showing up in the members list. It says 22 on BP, but according to my WP dashboard subscribers list I have 28.
I had two new registers in the past hour and neither one will show up in the members list on the front end although they do show up in the backend. The activity stream does show they registered as a member as well. I just did a major design change but I’ve been creating fake accounts and they showed up the member list although I didn’t notice the number glitch until today.
What could be going on that new registers would populate under members two days ago with no changes but not today? I did remove my caching plugin (W3) because it was glitching the HTML on my registration page. But I’m not sure how not having a caching plugin would interfere with how BP runs.
I’ve been digging around the members-functions file but I honestly don’t know where to start. Any pointers. I want to get this fixed asap, as you can imagine.
Hello,
I have had a look at a number of different posts which detail different ways and snippets of code to get buddy press working with themes. The instructions seem to be different for each one, as the theme
tags are different, I assume.I’ve tried to edit the files to make them the same as my page.php in the theme but I can’t work out how to do it.
http://codex.buddypress.org/theme-development/wordpress-to-buddypress-theme/
Can anyone help me please? If I post up the page.php output, would that be sufficient for someone to tell me where I’m going wrong? I’ve seen some really helpful posts from @mercime so I’d be very grateful if you would be able to help.
Thanks in advance,
Rob