Display full year in Calendar Plugin?

Creating and modifying plugins.
Post Reply
allLED
Posts: 3
Joined: Thu May 26, 2011 6:23 pm

Display full year in Calendar Plugin?

Post 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
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Display full year in Calendar Plugin?

Post by Timbalu »

plugin_calendar.tpl

|formatTime:"%B '%y"
to
|formatTime:"%B '%Y"
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
allLED
Posts: 3
Joined: Thu May 26, 2011 6:23 pm

Re: Display full year in Calendar Plugin?

Post 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);
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Display full year in Calendar Plugin?

Post 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
Post Reply