Version: 1.00, by Colin F
Developer Last Online: Apr 2014
Version: 3.0.3
Rating:
Released: 08-07-2004
Last Update: Never
Installs: 38
Re-useable Code Translations
No support by the author.
Mini Calendar
What it does:
The Mini Calendar is just what it's name says. It allows you to add a small calendar to any or all vBulletin page(s). It links back to the month, next and previous month as well as any days with an event.
Is it complicated?
Installation is easy. Just include the cal.php file on any page that you want it shown, make one new template and insert $smallcalendar at the exact place you want it shown. Look at the instructions below.
Changes: New files (1):
cal.php
Changed files(0-1):
depending on where it should be shown
New database fields/tables(0):
none
New templates(1):
small_calendar
Changed templates(1-2):
wherever mini calendar should be shown
(phpinclude_start, if shown on all pages)
Upload cal.php (attachment) to your forum home directory
Make a new template with the name small_calendar and insert the contents of template.txt (attachment) into it
Decide if you want to have your mini calendar on specific pages or on all your pages
If you decide to have the mini calendar on all your pages (for example in a sidebar) edit your phpinclude_start template and add
PHP Code:
include ("cal.php");
to the end of it.
If you only want the mini calendar on specific pages, open the php file that makes that page and under
PHP Code:
require_once('./global.php');
add
PHP Code:
include ("cal.php");
edit the template that shows the area in which you want to insert your mini calendar and add $smallcalendar to the exact spot where your mini calendar should be shown.
Donations: This hack will always be free, however your donations are kindly accepted and will help towards further development. If you donate, please leave me some info (either your forum site or username at vB.org) so that I can thank you.
Install:
Don't feel like donating, but still want to thank me for my work? Click the install button to show your appreciation. As a great side effect, you'll get an email update once there is a bigger update or important security fix!
Updates:
10.08.2004: Updated cal.php to fix (hopefully) the events being on the wrong day with far out timezones.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
But its... *english*?!?
To translate the few hardcoded dayvalues, go to lines 21-27 and edit the Su, Mo Tu, We, Th, Fr, Sa values near the end of each line to your liking. DON'T change these values if you think there's a problem with the first day of the week! The script checks on the browsing users start of week day and changes the mini calendar so that the day is also all the way on the left!
How can I have it use my other calendar?
If you have more than one calendar and would like mini calendar to pull the events from a different calendar, do the following:
Go to yourforums.com/pathtoyourforum/calendar.php?s=&month=6&year=2004&do=&c=1
Pick the calendar you want to use as the base for mini calendar from the Calendar Jump box on the bottom right.
Now look in your adressbar. The adress should be something like
Hi Colin,
Excellent work, but the single all-day events still do not appear correctly for me (and others). Example:
A single all-day event on August 20th appears on the Mini Calendar on August 19th, thereby resulting in an incorrect link and a "no events to display" error from the calendar. Using a ranged event works fine, but all-day events result in erroneous links to the previous day every time.
FYI I did a straight, simple install, with no modifications.
I'm no PHP or vBulletin expert, but it seems strange that a different time zone would be causing a problem that seems to only deal with dates, not times.
I could be wrong tho... mostly I just want my mini-calendar up and kicking :squareeyed: