-
Author
-
December 10, 2017 at 23:08 #182586
alexhorie
ParticipantHello
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_SQ
ModeratorHi,
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 #182590alexhorie
Participantshould be around 6000 thousands
i used this
return $number+1000;
December 10, 2017 at 23:39 #182591Kieran_SQ
ModeratorHi,
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 #182694Radu
ModeratorHi,
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 #182726alexhorie
ParticipantHello, 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 #182785Radu
ModeratorHi
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 #182835alexhorie
Participanti 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 #182913Radu
ModeratorHi,
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 #182925Radu
ModeratorAatually 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 #182964alexhorie
Participanti 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 #183002Radu
ModeratorHi,
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 #183055alexhorie
Participantcan you delete my last reply please! wrong ticket
December 15, 2017 at 15:23 #183140Radu
ModeratorGreat,
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.