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

Problem combining Easy Php Cal with Wordpress
Old 10-25-2005, 05:50 AM   #1
empiucci
Calendar User
 
empiucci is offline
Join Date: Oct 2005
Posts: 11
Default Problem combining Easy Php Cal with Wordpress

Hi.

I´m trying to get my calendar to show in a wordpress template. And it doesn´t seem to work. www.prylfreak.com/kalender

It works properly: www.prylfreak.com/calendar

But as seen, when I implement it into a wordpress template there is a database error.

Any suggestions on how to solve this???
 

Old 10-25-2005, 06:29 AM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

That is because you've isolated the calendar in a seperate database from the rest of your site. Since you're using a content manager, it (the CMS) assumes that you have everything in 1 database and only establishes the database connection once at the begining of the script. Since the calendar is encapsulated in itself, it creates its own connection to its database. If the two connections aren't the same, then the CMS will try to use the connection that the calendar established... This is proved by this little error message...

Quote:
Table 'pfreak_calendar.wp_posts' doesn't exist
pfreak_calendar is your calendar's database, and the CMS is trying to find wp_posts in that database.

To fix it, just move (or recreate) the calendar's table in your CMS' database.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

It works great!
Old 10-25-2005, 11:00 AM   #3
empiucci
Calendar User
 
empiucci is offline
Join Date: Oct 2005
Posts: 11
Default It works great!

Thanks for the help! Now it works, just a couple of other stuff I need to fix. But i will try to fix them before I post more questions. I´m not that familiar with Php and databases..
 

Ok, now I do have a new problem
Old 10-25-2005, 11:22 AM   #4
empiucci
Calendar User
 
empiucci is offline
Join Date: Oct 2005
Posts: 11
Default Ok, now I do have a new problem

Ok, now I do have a new problem. I have tried to set the calendar in blog mode. but when I click on a specific date the browser automaticly redirects to my main page instead of showing the content for that date. Any suggestions??

URL: http://prylfreak.com/kalender

(A great forum by the way, splendid and fast support. Thumbs upp! )
 

Old 10-25-2005, 01:59 PM   #5
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Are you using relative paths to "require" the calendar in your page? (You should.)
__________________
-- Brian

Questions?

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

Yes I do
Old 10-25-2005, 05:43 PM   #6
empiucci
Calendar User
 
empiucci is offline
Join Date: Oct 2005
Posts: 11
Default Yes I do

Yes I use relative path, the following code:

<?php
$EPCBLOG=1;
require ("calendar/calendar.php");
?>

<?php
$EPCBLOG=2;
$template="blog.php";
$DF = "l, F j, Y";
require ("calendar/calendar.php");
?>
 
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
Easy PHP Calendar - Buy It! wshinds In our client's own words... 0 10-04-2005 06:00 PM
PHP Errors anthony General Support 2 02-07-2005 01:10 PM
using easy cal for daily scheduling? oidsman General 1 01-02-2005 07:38 PM
{Fixed} Problem adding an event ucb General Support 23 11-19-2003 06:31 PM



All times are GMT -4. The time now is 04:37 AM.


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 |