1 (edited by spid3r 2006-12-19 02:37)

Topic: Calendar 2.0.7 Screwed up my Profile for all users?

I just recently installed Calendar 2.0.7 on my PunBB forum.  When clicking on "profile" it shows:


Parse error: parse error, unexpected T_IF in /home/www/eac.freehostia.com/forum/profile.php on line 969

I checked and this is the code:

965        list($year, $month, $day) = explode('-',$user['birthday']);
966    if($month!=0 && $day!=0){
967     $Nyear = (strlen($year)!=4)? NULL: $year;
968                $datestamp = mktime(0,0,0,$month,$day,0)
969                if ($lang_calendar['Date_format'] == 'US') {
970                   $birthday = date("F jS ", $datestamp).$Nyear;
971                } else {
972                   $birthday = date("j ", $datestamp).$lang_calendar[(date("F", $datestamp))].$Nyear;
973                }
974    }else
975        $birthday = $lang_profile['Unknown'];

I have noooo clue what to do.

Re: Calendar 2.0.7 Screwed up my Profile for all users?

change

                $datestamp = mktime(0,0,0,$month,$day,0)

to

                $datestamp = mktime(0,0,0,$month,$day,0);

you forgot to add  " ; "

www.Everlasting.co.nr is a friendly MapleStory guild and community

Re: Calendar 2.0.7 Screwed up my Profile for all users?

Moved to Modifications

Re: Calendar 2.0.7 Screwed up my Profile for all users?

Alright, thanks for the help smile

Re: Calendar 2.0.7 Screwed up my Profile for all users?

Yes, I found that myself the other day.  The flaw exists in the installation instructions.  Nice mod once it's working smile