This topic has 6 replies, 3 voices, and was last updated 8 years by Radu.

  • Author
  • #158473
     wendellcmc
    Participant

    Hello,

    In our project we need to display for Men only Women and for Women only Men users. If there is still some kind of configuration for this functionality, I would be able to tell me which files work with the results display and which is responsible for creating the “SQLs”, so we try to do internally.

    Thank you.

    #158492
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    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 🙂

    #158818
     Radu
    Moderator

    Hi,

    For the moment we don’t have any plug and play snippet to achieve that…but in past, this snippet worked but at the moment it works but not as it should, see this ticket: https://archived.seventhqueen.com/forums/topic/restrict-looking-for-the-opposite

    You can start with that and improve it and adapt it for your needs.

    Cheers
    R

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

    Sure, it would then be possible to tell me what file I find the SQLs and also the search form, so I can make the changes directly to them.

    Thank you.

    #159244
     Radu
    Moderator

    Hi,

    Hi,

    For the search form the responsible files are located here :

    /wp-content/themes/sweetdate/page-parts/home-register-form.php
    /wp-content/themes/sweetdate/page-parts/home-search-form.php

    If will need to change those files it’s recommended to copy them in child theme first and then to modify those files. The files should be placed in child theme in this path

    /wp-content/themes/sweetdate/page-parts/

    The missing folders should be created in child.

    The SQLs are made thru native buddypress functions like bp_the_member()

    The responsible file for generating members directory it’s : /wp-content/themes/sweetdate/members/members-loop.php , if you will need to make changes here you should make a copy of this in child theme ( /wp-content/themes/sweetdate-child/members/ )

    A buddypress topic about manipulating the bp_members query

    Cheers
    R

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

    Hello,

    I’m making some changes directly in creating the form’s listbox via kleo-bp-search.php, however I need to know which user’s sex logged in to display only the options I want, how can I get via php that information inside the file in question?

    Thank you.

    #159529
     Radu
    Moderator

    Hi,

    I don;t have a plug and pay solution to check what sex it’s logged in but this can be done by using this function xprofile_get_field_data()

    Using this function you should be able to conditionate as you need

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?