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

PHP-Nuke Block + Ajax
Old 01-13-2008, 08:45 PM   #1
m5l5
Calendar User
 
m5l5 is offline
Join Date: Jan 2008
Posts: 8
Default PHP-Nuke Block + Ajax

I was hoping that someone could help me activate the Ajax navigation on the PHP-Nuke Block so that the page does not refresh when you change months.

I found some articles on this forum, but couldn't quite get it to work.

I know that this is beta only, but I would appreciate any help.

Thank you!
 

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

Online Documentation - Integration - Normal Mode using AJAX

Edit /includes/custom_files/custom_head.php and add the following just before the ?>
PHP Code:
$EPCAJAX=1; require("calendar/calendar.php"); 
Edit /blocks/block-Calendar.php and at the line 20-21 replace this:
PHP Code:
//the line that shows the calendar 
require ("calendar/calendar.php"); 
for this:
PHP Code:
//the line that shows the calendar 
echo "<div id=\"EPCcalendar\" align=\"center\">";
$EPCajax=1; require("calendar/calendar.php");
echo 
"</div>"
Hasn't been tested, but it should work.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.

Last edited by ve9gra; 01-14-2008 at 03:24 PM. Reason: Fixing the code
 

Old 01-14-2008, 03:23 AM   #3
m5l5
Calendar User
 
m5l5 is offline
Join Date: Jan 2008
Posts: 8
Default

Thanks for the quick reply!

Just needed to tweak the syntax a bit to get it to work.

PHP Code:
//the line that shows the calendar 
echo "<div id=\"EPCcalendar\" align=\"center\">";
$EPCajax=1; require("calendar/calendar.php");
echo 
"</div>"
Great product and fantastic support!
 

Old 01-14-2008, 03:25 PM   #4
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Absolutely correct. My previous post has been fixed.
__________________
-- 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
Mouse Over Not Working in PHP Nuke Module dhodges PHP-Nuke Integration 7 09-26-2007 10:17 PM
Please help! PHP Nuke Install takeallmichael PHP-Nuke Integration 3 09-25-2007 06:45 AM
php nuke installation drlife General 3 10-17-2005 05:25 PM
Listing Module As Nuke Block ddj0891 General Support 1 02-10-2005 06:02 AM



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