View Full Version : Module Question
ryan.carnrick@mocd.net
01-15-2007, 01:30 PM
Once again thank you guys for helping me out this has been really painless so far. About the module. I am guessing by reading the code on the module you want me to place the "Printable.php" in the calendar directory? Right? How do I just show 1 up coming event - then after that day the next one kicks in. Repeated for clarity - Just want to show the one next upcoming event then at midnight have it look for the next one to show. On the module.
ve9gra
01-15-2007, 09:30 PM
Yes, upload it in the /modules/calendar/ directory.
Now, in the printable.php, pretty much right at the bottom, just before the line with require("calendar.php"); add the following:$listEvents=1;
$noOld=1;If you want to show the whole day instead of only 1 event, change $listEvents for $listDays.
ryan.carnrick@mocd.net
04-11-2007, 02:50 PM
I tried to follow the module setup but I could not get it to work.
My setup is like this:
/public-html/
/public-html/calendar/
I never installed the calendar software in the module directory (doesnt make sense to me) need the friendly url www.name.com/calendar/
I dont want list style, breaks my "awesome" design. I only want to pull the name of event & date and have it link to in a "ul" list.
I will be happy to show the site on a more offline converstation, please contact me privately.
ve9gra
04-11-2007, 06:04 PM
It doesn't have to make sense.. that's how the module was designed and if it is not installed within the /modules folder it just won't work. It is the first step in the instructions for a reason ;)
Modify the (or create a new) template you're using to work with your site.
ryan.carnrick@mocd.net
04-11-2007, 06:14 PM
Is there anyway since it's in the same db I can write a php script to pull the info from mysql into a module? And can I get any direction on how not to spin my wheels looking for this script?
ve9gra
04-11-2007, 06:40 PM
No, trying to create your own module to connect directly to mysql is counterproductive. There is tons that happens in the background to process recurring and floating events.
The best is to simply modify the list template that you're using so that instead of creating a table, it creates a UL list.
ryan.carnrick@mocd.net
04-11-2007, 06:48 PM
This is what I can see from the module source
require ("modules/calendar/calendar.php"
Can I put a ful linux path to make this work with my setup?
require ("linuxname/public-html/calendar/calendar.php"
If I can get this to work first then I can worry about the design.
If you have any solutions to make it work this way I will be happy to put together pdf for other future joomla users (my way of saying thanks)
ve9gra
04-11-2007, 10:37 PM
You can try using "calendar/calendar.php". If that doesn't work you will need the full path from the root.
ryan.carnrick@mocd.net
04-23-2007, 12:49 AM
Now getting new problem. The printable.php does not look into next months events. Just states no upcoming events to display. Why does it not see next month? code used
$LIST=1;
$DF = "M d - D";
$noOld=1;
$template="monthly.php";
require ("calendar.php");
Tried using ($listEvents=1;) displays mini calendar this does not work.
ve9gra
04-23-2007, 06:23 AM
$LIST=1; is required if you want to use the list. Then you add on optional parameters to limit what will be displayed. You can't replace $LIST by $listEvents, $LIST is always required.
ryan.carnrick@mocd.net
04-23-2007, 11:08 AM
That wasn't the real question. The printable.php does not look into next months events. Just states no upcoming events to display until that month has passed. Why does it not see next month?
ve9gra
04-23-2007, 12:42 PM
When the listing module is used by itself, it only looks for the current month. If you want it to look ahead, use one of the optional parameters ($listDays, $listWeeks, $listMonths, $listYear, or $listEvents) and set it to an appropriate number.
If you're using the list mode in conjunction with the normal or TOC calendar, the listing module will use the month that is currently displayed on the calendar instead of the current month.
For example, since you're using $noOld, you might want to have $listWeeks=4 or 5 to have a constantly rolling list of events that span the next 4 or 5 weeks.
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.