Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

filter drop down list
Old 11-15-2005, 12:03 PM   #1
meir
Calendar User
 
meir is offline
Join Date: Nov 2005
Posts: 7
Send a message via Yahoo to meir
Default filter drop down list

I am not able to get filter drop down list work :
----------------
ob_start();
$OL=1; require("calendar.php");
unset($OL);
include "plugins/filter.php";
$content=ob_get_contents();
----------------

However, by doing this I am able to get the filter work
--------------
ob_start();
$OL=1; require("calendar.php");
$OL=1; require("calendar/config.inc.php");
unset($OL);
eclog(basename(__FILE__) . ": including filter.php" );
include "plugins/filter.php";
$content=ob_get_contents();
----------------

I did set serverConfig and include_path correctly. Is there something else I need to take care?

thanks in advance
meir
 

Old 11-15-2005, 12:42 PM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

If you want to use require("calendar.php"); that script has to be in the /calendar/ directory.

If the script it not in the /calendar/ directory, you'll have to adjust the path of calendar.php relative to the script.

So your corrected code would be

PHP Code:
ob_start();
$OL=1; require("calendar/calendar.php");
unset(
$OL);
include 
"calendar/plugins/filter.php";
$content=ob_get_contents(); 
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 11-16-2005, 10:11 AM   #3
meir
Calendar User
 
meir is offline
Join Date: Nov 2005
Posts: 7
Send a message via Yahoo to meir
Default

I tried - didn't work. Should I continue to use config.inc.php explicitly?
 

Old 11-16-2005, 10:54 AM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

If that makes it work, it's okay to do that. (Seems the server is forgetting variables when used this way...)
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 11-16-2005, 10:58 AM   #5
meir
Calendar User
 
meir is offline
Join Date: Nov 2005
Posts: 7
Send a message via Yahoo to meir
Default

require_once - probably not including config.inc.php since :

$CSS=1; require("calendar/calendar.php") is executed in nuke's header.php and later in block/module when we try
$OL=1;require("calendar/calendar.php") - require_once would fail. But not sure why $epcCategories is not set with CSS=1 since you do include config.inc.php whether it is $CSS=1 or$OL=1.
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop Down Menu and List Boxes Tex General Support 4 11-28-2005 09:45 PM
Any way to make list mode function as "headlines" JamesC Customizations (Themes / Templates) 11 10-08-2005 04:03 PM
Catagory Filter Drop Down on Calendar sjbrownie General 3 06-22-2005 03:12 PM



All times are GMT -4. The time now is 11:28 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |