-
Author
-
October 16, 2013 at 06:16 #4480joninhasParticipant
Hi
can give me any help on changing manually the number of members, women, man, online on home page?And put the search and login button to open the register popu up
Thanks
October 17, 2013 at 00:02 #4520SQadminKeymasterHi, You need to add this code to sweetdate-child/functions.php
For the total members:COPY CODEadd_filter( 'bp_get_total_member_count', 'kleo_my_total_members' ); function kleo_my_total_members($number) { return 1000; }
For online users:
COPY CODEadd_filter( 'kleo_online_users_count', 'kleo_my_online_users'); function kleo_my_online_users($number) { return $number+100; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 17, 2013 at 00:58 #4538joninhasParticipantthanks it worked 🙂
how can i put diferent numbers for total online members, womens online and man online?i`d like also to do some modifications:
When user click on search button on home page he get the pop up registation, and also when he click on members foto on main page….October 18, 2013 at 11:41 #4586SQadminKeymasterHi,
I did some changes to a theme file to allow this, so please change the contents of sweetdate/custom_buddypress/bp-functions.php with https://archived.seventhqueen.com/files/bp-functions.txtthen this is the code you need to add to sweetdate-child/functions.php and customize:
COPY CODE//manual number online members add_filter( 'kleo_online_users_count', 'kleo_my_online_users', 10, 2); function kleo_my_online_users($number, $value) { switch ($value) { //ALL MEMBERS ONLINE case FALSE: return '1 MILION'; break; case "Woman": return $number+50000; break; case "Man": return $number+1000; break; default: return $number; break; } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 18, 2013 at 21:40 #4626joninhasParticipantSimply wonderfull 🙂
the best support i have ever seen….October 30, 2013 at 19:28 #5426willianlima83ParticipantHi
I used this code to show a fake total members not to show a fixed number but to add +345000 members for the total true number , and the code is:add_filter( ‘bp_get_total_member_count’, ‘kleo_my_total_members’ );
function kleo_my_total_members($number) {
return $number+345000;The problem is: When the true member number is more than 1.000 it shows the number with a dot together like 345001.08.
I have 1.081 true members, then adding 345000 false the correct value must be 346081 members.
Can you help me to take off the dot or put the dot in the correct place?October 30, 2013 at 20:19 #5438SQadminKeymasterThy adding this before the return line:
str_replace(“.”,””,$number);Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 30, 2013 at 21:27 #5444willianlima83ParticipantWhen I use this code the site dosnt works…
add_filter( ‘bp_get_total_member_count’, ‘kleo_my_total_members’ );
function kleo_my_total_members($number) {
return $number+345000;
str_replace(“.”,””,$number);October 30, 2013 at 22:45 #5457SQadminKeymasterI said before the return line 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 31, 2013 at 22:26 #5508SQadminKeymasterOh sorry 🙂
is:COPY CODE$number = str_replace(".","",$number);
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 5, 2013 at 18:47 #5987willianlima83ParticipantHey.. thank you very much!
It’s working very well with this code..add_filter( ‘bp_get_total_member_count’, ‘kleo_my_total_members’ );
function kleo_my_total_members($number) {
$number = str_replace(“.”,””,$number);
return $number+100000;November 7, 2013 at 17:01 #6191moroccanishParticipantwhere di i add this code in the page at the top or just randomly paste it in???
November 7, 2013 at 18:17 #6195moroccanishParticipantI’ve tried to post that code in now i can’t get in to my website help
Parse error: syntax error, unexpected ‘”‘ in /home2/atinibou/public_html/wp-content/themes/sweetdate/functions.php on line 1293
November 7, 2013 at 18:58 #6196moroccanishParticipantresolved edited code through host and got site up again phew
November 7, 2013 at 23:14 #6211moroccanishParticipantcan you please tell me where i add the code in sweetdate-child/functions.php its a long script and i not sure where to place the code ,I’m a newby a added the code and managed to screw up the site and then had to edit it in the host files
November 8, 2013 at 02:40 #6251SQadminKeymasterYou code goes to sweetdate-child/functions.php at the end just before the “?>” line
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 8, 2013 at 20:19 #6282SQadminKeymasterI guess it works? 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 10, 2013 at 02:38 #6364DouweboschmaParticipantIt is more a “marketing” thing, but I think people will hook off once they come in. Being disappointed with so little activity, many fake profiles probably…. My site is growing slowly but progressively (I started with 1 a day two weeks ago and are now at 8 members a day about) by hard networking and about being honest. People just are allergic to being fooled like you might be yourself. It may be tempting but I believe in the reward of patience and hard work. How to kick networking in gear? I use different ways but get the best results from Facebook groups. Find your target market. Be nice and informative. Blog a lot. Tweet a lot and don’t be overly pushy!
Just my two cents here… 😉
November 10, 2013 at 14:10 #6378willianlima83ParticipantMaybe its not goog for Date sites.. I think if the site is not a date site, new users will be not sad to see a little activity when create his account… In my site it works well…
November 10, 2013 at 22:18 #6387moroccanishParticipantsounds interesting whats your site, are you using yeast seo
April 11, 2015 at 07:03 #53996tyfarris1Participantcan somebody help me with this. i add the code…it doesnt work..it changes the men,woman and online…but i need to change the total number of users…thanks
April 23, 2015 at 18:02 #55909AbeKeymasterin this page there are all codes to hack into those number.
Here is the exact one for the total numbers
https://archived.seventhqueen.com/forums/topic/manual-number-of-members-change/#post-4520Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.October 31, 2016 at 15:08 #142208sonicht2Participanthello, how changais the name on the word prenom not thank you
sonicht2
October 31, 2016 at 15:50 #142216AbeKeymasterHi, this is a very old topi. please open a new ticket and describe your issue.
https://archived.seventhqueen.com/sweetdate/Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The topic ‘Manual number of members change’ is closed to new replies.