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");
?>
 

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

What is the full URL to the page:

http://www.prylfreak.com/kalender/?????

Try setting the $thisFile variable to the name of the page:

$thisFile="PageName.php";
__________________
-- Brian

Questions?

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

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

The real URL is http://prylfreak.com/index.php?pagename=kalender with the /kalender just being a redirector.

Brian, there is an issue with the blog mode though... it will wipe out any GET variables that are already there. The next and previous month navigation arrows make sure to take care of that, but when using blog, it replaces everything with $ev, $mo and $yr. If you just reuse the same logic that was used for the navigation arrows, that should fix the problem.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 10-26-2005, 08:56 AM   #9
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Thanks. I'll look into it...
__________________
-- Brian

Questions?

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

Ok, I´m confused
Old 10-27-2005, 11:35 AM   #10
empiucci
Calendar User
 
empiucci is offline
Join Date: Oct 2005
Posts: 11
Default Ok, I´m confused

Hi again Brian and Ve9gra. I feel stupid here.. But im not familiar with $thisFile variable. Where should I search for it?

Is this a problem you think I will be able to fix? Or should I put the calendar in a pop-up or something so it wont interfere with Wordpress? (which certainly will interfere with the design, so it would be great if I could fix this in some way).

I appreciate the help and look forward for the next post in this thread..
 

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

I should be releasing a new version before the end of the month. Please try this new version and see if it helps.
__________________
-- Brian

Questions?

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

Old 10-27-2005, 04:55 PM   #12
Diddle
Calendar User
 
Diddle is offline
Join Date: Oct 2005
Posts: 6
Default

Brian - by "before the end of the month", do you mean "before November"? It's the 27th of Oct. today. I'm asking because I'm in a trial (and I'm loving this script!) but I may wait to buy if an update is coming.

I've figured out how to plunk the calendar down in the Sidebar for WordPress but was curious as to how others linked the main (larger) calendar pages within WP?

Also, anoyone having troubles with the pop-up mouseover window? Mine seems to be at the middle-bottom of my page even though the pop-up settings are for 10px. Ideas?
 

Old 10-27-2005, 05:11 PM   #13
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

There should be a release by the end of October.

I'm not too familiar with WP. Hopefully someone will be able to help with those questions.
__________________
-- Brian

Questions?

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

Old 10-27-2005, 05:18 PM   #14
Diddle
Calendar User
 
Diddle is offline
Join Date: Oct 2005
Posts: 6
Default

Cheers Brian - looking forward to the release and I'll keep poking around for solutions.
 

Old 11-14-2005, 01:47 PM   #15
Diddle
Calendar User
 
Diddle is offline
Join Date: Oct 2005
Posts: 6
Default

Got the new version, bought a license - everything is working great.

Well, almost everything. I'm posting this within the Wordpress thread because it might have something to do with that.

The pop-up window (on hover) is WAY off where it should be. I've tried messing with both the offset and fixed positions but it seems to float a few hundred pixels away regardless.

Any tips?

The calendar can be seen at http://www.northshorescouts.ca

Tx!
 

Old 11-14-2005, 02:40 PM   #16
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Some variables seem to be missing from the page...

Try editing the calendar.php file. Look for:

if (isset($ol_offsetx)) echo " var ol_offsetx=$ol_offsetx;\n";
if (isset($ol_offsety)) echo " var ol_offsety=$ol_offsety;\n";

Replace with:

echo " var ol_offsetx=8;\n";
echo " var ol_offsety=8;\n";
__________________
-- Brian

Questions?

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

Old 01-03-2006, 04:04 PM   #17
Diddle
Calendar User
 
Diddle is offline
Join Date: Oct 2005
Posts: 6
Default

Changed script as indicated, but the box still floats waaay down to the right.
 

Old 01-03-2006, 04:34 PM   #18
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

You may have other javascript on the page that is overriding these settings. Does it do this on the demo.php page? If not, there is a comflict with another script on the page.
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 
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 10:53 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 |