Page 1 of 1

Display full year in Calendar Plugin?

Posted: Fri Jun 10, 2011 5:49 pm
by allLED
Just like to know what part of the code to edit to have the Calendar Plugin display the full year instead of '11.

Thanks

Re: Display full year in Calendar Plugin?

Posted: Fri Jun 10, 2011 6:19 pm
by Timbalu
plugin_calendar.tpl

|formatTime:"%B '%y"
to
|formatTime:"%B '%Y"

Re: Display full year in Calendar Plugin?

Posted: Fri Jun 10, 2011 10:10 pm
by allLED
The code you posted:

|formatTime:"%B '%y"
to
|formatTime:"%B '%Y"

Could not be found in the plugin_calendar.tpl

A similar line regarding the formatTime in this file goes like this:

$ts_title = serendipity_formatTime("%B %Y", $ts, false);

Re: Display full year in Calendar Plugin?

Posted: Fri Jun 10, 2011 11:36 pm
by yellowled
allLED wrote:$ts_title = serendipity_formatTime("%B %Y", $ts, false);
That is most definitely not from the plugin_calendar.tpl. (Or you're using a really weird template.)

The file you're supposed to edit is the one in /templates/YOUR_TEMPLATE/. If your template does not have a plugin_calendar.tpl, copy the one from /templates/default/ to /templates/YOUR_TEMPLATE/ and edit the copied file.

YL