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

EPC within a DIV Container
Old 01-26-2012, 01:31 PM   #1
treesom
Calendar User
 
treesom is offline
Join Date: Jan 2012
Posts: 3
Default EPC within a DIV Container

Hi,

I got the PHP Nuke module for EPC and the Block etc, but I don't want the calendar shown in a small block, i'd like to insert it at the top of my site, where a flash banner once was.

I've tried inserting the code from the block-calendar.php into the functions.php for my theme, but can't seem to get it to work.

I want to insert the calendar within a:
<div class="block">
<div id="container"></div>

Any help appreciated.

Thanks,
Tree
 

Old 01-26-2012, 01:39 PM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Editing function.php is not the right way. You'll need to edit your theme to allow for a block to be placed where you want to, and then add the calendar block to that.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 01-26-2012, 01:44 PM   #3
treesom
Calendar User
 
treesom is offline
Join Date: Jan 2012
Posts: 3
Default

Ok, so if I take this code:

Code:
<?php

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

ob_start();
echo "<table width=\"100%\"><tr><td><div align=\"center\">";
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");
echo "</div></td></tr></table>";
$content = ob_get_clean();
?>
And place that in my theme.php where I want the calendar to be placed?

Do I include the <?php> tags?
 

Old 01-26-2012, 07:07 PM   #4
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

No no no... Change your theme to add a spot to add a block.. then just add the block.

But first, read the rest of this forum... lots of info available on how to do a proper integration.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 01-26-2012, 07:42 PM   #5
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

I just re-read, and re-examined the module that's sticky'd...

If you already have a spot for the banner, can you not just place the block in that space? It's been such a long time since I've used PHP-Nuke. I seem to remember that you could reposition your blocks without messing with any code, as long as your theme allowed it.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 01-27-2012, 06:57 AM   #6
treesom
Calendar User
 
treesom is offline
Join Date: Jan 2012
Posts: 3
Default

I've tried taking the PHP code from the block and placed it in the space for the banner, but I just get the following error on my site:

Sorry, too many page loads in so little time!
Not sure what to do, as I can't seem to get this to work.
 
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
Server slow-down when using EPC C2yoNVdx General 12 10-25-2011 10:04 AM
OSX Snow Leopard Server Breaks EPC Asta Installation / Upgrade Questions 1 12-30-2009 11:15 AM
Permalinks messing up EPC navigation north Wordpress 5 10-28-2009 09:29 PM
Integrating EPC into a Wordpress sidebar Mad Dog Wordpress 31 10-03-2008 05:03 PM
EPC with Exponent CMS cpw General Support 5 08-01-2006 06:05 PM



All times are GMT -4. The time now is 04:04 PM.


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 |