This topic has 27 replies, 8 voices, and was last updated 8 years by Abe.

  • Author
  • #4480
     joninhas
    Participant

    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

    #4520
     SQadmin
    Keymaster

    Hi, You need to add this code to sweetdate-child/functions.php
    For the total members:

    COPY CODE
    
    add_filter( 'bp_get_total_member_count', 'kleo_my_total_members' );
    function kleo_my_total_members($number) {
    	return 1000;
    }
    

    For online users:

    COPY CODE
    
    add_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 solution
    #4538
     joninhas
    Participant

    thanks 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….

    #4580
     joninhas
    Participant

    please any help …

    #4586
     SQadmin
    Keymaster

    Hi,
    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.txt

    then 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 solution
    #4626
     joninhas
    Participant

    Simply wonderfull 🙂
    the best support i have ever seen….

    #5426
     willianlima83
    Participant

    Hi
    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?

    #5438
     SQadmin
    Keymaster

    Thy 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 solution
    #5444
     willianlima83
    Participant

    When 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);

    #5457
     SQadmin
    Keymaster

    I 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 solution
    #5490
     willianlima83
    Participant
    This reply has been set as private.
    #5508
     SQadmin
    Keymaster

    Oh 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 solution
    #5987
     willianlima83
    Participant

    Hey.. 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;

    #6191
     moroccanish
    Participant

    where di i add this code in the page at the top or just randomly paste it in???

    #6195
     moroccanish
    Participant

    I’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

    #6196
     moroccanish
    Participant

    resolved edited code through host and got site up again phew

    #6211
     moroccanish
    Participant

    can 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

    #6251
     SQadmin
    Keymaster

    You 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 solution
    #6258
     moroccanish
    Participant

    legend ,if you build it they will come

    #6282
     SQadmin
    Keymaster

    I guess it works? 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #6364
     Douweboschma
    Participant

    It 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… 😉

    #6378
     willianlima83
    Participant

    Maybe 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…

    #6387
     moroccanish
    Participant

    sounds interesting whats your site, are you using yeast seo

    #53996
     tyfarris1
    Participant

    can 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

    #55909
     Abe
    Keymaster

    in 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-4520

    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.

    #141945
     sonicht2
    Participant
    This reply has been set as private.
    #142208
     sonicht2
    Participant

    hello, how changais the name on the word prenom not thank you

    sonicht2

    #142216
     Abe
    Keymaster

    Hi, 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.

Viewing 28 posts - 1 through 28 (of 28 total)

The topic ‘Manual number of members change’ is closed to new replies.

Log in with your credentials

Forgot your details?