NP_DateImage.php

This plugin displays the blog item date as images.

General Plugin info
Author: Mridang Agarwal
Current Version: 0.1
Download:
Code: Code
Demo: Screenshot
Forum Thread: Thread 15527

Installing

  1. Copy the copy and save it as NP_DateImage.php to your plugins folder
  2. Install the plugin…
  3. Copy all the images for the days, dates and months to you skin folder or any subfolder in it

How to use the plugin

You need to have images in your skin folder or any subfolder in it. There should be 31 date images, 7 day images and 12 month images. All the images have to be in the same format. All the day images can have a particular prefix like 'd_'. Therefore your day images would look like this: d_mon.jpg d_tue.jpg … d_sun.jpg

Your date images could be like: x_1.jpg x_2.jpg … x_31.jpg

..and your month images could be like this: m_jan.jpg m_feb.jpg … m_dec.jpg

Although you can choose any prefix the image names have to follow the naming convention like jan, feb, mar … dec for months; sun, mon, … sat for days; and 1, 2, ….31 for dates.

Available SkinVars and/or TemplateVars

  • Place <%DateImage%> in the blog item template to get the date as images.

Options

  • Template: This is the template that is used to display the images. You can modify if any way you like but it must contain the following three variables - <%day%>, <%date%> and <%month%>. An example could be like: <%day%><br><%day%><br>%month%>
  • Folder: Usually all the images are placed in a 'images' directory in the chosen skin directory. If that is the case set the value to 'images' else type the name of the folder
  • Suffix: The file extension of the image (without the '.')
  • Date Image prefix: Any prefix for the date images. If your date images are named x_1, x_2 and so on set the prefix to 'x_'
  • Day Image prefix: Any prefix for the day images. If your day images are named d_sun, d_mon and so on set the prefix to 'd_'
  • Month Image prefix: Any prefix for the month images. If your month images are named m_jan, m_feb and so on set the prefix to 'm_'

Tips and Tricks

Wishlist

Bugs

History

  • [Version 0.1, released 13.04.2007 ]
    • Initial Release
dateimage.txt · Last modified: 2007/04/13 18:34 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki