how do i change the age rang so younger people can sign up?
how do i change the age rang so younger people can sign up?
thankyou that worked but now im in a dilema, in the user search it lets u search the new ages but when you sign up the year of births to pick a lower age isnt a choice how to i add different years to the date of birth in the join form (this is dolphin 5.2)
Actually, you should check several things in Profiles and ProfilesDesc to see if they are correct in supporting you changing the default age ranges.
I think if you look at these two tables, you will find various places "18" and "75" or "18-75" are being used other than your "13-30" or whatever.
This is a simple exampe from Profiles (table structure), but the default value for LookingAge in Profiles is "18-75" - you would want to change that to "13-30" or whatever.
Smoge
Originally Posted by j0eh4x
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.
Smog. Could you post a bit more detail on how to do this?
I have phpMyAdmin but I am a little lost to finding the correct tables and values to change since my query into my database did not yield anything useful.
Here is some info to give you some hints on the required database changes.... mostly, where you see 18, set to your low value, and where you see 75, set to your high value.
Code:TABLE ProfilesDesc (11, 'DateOfBirth,YearOfBirth', '_Date of birth', '', '''75'',''18''', 'eny', 11, 0, 'single', 'user,memb,adm', 'memb,adm', '$dob=explode(''-'',$arg0);$age=date(''Y'')-$dob[0];if($dob[1]>date(''m'')) $age--;else if((int)$dob[1]==date(''m'')) if ((int)$dob[2]>date(''d'')) $age--;if(($age>=getParam(''search_start_age''))&&($age<=getParam(''search_end_age''))) return true;else return false;', '_AGE_INVALID', 'b', '', ' - ', 1, '0', 'return "$arg0[YearOfBirth]-$arg0[MonthOfBirth]-$arg0[DayOfBirth]";', '$arr = split(''-'',$arg0[DateOfBirth]); return $arr[0];', 'daterange', 2, 0, '''18'',''75''', 6, '40', '', '', 'none', '', '', ''); (61, 'LookingAge,LookingAge1', '_LookingAge', '', '''18'',''75''', 'en', 44.2, 0, 'single', 'user,memb,adm', 'memb,adm', '', '', 'b', '', ' - ', 1, '0', 'return "$arg0[LookingAge1]-$arg0[LookingAge2]";', '$arr = split(''-'',$arg0[LookingAge]); return $arr[0];', 'none', 0, 0, '', 0, '', '', 'DateOfBirth', 'daterange', '20', '', ''); (62, 'LookingAge,LookingAge2', '_LookingAge', '', '''18'',''75''', 'en', 44.4, 0, 'single', 'user,memb,adm', 'memb,adm', '', '', 'e', '', '', 0, '0', '$arr = split(''-'',$arg0[LookingAge1]); return $arr[1];', '$arr = split(''-'',$arg0[LookingAge]); return $arr[1];', 'none', 0, 0, '', 0, '', '', '', 'none', '', '', ''); (117, 'DateOfBirth2,YearOfBirth2', '_Date of birth', '', '''75'',18''', 'eny', 124, 0, 'couple', 'user,memb,adm', 'memb,adm', '', '', 'b', '', ' - ', 1, '0', 'return "$arg0[YearOfBirth2]-$arg0[MonthOfBirth2]-$arg0[DayOfBirth2]";', '$arr = split(''-'',$arg0[DateOfBirth2]); return $arr[0];', 'daterange', 2, 0, '''18'',''75''', 6, '40', '', '', 'none', '', '', ''); (118, 'DateOfBirth2,MonthOfBirth2', '', '', '''01'',''02'',''03'',''04'',''05'',''06'',''07'',''08'',''09'',''10'',''11'',''12''', 'e', 125, 0, 'couple', 'user,memb,adm', 'memb,adm', '', '', 'c', '', ' - ', 0, '0', '$arr = split(''-'',$arg0[YearOfBirth2]); return $arr[1];', '$arr = split(''-'',$arg0[DateOfBirth2]); return $arr[1];', 'none', 0, 0, '', 0, '', '', '', 'none', '', '', ''); TABLE `SDatingEvents `EventAgeLowerFilter` tinyint(2) unsigned NOT NULL default '18', `EventAgeUpperFilter` tinyint(2) unsigned NOT NULL default '75', TABLE `GlParams` ('search_end_age','75',1,'Highest age possible for site members','digit','','',21); ('search_start_age','18',1,'Lowest age possible for site members','digit','','',20); TABLE `Profiles` ( `LookingAge` varchar(7) NOT NULL default '18-75',
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