Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

how to search for Male, Female or Both

11 years 1 week ago
  • tony's Avatar
    Topic Author
  • tony
  • Offline
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 2
Licenses:
JomSocial Expired Socialize Expired

running. joomla 3.3.0 - jomsocial 3.2.0.5

I'm sure this is a basic question but one I just can't seem to work out. Currently the Gender search options give you either Male or Female to search for. I would like a third option of Both.

I want my community to search for
- just Females,
- just Males
- or Both

Is this possible and if so how?

A guide in the right direction will be greatly appreciated.

Thanks

11 years 1 week ago
Licenses:

Hi Tony,

Jomsocial having advance search. you can use that for people search.
index.php?option=com_community&view=search&task=advancesearch

doc: documentation.jomsocial.com/wiki/Search_Friends

If this explanation not what like you want. in next reply please provide me the administrator access detail, by editing your first post at this topic and put it at Site Info. So i can login to your site without must join as new user.

Regards,
Albert

10 years 11 months ago
Licenses:

Hi Tony,

We have not received any response back from you in over 7 days, and would like to know if you consider this issue to be resolved. If you have any further questions, simply reply to this post.

Regards,
Albert

10 years 11 months ago
  • tony's Avatar
    Topic Author
  • tony
  • Offline
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 2
Licenses:
JomSocial Expired Socialize Expired

Sorry, I have been on holiday. I have checked your original response and it's not quite what I'm looking for. If we take the Community - Dating Search module as an example,

there is a search panel with a dropdown for Gender selection

Attachment gendersearch1.png not found




Currently when the dropdown is selected it shows a selection of either 'Male' or 'Female'

Attachment gendersearch2.png not found




But I would like a third option named 'Both', this should return both male and female in the search results together

Attachment gendersearch3.png not found



Is there a way to do this?

Thanks

Attachments:
10 years 11 months ago
Licenses:

Hi Tony,

you can do that by using module override
copy /modules/mod_datingsearch/tmpl/default.php to /templates/socialize/html/mod_datingsearch/default.php edit override file:
at line 112

from 
if(keylist)
{
	joms.jQuery("#datingsearch_hidden").append('<input type="hidden" id="key-list" name="key-list" value="'+keylist+'" />');
	joms.jQuery("#datingsearch").submit();
}
else
{
	joms.jQuery("#datingsearch_search").attr("disabled", false);
}

to 

joms.jQuery("#datingsearch_hidden").append('<input type="hidden" id="key-list" name="key-list" value="'+keylist+'" />');
joms.jQuery("#datingsearch").submit();
line 125 above </select> put this code
<option value="">Both</option>

and if you want replace "Gender" with "Both", so the options only have Both, Male, Female. you can edit:
/language/en-GB/en-GB.mod_datingsearch.ini:
line 11
from
MOD_DATINGSEARCH_GENDER="Gender"

to
MOD_DATINGSEARCH_GENDER="Both"

Regards,
Albert

The following user(s) said Thank You: tony
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW