-
Author
-
April 13, 2017 at 21:50 #158473
wendellcmc
ParticipantHello,
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.
April 14, 2017 at 04:13 #158492Laura
ModeratorHello, 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 solutionLaura 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 🙂
April 18, 2017 at 18:17 #158818Radu
ModeratorHi,
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
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 19, 2017 at 16:03 #158927wendellcmc
ParticipantSure, 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.
April 21, 2017 at 16:28 #159244Radu
ModeratorHi,
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.phpIf 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
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 22, 2017 at 16:16 #159319wendellcmc
ParticipantHello,
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.
April 25, 2017 at 15:07 #159529Radu
ModeratorHi,
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 -
AuthorPosts
You must be logged in to reply to this topic.