Jump to content


Submitter

SUPPORT TOPIC File Information

  • Submitted: Aug 06 2007 12:18 PM
  • Last Updated: Aug 07 2007 02:18 PM
  • File Size: 10.24K
  • Views: 2706
  • Downloads: 467

Previous Versions

  • 07 Aug 2007 Download zcal_miniV1
  • 06 Aug 2007 Download zcal_miniV1

Download zcal_miniV1

- - - - -



This snippet displays the contents of the snippet zcalendar in a compact one month calendar.
It is suitable for placing in the template of a site or as a small part of a page.

See in action here.

The calendar displays day numbers. The individual days automatically have the class set to either none; and event start day; a finish day; a spanned day(event continuing) or today.

On mouseover, the events are listed in the tool tips as "Goto: Birthday> Dog's Dinner> BBQ>" (configurable).
On-click, the original zcalendar page and event day is displayed (anchored).

The class prefix "mini_" is turned on by default allowing you to set new class names for the zcal_mini, or use your existing zcal css.

########Snippet Installation Instructions #############################
1) Install and populate the zcalendar snippet.
2) Save this snippet in your snippet library.
3) call it whatever you want, call the snippet into your page or template [! uncached!].
4) Set the database connection details to link to the table: the same as the config.inc.php file.
$host = $host="localhost"; //hostname where the MySQL database is located
$user = $user="username"; //MySQL username for the external MySQL database
$pass = $pass="password"; //MySQL password for the external MySQL database
$dbase = $dbase="databasename"; //MySQL database name to which you wish to connect
5) Set the zcalendar to the same name as the original zcalendar table.

$zcalendar="zcalendar";//set to the name of the table to connect to.
6) Seet the page where your zcalendar snippet is located (this also accepts a FURL alias).
$zcal_link='54';//set to the doc id or alias name of the page where your original zcalendar is located.

That's it.

Changelog:
7/8/07
Removed stripslashes deep function to avoid re-declaration error on Linux on hyperlink to zcal event.
Adjusted day class output logic to fix slight error in class output.
Added "null" values to make it xhtml compliant. (V1.2)






  • 248 Total Files
  • 19 Total Categories
  • 50 Total Authors
  • 131,652 Total Downloads
  • TripTracker Gallery Latest File
  • Dean Latest Submitter