I finally got my search page how I want it, and created 3 new search fields. However, when I try to search by one of my custom fields and hit "submit", the search page, search.php just refreshes! How can I get my custom fields to be searchable?
I finally got my search page how I want it, and created 3 new search fields. However, when I try to search by one of my custom fields and hit "submit", the search page, search.php just refreshes! How can I get my custom fields to be searchable?
So basically I spent all day trying to get this to work. What I'm trying to do is replace "I am a male looking for a female" to "I am a BB employee looking for a BB alumni". So I want to replace male and female on both ends to seven different identical option types. I have done my research on this site to know that "male" and "female" is hard coded into the search page, and several other php pages. So I looked at the source of search.php and also found that I need to edit:
profiles.inc.php
profiles_desc.inc.php
search.php
search_results.php
I might be missing one. But the code I think I need to change is:
<?php
echo SelectOptions("LookingFor", ($member_sex=='male' ? 'female' : 'male') );
?>
I changed it to:
<?php
echo SelectOptions("LookingFor", ($member_sex=='BB_employee' ? 'BB_alumni' : 'BB_employee' : 'MS_participant' : 'HS_participant' : 'College_participant' : 'Parent' : 'Volunteer' : 'Visitor') );
?>
I also checked the tables in phpMyAdmin to make sure that all of the sex, looking for, tables had replaced "male" and "female" here. When I tried my search it only searched correctly for a profile who had BB_alumni as their sex or looking for. The others don't work.
When I tried to change the code to:
<?php
echo SelectOptions("LookingFor", ($member_sex=='BB_employee' && 'BB_alumni' && 'BB_employee' && 'MS_participant' && 'HS_participant' && 'College_participant' && 'Parent' && 'Volunteer' && 'Visitor') );
?>
It still only searched correctly for BB_alumni in a profile.
Is it possible for me to change the hard coded male and female in the search page, and also the associated files that go along with it? I'm sure it must be possible. If I am over my head please let me know because I've been trying for the past week. Any help is appreciated...![]()
Also, on the join page, when I took out the headline field from the join page, when a new person signs up I always get the headline error message. How can I take this out?
well, I got this to work. I had to do so much I don't even remember all that I changed, but now I have to figure out how to make my newly added fields searchable too.
What did you do!
I need to find out!
Thanks,
K
ModMySite Administrator
Problems? Questions? Need modifications or other help with your site?
Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.
You need to add the names of the fields you are looking in the following section of search_results.php
// check if user poset correct data
if ( !isset($_GET['LookingFor']) && !$_GET['ID'] && !$_GET['NickName'] && !$_GET['distance'] && !$_GET['zip']
&& !$_GET['online_only'] && !$_GET['gallery_view'] && !$_GET['view_friends'] && !$_GET['tag'] )
{
echo '<script language="Javascript">location.href=\'search.php\' ;</script>';
exit;
}
Hope that helps
David
been trying to skpe smoge to answer this but no luck..
this works fine for initial result but with pagination the results are not carried to the next page
so when a user searches by country they only get one page for that country. does anyone have any ideas???
Hi,
Old version of Dolphin or aeDating? If so - old bug - search the forum some - maybe you can find it.... or... maybe it is something else... but if it is an old version - there are posts about it.
Smoge
ModMySite Administrator
Problems? Questions? Need modifications or other help with your site?
Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks