PDA

View Full Version : calendar breaks content display in PHP-Nuke 7.8


mishspring
07-14-2006, 11:03 PM
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:


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


My blocks/block-Calendar.php looks like this:


<?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. :sad:

Any help would be greatly appreciated.

Thank you!

-Mike

nomar05
07-15-2006, 03:44 AM
I think this is the answer for your lost content in your blocks.

http://www.easyphpcalendar.com/forums/showpost.php?p=16636&postcount=9

nomar05
07-15-2006, 03:49 AM
I also think this is the answer for your navigation issue.

http://www.easyphpcalendar.com/forums/showpost.php?p=12458&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.

mishspring
07-15-2006, 06:00 PM
Greetings,

:clap: 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

nomar05
07-15-2006, 07:35 PM
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. :teeth_smi

Sorry I couldn't help.

ve9gra
07-16-2006, 08:47 AM
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
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?

nomar05
07-16-2006, 11:40 AM
I think he is using the block you posted in another post.

<?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

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 (http://thehowardfamily.info/index.php)

ve9gra
07-17-2006, 12:21 PM
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.