View Full Version : 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!
ve9gra
01-13-2008, 09:43 PM
Online Documentation (http://docs.easyphpcalendar.com/) - Integration - Normal Mode using AJAX (http://docs.easyphpcalendar.com/source/Integration/AJAXNormal.htm)
Edit /includes/custom_files/custom_head.php and add the following just before the ?>
$EPCAJAX=1; require("calendar/calendar.php");
Edit /blocks/block-Calendar.php and at the line 20-21 replace this:
//the line that shows the calendar
require ("calendar/calendar.php");
for this:
//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.
Thanks for the quick reply!
Just needed to tweak the syntax a bit to get it to work.
//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!
ve9gra
01-14-2008, 03:25 PM
Absolutely correct. My previous post has been fixed.
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.