Zikula: A Flexible Open Source Content Management System
home | forum | international support | contact us

Support Forum

Start ::  Extensions and Distributions Support ::  Modules ::  Friendfinder module

Moderated by: Support Team

Bottom
Friendfinder module

  • Link to this postingPosted: 26.10.2003, 02:22
    Profile Homepage
    computel
    rank:
    Freshman Freshman
    registered:
     February 2003
    Status:
    offline
    last visit:
    25.07.06
    Posts:
    41
    Hello I'm having problems with how it searches the ages I tell it to search 38-38 and none show but there is members with that age.

    here is what I think the code is for it.


    Code
    In the functions.php

    $year=split("-",$birth);
                                    if($year[0]>=1970){
                                    $time=getdate();
                                    $a=mktime(0,0,0,$time[month],$time[mday],$time[year]);
                                    $b=mktime(0,0,0,$year[1],$year[2],$year[0]);
                                    $age=($a-$b)/(60*60*24*365);   
                                    $age=intval($age);
                            }     
                                    else $age=$thisyear-$year[0];


    Can someone look at index.php & functions.php these to files and see if there is a better way to search for matches by birth date.

    I can send the 2 files to someone to look at thanks

    Evan

    Thanks

Start ::  Extensions and Distributions Support ::  Modules ::  Friendfinder module

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to Zikula