This topic has 18 replies, 4 voices, and was last updated 6 years by Laura.

  • Author
  • #87777
     trevorali
    Participant

    Hi,

     

    How do I make the numbers look mre impressive in the kleo_status_icon areas? Right now im the only one signed up but need to add some numbers for things to look more impressive

    Attachments:
    You must be logged in to view attached files.
    #88232
     Laura
    Moderator

    Hello, do you mean fake members number? https://archived.seventhqueen.com/forums/topic/manual-number-of-members-change

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #88253
     trevorali
    Participant

    Yup! That link doesn’t seem to work…

    Please advise

    #88382
     Laura
    Moderator

    Hello, it does work but well i will paste here the codes 🙂 they go to functions.php of child theme
    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;
    }
    
    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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #147661
     Artem
    Participant

    It doesn’t work for me 🙁 Please help me.

    Attachments:
    You must be logged in to view attached files.
    #147717
     Artem
    Participant

    well i fixed it. but member in total doesn’t work.

    When I update my file with that code then I always get this message:

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/p3pnexwpnas16_data02/19/3659219/html/wp-content/themes/sweetdate-child/functions.php:45) in /home/content/p3pnexwpnas16_data02/19/3659219/html/wp-includes/pluggable.php on line 1179

    Attachments:
    You must be logged in to view attached files.
    #147729
     Artem
    Participant

    Somehow those codes crash my website.

    #147925
     Laura
    Moderator

    Hello, can you share access so i can check it out? 🙂

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #148242
     Artem
    Participant
    This reply has been set as private.
    #148438
     Laura
    Moderator

    Invalid username, please let me know 🙂

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #148609
     Artem
    Participant
    This reply has been set as private.
    #148941
     Laura
    Moderator

    Hello, please i would prefer if you can post it here asa private reply, let me know 🙂

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #148944
     Artem
    Participant
    This reply has been set as private.
    #148945
     Artem
    Participant
    This reply has been set as private.
    #149209
     Laura
    Moderator

    Hello, you cant add admin users? Your hosting doesnt allow that?
    Well the best way to help you is to check the issue myself, but i can try to give you a step by step guide if you prefer

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #149288
     Artem
    Participant

    Well then I’d prefer the step to step guide.

    #149538
     Laura
    Moderator

    Hello, ok 🙂
    1- Go to your child theme functions.php
    add

    COPY CODE
    
    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 $number+6;
                break;
     
            case "Woman":
                return $number+8;
                break;
            
            case "Man":
                return $number+6;
                break;
            
            
            default:
                return $number;
                break;
        }
        
    }
    
    add_filter( 'bp_get_total_member_count', 'kleo_my_total_members' );
    function kleo_my_total_members($number) {
    $number = str_replace(".","",$number);
    return $number+14;
    }
    

    2- If step 1 does not resolve it, continue to step 2
    Go to Pages > Home > Edit
    Find the members online shortcodes, replace it with

    COPY CODE
    
    [kleo_status_icon type="total" subtitle="Members in Total"] [kleo_status_icon type="members_online" subtitle="Members Online"] [kleo_status_icon type="custom" field="I am a" value="Woman" online="yes" subtitle="Women Online" image="wp-content/themes/sweetdate/assets/images/icons/steps/status_03.png"] [kleo_status_icon type="custom" field="I am a" value="Man" subtitle="Men Online" online="yes" image="wp-content/themes/sweetdate/assets/images/icons/steps/status_04.png"]
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #182314
     alexhorie
    Participant

    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;
    }

    #182515
     Laura
    Moderator

    Hello, please create a new topic about this issue 🙂

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

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

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?