This topic has 22 replies, 6 voices, and was last updated 10 years by willianlima83.

  • Author
  • #662
     enricoeur
    Participant

    In my website i changed the name of users type

    Woman = Donna
    Man = Uomo

    After this change, the front page counter that let see Woman and Man online doesnt work anymore. I changed so the code inside the buddypress custom function file:


    switch ($type) {
    case 'total':
    $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_01.png' : $image;
    $number = bp_get_total_member_count();
    break;
    case 'members_online':
    $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_02.png' : $image;
    $number = bp_get_online_users();
    break;
    case 'women_online':
    $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_03.png' : $image;
    $number = bp_get_online_users("Donna");
    break;
    case 'men_online':
    $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_04.png' : $image;
    $number = bp_get_online_users("Uomo");
    break;

    default:
    if ($type == 'Uomo') {
    $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_04.png' : $image;
    } elseif($type == 'Donna') {
    $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_03.png' : $image;
    } else {
    $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_01.png' : $image;
    }
    $number = bp_get_online_users($type);
    break;
    }

    But nothing the counter continue to not work. How to solve ?

    Thanks

    #664
     SQadmin
    Keymaster

    You should just the the Sex fields under Sweetdate -> Buddypress and after that change the shortcodes in the Homepage like this:

    COPY CODE
    
    [kleo_status_icon type="Uomo" subtitle="Men online"]
    

    Also do not change main theme files, activate the sweetdate-child theme

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

    I’ve translated Men and Women online fields to spanish but it doesn’t appear on homepage counter online users…

    I’m using the field which I use for Sex field too, so, I don’t know why it doesnt show me…

    I hope you can help.

    Thanks,

    Angel

    #3743
     willianlima83
    Participant
    This reply has been set as private.
    #3778
     SQadmin
    Keymaster

    The problem is with the image because it is higher that all others. Make all icons the same dimension.

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

    All images has the same sixe, 213×149 px, the format is .PNG with transparent background..
    The problem is not the size.

    Any sugestion?

    #3829
     willianlima83
    Participant

    I changed the image size for all images to 149×149 px, the problem is the same.. 🙁

    #3861
     SQadmin
    Keymaster

    I see you added those in a span .. that shouldn’t be there.
    Try editing in the Text mode instead of visual

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

    I edited the code in the Text mode, the ”span” is not there, but the problem is the same.. lolol sorry

    #3898
     SQadmin
    Keymaster

    You added the code wrong. You have column one and inside you have added more column without adding them in a row
    See this:
    [kleo_one]

    [kleo_status_icon type=”total” image=”http://str8act.com/wp-content/uploads/2013/09/Total-Membros.png” subtitle=”Total de Membros”] [kleo_status_icon type=”members_online” image=”http://str8act.com/wp-content/uploads/2013/06/Membros-online.png” subtitle=”Membros online”]
    [/kleo_one]
    [kleo_row]
    [kleo_status_icon type=”Mulher” image=”http://str8act.com/wp-content/uploads/2013/06/Mulheres-online.png” subtitle=”Mulheres online”] [kleo_status_icon type=”Homem” image=”http://str8act.com/wp-content/uploads/2013/06/Homens-online.png” subtitle=”Homens online”] [kleo_status_icon type=”Casal” image=”http://str8act.com/wp-content/uploads/2013/10/Casais-online.png” subtitle=”Casais online”] [kleo_status_icon type=”Amigo Secreto” image=”http://str8act.com/wp-content/uploads/2013/10/Amigo-Secreto-online.png” subtitle=”Amigos Secretos online”]
    [/kleo_row]

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

    Ok.. thank you!!!
    It’s is working well now..

    #7721
     agir
    Participant

    I did your instruction, it does not always work (http://reseau-benevolat.org

    please help ?

    #7752
     SQadmin
    Keymaster

    Hi, Please paste the code since we can’t guess where you made the mistake.
    Cheers

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

    [kleo_status_icon type=”total” subtitle=”Membres total”] [kleo_status_icon type=”members_online” subtitle=”Membres en ligne”] [kleo_status_icon type=”associations” subtitle=”women_online” image=”http://reseau-benevolat.org/wp-content/uploads/2013/12/Associations.png” subtitle=”Associations”] [kleo_status_icon type=”benevoles” subtitle=”benevoles_online” image=”http://reseau-benevolat.org/wp-content/uploads/2013/12/benevoles.png” subtitle=”Bénévoles”] [/kleo_one]

    [/kleo_call_to_action][/kleo_section]

    #7754
     SQadmin
    Keymaster

    System won’t ever know to get the users if your profile value is: “Une association” and you added it like “associations” and “benevoles” with “Bénévole”

    I think you understand where is the problem and is not with us

    Correct example:
    [kleo_status_icon type=”Une association” image=”http://reseau-benevolat.org/wp-content/uploads/2013/12/Associations.png” subtitle=”Associations”]

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

     I made the change.

    Nothing appears

    [kleo_status_icon type=”total” subtitle=”Membres total”] [kleo_status_icon type=”members_online” subtitle=”Membres en ligne”] [kleo_status_icon type=”D’associations” subtitle=”women_online” image=”http://reseau-benevolat.org/wp-content/uploads/2013/12/Associations.png” subtitle=”Associations”] [kleo_status_icon type=”Bénévoles” subtitle=”benevoles_online” image=”http://reseau-benevolat.org/wp-content/uploads/2013/12/benevoles.png” subtitle=”Bénévoles”] [/kleo_one]

    #7760
     agir
    Participant

    in the first configuration of the form, I remove the sex field (origin)

    coment I do?

    #7831
     SQadmin
    Keymaster

    @ceun You still aren’t adding them right. I think I was pretty clear with the instructions and also gave an example but you haven’t followed it.

    Correct example:
    [kleo_status_icon type=”Une association” image=”http://reseau-benevolat.org/wp-content/uploads/2013/12/Associations.png” subtitle=”Associations”]

    where “Une association” from type=”Une association” should be the value of your sex profile field set in WP admin – Users – Profile fields. And it should be the exact value if you want to count the users withe those profile value.

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

    @sqadmin :

    Excuse me if I do not understand.
    No need to be aggressive!
    this is the last time I buy a theme on ThemeForest.
    You know take the money, but for the rest, it’s a different story.

    #7834
     SQadmin
    Keymaster

    @ceun We are just trying to help, not being aggressive. I really don’t know what upset you when we are doing our best to help everyone.
    Responses don’t come right away since there is a queue as you imagine.
    haven’t we responded all the times to your questions? It passed weeks and not responded?
    Please revise your behaviour.

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

    @ceun
    I’m a guy who not understand about configurations, I don’t speak English very well and I buy many themes on ThemeForest, and I can say you:
    The sweetdate suport is the best suport I see on ThemeForest.
    Be patient and try to configure again… You can do that.. 🙂

    #8004
     Abe
    Keymaster

    Thanks @willianlima83 for appreciating us 😉

    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.

    #8065
     willianlima83
    Participant

    I just sad the true, this support is fantastic.. Goog Job!!!

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

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?