-
Author
-
December 10, 2017 at 23:08 #182586alexhorieParticipant
Hello
the online users are working, but the total is not working for me, i want add more 1000 users so i changed the value for 1000, but nothing changes.
https://trans4date.com/test-home/
add_filter( ‘bp_get_total_member_count’, ‘kleo_my_total_members’ );
function kleo_my_total_members($number) {
$number = str_replace(“.”,””,$number);
return $number+1000;
}December 10, 2017 at 23:13 #182587Kieran_SQModeratorHi,
When I check that page I see the numbers as 5156 (total) and 64 (online). What numbers should I be seeing?
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
Attachments:
You must be logged in to view attached files.December 10, 2017 at 23:22 #182590alexhorieParticipantshould be around 6000 thousands
i used this
return $number+1000;
December 10, 2017 at 23:39 #182591Kieran_SQModeratorHi,
As far as I can tell that should be working for you, I am going to ask one of our developers to look into this for you. They’ll be in touch as soon as they, Monday to Friday, East Europe Time.
Thank you for your patience,
Kieran.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
December 11, 2017 at 18:14 #182694RaduModeratorHi,
If the code take action in the widget just increase the $number+1000;
You can try to repair buddypress users db from wp-admin -> tools -> buddypress -> check al and then repair.
If it’s the same just increase the number from the return… to your desired value.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 11, 2017 at 22:39 #182726alexhorieParticipantHello, i did the the repair but didnt change the total numbers
i tried this in the functions.php
add_filter( ‘bp_get_total_member_count’, ‘kleo_my_total_members’ );
function kleo_my_total_members($number) {
$number = str_replace(“.”,””,$number);
return $number+4000;
}December 12, 2017 at 15:55 #182785RaduModeratorHi
I see maybe you have created members from wp-admin -> users -> add new and those accounts never logged in , also maybe some members was registered by no login never.
That’s i’ve told you to increase the return $number+1500; or how many you need.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 12, 2017 at 21:10 #182835alexhorieParticipanti have created some users as test, but i think i have logged with them, all the rest users are real
my return is like that, i added 4000, suppose to be 9000+ right?return $number+4000;
}December 13, 2017 at 16:57 #182913RaduModeratorHi,
Try to write echo instead of return
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 13, 2017 at 18:11 #182925RaduModeratorAatually try this code instead
code: https://pastebin.com/raw/RcnTLyGs
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 13, 2017 at 23:31 #182964alexhorieParticipanti tried both, also i did the repair in the tools>buddpress
but the numbers from total users still the same….December 14, 2017 at 15:34 #183002RaduModeratorHi,
Replace the code with this one : https://pastebin.com/raw/7bgHaxUj
It works
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 14, 2017 at 21:41 #183055alexhorieParticipantcan you delete my last reply please! wrong ticket
December 15, 2017 at 15:23 #183140RaduModeratorGreat,
Done
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.