View Full Version : Wordpress Magazine theme integration
mrbimble
06-10-2008, 11:30 PM
I have a wordpress magazine theme that I'm trying to integrate a calendar with. http://mrbimble.com/WordPress I have normal mode displaying within the page but can't seem to get the roll over function t appear or a list display to appear below. The calendar files have been placed in my WordPress/wp-content folder. Any suggestions to resolve my issue would be appreciated.
ve9gra
06-11-2008, 08:26 AM
I can't seem to be able to resolve your host, so I can't tell exactly what's going on, but make sure that you have all of the important bits where they should be. You'll have to add the $CSS line inside of the <head> tag, and then add the $OL line right after the <body> tag.
mrbimble
06-11-2008, 10:14 AM
The template uses a header template and I have these lines in the header:
<?php $CSS=1; require("wp-content/calendar/calendar.php"); ?>
</head>
<body<?php if ( is_home() ) { ?> id="home"<?php } ?>>
<?php $OL=1; require("wp-content/calendar/calendar.php"); ?>
But reference to the calling the calendar in in the page template. I'm in the process of switching my web site from html pages to WordPress and I have the calendar working fine at http://www.mrbimble.com/calendar.php As the new WordPress version is using the same database is this likely to cause a problem?
ve9gra
06-11-2008, 10:55 AM
I think I got it, it seems you're still using the paths of your old installation... I could only have a very quick look because I'm in a meeting... ;)
Check your $urlPath and $serverPath in /calendar/calendar.php
mrbimble
06-11-2008, 11:21 AM
I edited the file to this:
// SERVER (ROOT) PATH TO CALENDAR DIRECTORY
// This address should start and end with a "/" unless this is on a windows server where it will start with a drive letter;
if (!isset($serverPath) || $serverPath!="../" || $getPaths==1) {
$serverPath="/home/users/web/b2368/ipw.mrbimble/public_html/WordPress/wp-content/calendar/";
}
// URL PATH TO CALENDAR DIRECTORY
// This address should start and end with a "/". *
// It is usually the name of the directory this file is in (Example: "/escal/");
// * If you enter the full URL starting with "http://", this address will not be verified by the calendar script!
$urlPath="/WordPress/wp-content/calendar/";
}
But it doesn't seem to have made any difference.
mrbimble
06-11-2008, 01:31 PM
Further to my last post, it did make a difference, the calendar format I really wanted was the text mode and this is now displayed. Dates that have events though are only displaying a color patch and if I roll the cursor over them no data is displayed, so I'm not linking to the database for some reason.
ve9gra
06-11-2008, 10:16 PM
It still seems to be confused about which installation it's using. Looking at the generated code, I'm still seeing the path /calendar/, instead of /WordPress/wp-content/calendar/.
mrbimble
06-11-2008, 11:11 PM
How are you seeing the code? Could there be another link that I need to change?
mrbimble
06-11-2008, 11:43 PM
You're right about it being confused. I've changed all the references in the original html files to "WordPress/wp-content/..." and the calendar is still reading from the original location. If I change the folder name of the original files both versions of my calendar stop working. I don't see how I could remove the original version andinstall within WordPress.
ve9gra
06-12-2008, 07:13 AM
The calendar uses the paths that are defined in /calendar/calendar.php. The "/calendar/" being the path to your installation. If you've got your installation in "/WordPress/wp-content/calendar/", then edit the calendar.php in that folder.
I don't know if WP has a cache, but you should clear it if it does.
mrbimble
06-12-2008, 01:51 PM
I'm make some progress, I have the calendar display the event details in a window when you click on a date with an entry. But in the main display the date still shows just a color block and no text.
ve9gra
06-12-2008, 07:03 PM
Tell me, how did you go about to integrate this? Did you simply put the code in the page, or are you using a custom page template?
If you are willing to give me access to your WP backend (admin level), contact me using the link in my signature. I'll take a look and see if anything pops up.
mrbimble
06-12-2008, 07:19 PM
Gervais, thanks for the offer to help, I've posted details as requested.
mrbimble
06-12-2008, 07:25 PM
I should have mentioned that I have followed a post on this forum and have put the calendar files into a folder easycalendar off Wordpress. The page display is a WP page that used a template that contains the EPC code. The template is called Schedule.
ve9gra
06-12-2008, 07:53 PM
I saw that. As I said in my email, I was able to update the $urlPath and $serverPath, but still can't understand why there is no output for events. I tried the regular calendar mode and that one won't generate any popups at all.
This is puzzling me.
ve9gra
06-12-2008, 08:22 PM
Ok, there's definitely something going on with your actual install.. not with WordPress. Everything you did in WP is perfect. But right now, you can't go to the Event Manager page in the Setup Manager. And if you try to go to the Event Manager itself, you're missing the event list below.
I saw that you're late one rev, so you should consider updating. Perhaps a fresh install might fix those issues. Also, make sure that you're using the same database as your WordPress install. That's the only reliable way of integrating the calendar in any kind of CMS.
mrbimble
06-12-2008, 10:55 PM
Gervais,
I took your advice and upgraded. Everything worked straight away, but then I think I discovered what the 'real' problem was. In the setup manager if I set 'Convert Links to HTML' all the entries disappear just like before. Set it to no and they're back. My original install had this parameter set as yes, so I think that was the issue, we couldn't resolve.
Thank you for your perseverance and support though, it was very much appreciated!
:clap:
ve9gra
06-13-2008, 06:55 AM
Strange... WP must have its own class.InputFilter or something.
Glad you got it figured out!
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.