PDA

View Full Version : PostNuke Integration


jerryhoward
01-25-2007, 11:21 AM
I've installed the calendar. I have laready looked at the thread:

http://www.easyphpcalendar.com/forums/showthread.php?t=3275&highlight=PHPNuke

Still having problems.

I have installed the database and have it working in standalone.
I am trying to integrate it into my Post nuke site. I've got is partially working:

http://www.nuusports.net/volleyball/testcal.php

The problem is that it is text only, no links, colors...etc.

I know it's the CSS is not being included.

Here's what I did. I took the demo.php and put the PostNuke Header and Footer in. Next I went into my theme and added the code:
<?php
$CSS=1; require ("calendar/calendar.php");
?>

This did not work. I also tried a different path because the template is burried in themes/<theme name>/templates directory

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

Still did not work.

I have attached the sample code.

thanks
Jerry

ve9gra
01-25-2007, 10:49 PM
That's not quite the recommended way to integrate the calendar in Postnuke...

I'm currently putting together a module and instructions for how to do it properly. Normally, this would be ready by tomorrow, but I will be performing a major upgrade of our Exchange infrastructure at work and won't be able to get back to this until later in the weekend.

I hope this is not too much of an inconvenience to you. Please post back here so that I'm reminded about this ;)

Trust me, this way will make things much easier :)

jerryhoward
01-26-2007, 09:34 AM
I did it this way because it was a quick way to see how the calendar worked in the PostNuke environment. I put "the demo code" in its own page surrounded by the PostNuke Header and Footer.

I look forward to your "module". 8-)

jerryhoward
01-29-2007, 11:37 AM
Gervais

Reminder about PostNuke integration module.

ve9gra
01-31-2007, 12:15 AM
Hi Jerry, don't worry, I haven't forgotten about it, I've just run into some snags. In order to make things easier for integration in various themes, I'm trying to make Smarty/Xanthia plugins so that the proper code can be inserted at the appropriate locations. But since Xanthia is a templating engine, it mangles some of the output, so I'm working around that at the moment. I'm also away on training for the rest of the week and actually brought my development machine along with me so that I can keep working on this.

I will let you know as soon as I have more details. Also, once the module is ready for release, it will be pinned to the top of this forum, so that everybody can find it easily and download it.

jerryhoward
02-06-2007, 08:07 PM
Reminder about module you mentioned last week.
How's it going?

Jerry

ve9gra
02-08-2007, 10:53 PM
Hi Jerry, I'm still troubleshooting why all the variables don't show up... The calendar can be put in, but the event marking is not working and the overLib variables don't get initialized either.

Still working on it :computer:

jerryhoward
02-23-2007, 01:05 AM
Touching Base. How is it coming???

Would really like to integrate it into PostNuke

thanks
Jerry

ve9gra
02-23-2007, 07:45 AM
Hi Jerry,

I've been much more busy than usual so I haven't had time to complete this. I can give you some "quick and dirty" instructions but there are issues with integrating it that way (events won't be flagged, mouseover popups won't work). But this will let you at least integrate the calendar in a block.

Create a new block in the administration area, choose "PHP Script" for the type of block, and put the following code in it.echo "<div class=\"epc\">";
$CSS=1;require("calendar/calendar.php");
$OL=1;require("calendar/calendar.php");
require("calendar/calendar.php");
echo "</div>";
I still need to figure out exactly why the code is not being outputted correctly. Please send me a message using the link in my signature, I'll leave it as unread so it acts as a constant reminder :)

jerryhoward
02-23-2007, 09:06 AM
Thanks. I will give that a try.

Not being familiar with the code, I got as far as you did.
I tried going in and tried getting the CSS and other necessary stuff into the header portion.

Sorry. I thought this would be simple test to ensure it worked.

thanks
Jerry

ve9gra
02-23-2007, 02:37 PM
I did manage to put the CSS in the header and the OL towards the top of the code, but I don't have instructions written up for how to do it yet...

I always used to do it exactly like I posted, but now it seems that something either in PHP or PostNuke has changed and doesn't output the code to the HTML anymore.

If you're not going to do modifications to your Categories, I could guide you in hardcoding the required sections directly. This would at least get you going.

ve9gra
02-24-2007, 06:26 PM
Solved! I was looking for something really complicated, so I completely missed the obvious.

The EPC-PostNuke module will be stickied to this forum.

Let me know how you make out with the instructions.

jerryhoward
06-08-2007, 03:03 PM
Gervais


you said you solved the problem. I don't recall getting the information. Do I need to download the latest, or is there something else.

thanks
Jerry Howard

ve9gra
06-08-2007, 05:43 PM
Hi Jerry, I tried to find the email that I would've kept, but was unable to find anything.

The new module (version 1.0) has been posted to the repository (stickied thread at the top of this forum). It has new instructions and pnRender functions.

Please download the new version and follow the integration instructions.

Let me know if you run into problems.