dstreefkerk
Forum Replies Created
-
Forum: Plugins
In reply to: Webcalendar as includeSome more info on this:
I was poking around in the code, and discovered that the WordPress settings don’t allow global variables to be modified. It turns Register Globals off in wp-settings.phpThis poses a problem, as WebCalendar uses globals to define most of it’s settings. That’s why webcalendar works fine as a stand-alone item, but doesn’t work when included in a wordpress page (using a local path, not a http:// URL)
I haven’t had time to have a decent tinker with it, but I included some of webcalendar’s files up the top of wp-settings.php (above the unregister_GLOBALS function) instead of in upcoming.php, and got a bit of progress. I then started running into path issues due to my setup. I’m going to have a bit more of a play with it soon.
Once I figure out a workaround i’ll post it here. Might take a while as i’m a complete newbie to PHP. I’ve done ASP before, but am now looking leave the dark side and learn PHP. 🙂
Forum: Plugins
In reply to: Webcalendar as includeI’ve been having nothing but problems with trying to get webcalendar’s upcoming.php working as an include in wordpress. I keep getting an error “dbi_connect(): db_type not defined”. The upcoming.php file works fine when accessed individually. I’ve tried changing include paths to absolute, and even tried copying the entire webcalendar folder structure into the same root as the wordpress stuff, but no luck.
Would the global variables need to be declared in a wordpress php file?
This is running on a Windows 2003 server with PHP & MySQL installed (unfortunately the only option that I have to work with)