The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Mini Calendar
I know there are a couple of Mod's for a mini calendar, but they are outdated and I can't get them to work.
Any idea if there is a way to maybe take the minicalendar on the calendar.php page and move it, or copy it and put it on the forumhome? I looked into the VBAdvanced, but that is way more than what I want to do with my board at this time. Thanks! |
#2
|
|||
|
|||
I feel your pain.
The mini calendar of old that shows the actual VB calendar on a non-VB page, complete with links to events, etc. is something I have wanted for a long time. I would love to see this mod but don't have the capability to figure it out myself (I tried). Hopefully someone out there with the skills will make it happen! |
#3
|
|||
|
|||
Would like to display a mini calendar in my side column.
I know the cms do it but I prefer to just select items I want and stick them in. I'm using Ultimate Side Columns and it adds on to the navbar template. Also want a hierarch calendar, top as now, 2nd level viewable by usergroup, 3rd lever private for oneself. Lower levels get feed from upper level/s. |
#4
|
||||
|
||||
I also look for the same
greetings, |
#5
|
|||
|
|||
Also looking for this...
T. |
#6
|
|||
|
|||
has this been made anywhere yet?
|
#7
|
|||
|
|||
I put something together that appears to work. Basically I took a very carefully chosen few lines from calendar.php, just enough to get the mini calendar to work. Here's the php in its entirety:
PHP Code:
Then within index.php (i wanted it on the main page only), right after PHP Code:
PHP Code:
HTML Code:
<table class="tborder" cellpadding="2" cellspacing="$stylevar[cellspacing]" border="0" width="170"> $minimonth </table> So, to summarize: 1. copy the php code into a file, cal.php and put that file in the main forum directory 2. add php code to require_once this file, in the file where you want to use the mini calendar 3. add the <table> fragment including $minimonth to your template. Note, I don't really understand how the multiple calendars work, or the access control for calendars, so this is hard-coded to always display calendar 1. If someone else wants to turn this into an official "mod" then by all means go ahead. Attached is a screen shot (I put it on the FAQ page first so as not to disrupt the forum during development). |
#8
|
|||
|
|||
I made a mistake and didn't notice that the weekday abbreviations (S, M, T, W, T, F, S) were not showing up along the top row. I finally figured out what was causing that: the phrase group that's loaded needs to include 'calendar'. And the $phrasegroups variable needs to be updated before global.php is included.
So for example at the top of index.php you'll see: PHP Code:
PHP Code:
There's probably a nice clean way to do this in vbulletin that is more modular and doesn't involve editing code in as many places, but for me this is now working. |
#9
|
|||
|
|||
Thanks, this works well on 3.8.
|
#10
|
|||
|
|||
Thanks
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|