The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Mini Calendar Details »» | |||||||||||||||||||||||||
Mini Calendar
THIS HAS MOVED OUT OF BETA. SEE THE NEW THREAD HERE: https://vborg.vbsupport.ru/showthread.php?t=68117 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:
Show Your Support
|
Comments |
#2
|
||||
|
||||
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:[list][*]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 Code:
yourforums.com/pathtoyourforum/calendar.php?s=&month=6&year=2004&do=&c=1 |
#3
|
||||
|
||||
nice work, i wanted something like this to go in my journal
|
#4
|
|||
|
|||
I have problems understanding the instructions.
how can i make a template? where will i have to put it? |
#5
|
|||
|
|||
Any idea how I can get this working on a non-vB page? Would like to display this on my home page.
As well was wondering how hard it would be to convert this to a script that would display (again on a non-vB page) the events just for the current day? I had both these when I was still on vB version 2.3.2 and it was a great way to show a canlendar and the current event on my home page but since I upgraded I'm not sure how to get this functionaliyt back? |
#6
|
||||
|
||||
well you've got to include cal.php for sure, so have
PHP Code:
The template still goes into your templates and will be called anyway. And then write $smallcalendar where you want the calendar to be. I think it should actually work... |
#7
|
|||
|
|||
Took your code and made a few changes and thinks its wiorking for me. See the attached file. I pull this into my home page using an ifame tag.
One thing thats happening that I'm not sure why is when I add a new event to my calendar it shows up in the vB forum calendar on the proper day but on the mini calendar one day early? any events that were in my forum before I updated to 3.0.3 show up on the proper day in the mini caneldar its just the new ones that are off by one day...any ideas? |
#8
|
||||
|
||||
Hi upnorth
It seems what you did is simply include the template in the file Do you have someplace I can see this problem? I can't get it to work here... |
#9
|
|||
|
|||
unfortunately I'm hosting behind a corp firewall.
Did you try running the code as is? Belive this page needs to be in the forums root to work so that it can find the following. <?php require_once('./global.php') ?> which needs to be at the beginning of your html page. |
#10
|
|||
|
|||
Hey Colin did you have any luck with getting my file to run? Seems that all new events are showing up on my small calendar one day ahead of when they should. The main vB calendar is correct but say an event that shows on the vB calendar for tomorrow shows up on the mini calendar today. As well when you select the link on the mini calendar it dosn't pull up the event. I just get "there are no events to display". (I assume because of a date problem ...maybe the same one that has it off by one.) Any help would be appretiated. I'm currently at a loss and if I can't fix this I'll need to pull it from my site which I realy don't want to do as this is a cool hack
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|