Results 1 to 6 of 6

Thread: Changing age range?

  1. #1
    j0eh4x
    Guest

    Default Changing age range?

    how do i change the age rang so younger people can sign up?

  2. #2
    j0eh4x
    Guest

    Default

    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)

  3. #3
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    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

    Quote Originally Posted by j0eh4x
    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)
    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.

  4. #4
    SolarisZen
    Guest

    Default

    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.

  5. #5
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    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', '', '&nbsp;-&nbsp;', 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', '', '&nbsp;-&nbsp;&nbsp;', 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', '', '&nbsp;-&nbsp;', 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', '', '&nbsp;-&nbsp;', 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.

  6. #6
    SolarisZen
    Guest

    Default

    Quote Originally Posted by Smoge View Post
    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', '', '&nbsp;-&nbsp;', 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', '', '&nbsp;-&nbsp;&nbsp;', 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', '', '&nbsp;-&nbsp;', 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', '', '&nbsp;-&nbsp;', 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',
    Thank you so much smog for helping me out

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Age range and DOB fix
    By csallis in forum Free Mod Exchange
    Replies: 9
    Last Post: 06-23-2009, 07:07 AM
  2. weight range same as Age
    By kruemelg in forum Free Mod Exchange
    Replies: 0
    Last Post: 09-20-2007, 01:02 AM
  3. age range ! I want to do it from 14 in place of 18.
    By tarif in forum Free Mod Exchange
    Replies: 10
    Last Post: 07-17-2007, 11:29 AM
  4. removing looking for a age range
    By jacobb in forum Dolphin General Discussion v5.0 to v5.21
    Replies: 7
    Last Post: 10-15-2006, 05:53 AM
  5. Looking for age range...
    By sugarenia in forum General Issues, Comments, Questions
    Replies: 2
    Last Post: 01-27-2006, 02:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •