View Full Version : Events Filtered Display
jpaulcscr
10-10-2005, 02:39 PM
I going to include several types of events in the calendar system,
Is any way that i can include the following option filtered:
<?php $OL=1; require("calendar/calendar.php"); ?> Lets say I have soccer fixtures from different leagues, and I create a category for every league, is there anyway that i can display just that league in one page,withoud the people having to filter the list manually.
Thank You.
Paul
Brian
10-10-2005, 02:52 PM
Sure! Just use the $showCat variable to set the category you want displayed:
http://docs.easyphpcalendar.com/Customize/Command-line%20Variables.htm\
:)
jpaulcscr
10-10-2005, 08:55 PM
I try to add the code to display categories on the demo.php page, but i always get the following error
Warning: main(calendar/plugins/filter.php) [function.main (http://www.wagerweb.com/events/soccer/calendar/function.main)]: failed to open stream: No such file or directory in /sites/clients/www.wagerweb.com/www/pages/events/soccer/calendar/demo.php on line 40
Fatal error: main() [function.require (http://www.wagerweb.com/events/soccer/calendar/function.require)]: Failed opening required 'calendar/plugins/filter.php' (include_path='.:/usr/local/php/lib/php') in /sites/clients/www.wagerweb.com/www/pages/events/soccer/calendar/demo.php on line 40
Thank you for you help now and before.
Paul
Brian
10-10-2005, 08:59 PM
Are you using the latest release?
Did you adjust the paths to the filter.php file?
jpaulcscr
10-10-2005, 09:09 PM
Yes I am using the latest release, just installed
id the system is installed in
www.website.com/events/soccer/calendar/
I just Change the path, and now it works, but it just show me one category, and i have several
http://www.wagerweb.com/events/soccer/calendar/demo.php
Thank You
Paul
Brian
10-10-2005, 09:11 PM
I see 2 categories: friendly matches and world cup...
jpaulcscr
10-10-2005, 09:14 PM
Yes but inside the setup manager i have like 15, and some of them have several selections
Thanks
Brian
10-10-2005, 09:22 PM
The filter plug-in can only display the main category. You can use the $showCat variable and the Event Manager to create filters for other categories and their selections.
jpaulcscr
10-10-2005, 09:38 PM
Thanks Works Fine
so I can remove the line
<?php require("calendar/plugins/filter.php"); ?>
And just use the events manager filter option to display the informacion I need.
And What files I need to edit to change the order of the information in the list mode,
right now is:
Testing Filters The America’s: Brazil Serie A
Testing Properties of the filter
Thank you, Paul
Brian
10-10-2005, 10:07 PM
Yes. You can remove the filter plugin.
The list mode is ordered automatically first by date, then by time and then by title.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.