Topic: Calendar 2.0.7 Problem

OK, i have got calendar running on my forums
www.kntl.co.uk/forum
But there is one small problem with it

The BIRTHDAYS option doesnt appear.
This is where i put the option for it
in
lang/enlgish/profile.php

// Profile display stuff
'Not activated'                =>    'This user hasn\'t activated his/her account yet. The account is activated when he/she logs in the first time.',
'Unknown'                    =>    '(Unknown)',    // This is displayed when a user hasn't filled out profile field (e.g. Location)
'Private'                    =>    '(Private)',    // This is displayed when a user does not want to receive e-mails
'No avatar'                    =>    '(No avatar)',
'Show posts'                                        =>    'Show all posts',
'Realname'                     =>    'Real name',
'Location'                    =>    'Location',
'Website'                    =>    'Website',
'Jabber'                    =>    'Jabber',
'ICQ'                        =>    'ICQ',
'MSN'                        =>    'MSN Messenger',
'AOL IM'                    =>    'AOL IM',
'Yahoo'                         =>    'Yahoo! Messenger',
'Birthday'                                        =>    'Birthday',

Is that where im supposed to put it?
Because there were no indications in where it was supposed to go inside the profile.php
Cheers

Re: Calendar 2.0.7 Problem

Ok...

You havent changed profile.php with the required additional code... probably not reading that readme again. lol

Re: Calendar 2.0.7 Problem

That is very weird
Because i checked the profile, and it must have been reset, because i am sure i put in those codes.

But now this comes up when i try to look at my profile :S

Parse error: syntax error, unexpected T_IF in /home/kntlco/public_html/forum/profile.php on line 964

And this is what is on the profile.php

list($year, $month, $day) = explode('-',$user['birthday']);
    if($month!=0 && $day!=0){
        $Nyear = (strlen($year)!=4)? NULL: $year;
                $datestamp = mktime(0,0,0,$month,$day,0)
                if ($lang_calendar['Date_format'] == 'US') {      <- LINE 964
                   $birthday = date("F jS ", $datestamp).$Nyear;
                } else {
                   $birthday = date("j ", $datestamp).$lang_calendar[(date("F", $datestamp))].$Nyear;
                }

Why is this?
Everytime i do something to the profile, it mucks everything up. sad

Re: Calendar 2.0.7 Problem

Thats coding... lol

change this

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

in that bit of code to this

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

common fault that they have not fixed yet.

Re: Calendar 2.0.7 Problem

YES
Its works!!!!!
Thank you sooo much steve.
Next time ill make sure i know a bit more about PHP before i go asking all the time wink
Thanks again

Re: Calendar 2.0.7 Problem

Zimmer92 wrote:

YES
Its works!!!!!
Thank you sooo much steve.
Next time ill make sure i know a bit more about PHP before i go asking all the time wink
Thanks again

No worries... smile