![]() |
Mini Calendar
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) New phrases(0): none Screenshots: see attachmentsInstructions:
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. |
Tips and Tricks
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! German: PHP Code:
PHP Code:
If you have more than one calendar and would like mini calendar to pull the events from a different calendar, do the following:
|
thanks for the final release!
|
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. Any help would be great, as I love the idea. |
S***!
Ok... I'm thinking it has something to do with your timezone. what timezone are you in? |
Hmm
I'm PST... (-8:00) |
I have an idea... but I don't have access to phpmyadmin here at work. I'll look at it when I come home :)
|
To be clear ... the .php I alter should look like:
require_once('./global.php'); include ("cal.php"); Is this correct? So far I'm having trouble getting this to work, so I wanted to clarify. Thanks. |
Quote:
|
Regarding the all-day-event bug--
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: |
All times are GMT. The time now is 09:09 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|