Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > Integration > PHP-Nuke Integration

PHP-Nuke Integration Information about integrating the calendar with the PHP-Nuke Content Management System.

Closed Thread
 
Thread Tools Search this Thread Display Modes

calendar breaks content display in PHP-Nuke 7.8
Old 07-14-2006, 11:03 PM   #1
mishspring
Calendar User
 
mishspring is offline
Join Date: Jul 2006
Posts: 2
Question calendar breaks content display in PHP-Nuke 7.8

Greetings,

I pulled down and installed version 7.8 of PHP-Nuke on a Fedora FC4 system. I downloaded the demo of the EasyPHPCalendar and installed that. Works great.

I attempted to integrate the two as per instructions in thread # 2273 on this board, and no matter what I do, if the calendar block is in the left nav, the main content disappears. Remove the calendar, main content comes right back.

The content behavior is very strange. For example, the entire homepage (all news bits) is empty when the calendar is displayed. On other pages such as FAQ and Encyclopedia, the framework of the page is shown, but not the content.

Moreover, the << , -=- and >> links at the bottom of the calendar take me to URLs of the form /modules.php?mo=07&yr=2006 and I get errors to the effect of "Sorry, this Module isn't active".

My includes/custom_files/custom_head.php looks like this:

Code:
 
<?php
   $CSS=1; require ("calendar/calendar.php");
?>
My blocks/block-Calendar.php looks like this:

Code:
 
<?php
if (eregi("block-Calendar.php", $_SERVER['PHP_SELF'])) {
   Header("Location: index.php");
   die();
}
ob_start();
// comment out the next two lines for content to reappear
require ("calendar/calendar.php");
$content=ob_get_clean();
?>
If I comment out the last two lines of this file my content displays fine but obviously the calendar disappears.

I would like to buy the calendar but only if it doesn't kill the rest of my site.

Any help would be greatly appreciated.

Thank you!

-Mike
Attached Thumbnails
Click image for larger version

Name:	working_fine.jpg
Views:	585
Size:	11.9 KB
ID:	152   Click image for larger version

Name:	broken_now.jpg
Views:	639
Size:	11.6 KB
ID:	153   Click image for larger version

Name:	faq_working.jpg
Views:	614
Size:	11.6 KB
ID:	154   Click image for larger version

Name:	faq_broken.jpg
Views:	612
Size:	15.5 KB
ID:	155  
 

Old 07-15-2006, 03:44 AM   #2
nomar05
Calendar User
 
nomar05 is offline
Join Date: Jul 2006
Posts: 7
Default

I think this is the answer for your lost content in your blocks.

http://www.easyphpcalendar.com/forum...36&postcount=9
 

Old 07-15-2006, 03:49 AM   #3
nomar05
Calendar User
 
nomar05 is offline
Join Date: Jul 2006
Posts: 7
Default

I also think this is the answer for your navigation issue.

http://www.easyphpcalendar.com/forum...8&postcount=15

Hope you guys don't mind me answering. I just figured since I had both of these problems with my integration, that I would point him in the direction that helped me fix them.

Last edited by nomar05; 07-15-2006 at 04:08 AM.
 

Everything works except Sticky now
Old 07-15-2006, 06:00 PM   #4
mishspring
Calendar User
 
mishspring is offline
Join Date: Jul 2006
Posts: 2
Smile Everything works except Sticky now

Greetings,

Thank you - everything you suggested made things work great.

The only problem is, when I enable sticky from the pop-ups section of the administrative interface, the only thing that changes is that the pop-up box has an X in the top-right corner. It still floats with mouse movement, so I can't mouse over the pop-up box or the X that is on it. It disappears when I mouse out of the date in question.

I have tried varying the offsets, to no effect.

on-click pop-ups work fine though, as does the combination of on-click and mouse-over.

It's just the stickiness that isn't working right.

Any ideas on that?

Thanks again for your help,

Mike
 

Old 07-15-2006, 07:35 PM   #5
nomar05
Calendar User
 
nomar05 is offline
Join Date: Jul 2006
Posts: 7
Default

I have the same problem. Just noticed it, cause I personally like it not set. Sticky works on demo.php, but not in the module or block. I don't see any other references to this in the forums, but maybe the real smart guys know how to fix it.

Sorry I couldn't help.

Last edited by nomar05; 07-15-2006 at 07:59 PM.
 

Old 07-16-2006, 08:47 AM   #6
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

I don't see where you included the $OL section that is required to make the overLib work properly. Here's your block-Calendar.php with the required line.

PHP Code:
<?php
if (eregi("block-Calendar.php"$_SERVER['PHP_SELF'])) {
   
Header("Location: index.php");
   die();
}
ob_start();
$OL=1; require ("calendar/calendar.php");
require (
"calendar/calendar.php");
$content=ob_get_clean();
?>
If that doesn't fix it, could you provide us with a URL to your installation?
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 07-16-2006, 11:40 AM   #7
nomar05
Calendar User
 
nomar05 is offline
Join Date: Jul 2006
Posts: 7
Default

I think he is using the block you posted in another post.

PHP Code:
<?php

if (eregi("block-Calendar.php"$_SERVER['PHP_SELF'])) {
     
Header("Location: index.php");
     die();
}

ob_start();

if (!
eregi("modules.php"$_SERVER['PHP_SELF'])) { 
$thisFile="index.php";
}

//required if you're going to use overLib
$OL=1; require ("calendar/calendar.php");

//makes the whole calendar point to a TOC link
//unset($epcAltLink); $epcAltLink="modules.php?name=Calendar";

//the line that shows the calendar 
require ("calendar/calendar.php");

$content ob_get_clean();
?>
I'm using this one.
PHP Code:
 <?php

if (eregi("block-Calendar.php"$_SERVER['PHP_SELF'])) {
     
Header("Location: index.php");
     die();
}

ob_start();

if (!
eregi("modules.php"$_SERVER['PHP_SELF'])) { 
$thisFile="index.php";
}
//$OL=1; require ("escal/escal/calendar.php");
?>
<script type="text/JavaScript">
var ol_width=200;
var ol_delay=100;
var ol_fgcolor="#FFFFFF";
var ol_bgcolor="#AAAAAA";
var ol_offsetx=10;
var ol_offsety=10;
var ol_border=1;
var ol_vauto=1;
</script>
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
<script type="text/JavaScript" src="/escal/escal/overLIB/overlib_mini.js"><!-- overLIB (c) Erik Bosrup --></script>
<?php


//makes the whole calendar point to a TOC link
//unset($epcAltLink); $epcAltLink="modules.php?name=ESCalendar";

//the line that shows the calendar 
require ("escal/escal/calendar.php");

$content ob_get_clean();
?>

Here is my URL if you want to check it out.


http://thehowardfamily.info/index.php

Last edited by nomar05; 07-16-2006 at 12:14 PM.
 

Old 07-17-2006, 12:21 PM   #8
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

nomar05: Look at the first post, he posted his block-Calendar.php. As for yours, since you have the output of $OL hard coded, it is normal that the sticky function does not work. You'd have to re-generate the output of $OL with the sticky feature enabled and use that in your block-Calendar.php instead. That's why you should try to keep it auto-generated.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 
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
Can't get calendar to display full calendar view topgun21 General Support 11 09-15-2006 09:10 AM
Adding Easy PHP Calendar to Content Management System thelastmuskateer Customizations (Themes / Templates) 1 06-20-2006 08:10 AM
Using CVS and Easy PHP Calendar? nfrobertson Installation / Upgrade Questions 3 06-04-2006 03:44 PM
Calendar display after using navigation hercomserv Installation / Upgrade Questions 2 04-04-2006 07:26 PM



All times are GMT -4. The time now is 08:43 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 |