View Full Version : Any way to make list mode function as "headlines"
JamesC
10-06-2005, 04:35 PM
What I'd like to do is have a list mode that displays just the titles of events which you could then click on to take you to another page with another list mode calendar displaying the full details of the selected event.
Sort of like a blog mode where it goes from list mode-> list mode instead of normal mode -> list mode.
The best I've come up with is to modify the monthly.php and "hard link" the event title/date to a new page that has another list mode calendar (with a different template) displaying the full details.
Is there any way so it will just display the events for the selected day (like blog mode does)?
In my attempt to make this work I've discovered that if you put multiple list mode calendars on a page each filtering for a different category, the calendars after the first will only display the first event, no matter how many $listEvents are defined. Any way around this?
Examples: http://psichi.subcortical.com/test.php
http://psichi.subcortical.com/index.php
Brian
10-06-2005, 04:49 PM
Good idea. The Blog Mode was released just yesterday... You may want to add this to the Feature Requests forum as it's not currently designed that way.
Another option is to use the new mouse-over mode on the list view, but this may be give you the results you desire.
JamesC
10-06-2005, 05:58 PM
So there is no way to have multiple list mode calendars on the same page with different category filters activated and still show the correct number of events?
Brian
10-06-2005, 06:17 PM
I'll need to test this as I don't think I've used more than one list mode calendar on the same page...
JamesC
10-06-2005, 06:22 PM
Nevermind, I figured out a way to make it work.
Thanks for the quick response earlier Brian.
JamesC
10-06-2005, 07:05 PM
Something seems to be buggy with the way category filters are applied when multiple list mode calendars are on the same page (using different filters). I managed to overcome the problem that the second list calendar would only show 1 event, by increasing the $listEvents command to 10 for the second list mode calendar. Now it displays the next 3 events.
Ex: http://psichi.subcortical.com/members.php
http://psichi.subcortical.com/test.php
Brian
10-06-2005, 07:12 PM
It's probably an issue with some list mode variables not being reset... I'll let you know what I find.
Brian
10-08-2005, 12:05 PM
I can't seem to duplicate this. Can you attach the code for your page so I can see your implementation (zip file). If you don't want to post it publicly, please open a support ticket and attach it there.
JamesC
10-08-2005, 04:01 PM
Here is the code for my test.php file (http://psichi.subcortical.com/test.php): (http://psichi.subcortical.com/test.php%29:)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<h3>Announcements</h3>
<br>
<?php
$LIST=1;
$listEvents = 3;
$DF = "l - M d";
$template="monthly.php";
$showCat="a|2";
require ("epc/calendar.php");
?>
<h3>Upcoming Events</h3>
<br>
<?php
$LIST=1;
$listEvents = 3;
$DF = "l - M d";
$template="monthly.php";
$showCat="a|1";
require ("epc/calendar.php");
?>
</body>
</html>
Notice that the $listEvents variable is set to 3 for both. However if you view the page, only 1 event is displayed for the second calendar.
Now, check out http://psichi.subcortical.com/test2.php
The only difference is that I increased the second $listEvents variable to 5. Now it shows 2 events. If I set $listEvents to 10, it will show 3 events. :confused:
Brian
10-08-2005, 04:36 PM
Add the code below to your page just before each require command:
unset($shownEvents);
Let me know if this helps.
JamesC
10-08-2005, 05:02 PM
Yup, that worked. Thanks.
Brian
10-08-2005, 05:03 PM
I've added this as an automatic feature to Version 6.3.01 which should be released soon.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.