View Full Version : Multi-Month View
nordmap
08-18-2005, 07:31 AM
Brian -
The only months I ever want to show are June, July, and August. Is there a way so that all three months will show up on a page at the same time whether the events have passed or are yet to happen?
Thanks,
Brett
Brian
08-18-2005, 09:49 AM
You can hard-code the $mo variable in the page to equal 6 then use the multi-calendar generator to display three months. You'd also want to disable the navigation.
nordmap
08-18-2005, 09:55 AM
Right....
In which file do I hard code the $mo variable? calendar.php? :-)
Brian
08-18-2005, 10:01 AM
That would go in your page before you "require" the calendar.
nordmap
08-18-2005, 10:23 AM
Got that - thanks. But it's displaying 6 months (June - November); anyway I can limit it to just 3?
Also, simple question, but I've never had to use relative links in my pages because I'm a simpleton. Can you shoot me an example of one? For example, the calendar is in www.ttoll.com/calendar/calendar.php (http://www.ttoll.com/calendar/calendar.php), but I want to display it in the page www.ttoll.com/men/2005/schedule.html (http://www.ttoll.com/men/2005/schedule.html).
Thanks and sorry for the stupid questions.
ve9gra
08-18-2005, 10:27 AM
If you used the example in the docs,
<?php
$MULTI=1;
$epcMultiWidth = "600px";
$epcMultiPad = 10;
$epcMultiNav = "580px";
$epcMultiCol = 3;
$epcMultiRow = 2;
require ("calendar/calendar.php");
?>change $epcMultiRow to 1.
nordmap
08-18-2005, 10:29 AM
Duh - I should have seen that. Thanks.
nordmap
08-18-2005, 10:36 AM
Never mind the relative links thing - I got it.
Thanks a ton and I'm buying within the hour.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.