December 05, 2021, 05:27:57 AM

ShoutBox!

 

Ken

2021 Nov 16 18:31:42
Yes, Welcome Aboard Mike!  :thumbup:
 

Skhilled

2021 Nov 16 11:30:14
Welcome aboard, Mike! :)
 

Skhilled

2021 Nov 12 12:38:54
LMAO!!!
 

Ken

2021 Nov 12 00:27:23
 

Ken

2021 Oct 13 11:14:20
Captain Kirk is now officially an Astronaut!!!  :heart: 😍
 

Ken

2021 Oct 09 05:09:32
 

Ken

2021 Aug 14 04:29:02
... a little late, but what the hey!  laughing7

 

Ken

2021 Aug 06 07:47:47
 

Ken

2021 Jul 30 22:30:30
 

Ken

2021 Jul 02 09:38:25
Hahahaha!  :banana:

Recent Topics

Author Topic: Monthly Calendar pictures  (Read 1300 times)

0 Members and 1 Guest are viewing this topic.

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 10253
  • Gender: Male
  • View Gallery
Monthly Calendar pictures
« on: June 09, 2007, 01:57:52 PM »
Add the code below to your theme's Calendar.template.php where you want the pictures to appear.  I put the code right below the following line: global $context, $settings, $options, $txt, $scripturl, $modSettings, $months, $months_short, $days;

The code places a center aligned image right above the calendar table.  Then all you have to do is upload the pictures you want to use to the specified image directory.  Make sure the images are named after the month you want them to appear for. Example: January, February, etc.

With the code above all pictures must be jpg format. 

--------------------------------------

I would use:

echo '<div align="center"><img src="http://yourdomain.com/images/calendar/month', $context['current_month'], '.jpg" border="1" alt="" /></div>';

Because it's more valid xhtml, and it's more internationalizable.  Note that you have to use numbers now, for example month10.jpg.

-[Unknown]

http://www.simplemachines.org/community/index.php?topic=16959.0
« Last Edit: June 09, 2007, 01:59:49 PM by GPa Ken »
"Not all who wander are lost."-Tolkien
Yesterday When I was Young.