
Originally Posted by
DivaVocals
Okay confirmed my event sidebox doesn't work.. It looks like it is trying to display the whole site homepage inside the sidebox.. Remind me why again this sidebox is using an iframe to display the events??[/URL]
I see why iframes is being used...it is a quick ajax substitute. It works fine for me, but not for you. I went to your page and saw why...it is not pulling the main page in, it is pulling the calendar table for the current month and year, but it is pulling it in with all of the headers, footers and side boxes attached. Again, I am very new to Zen Carts, but based on what I read here (http://www.zen-cart.com/showthread.p...o-show-EZpages) you may be able to set the page "index.php?main_page=events_calendar_include" up in ezpages and then remove the header/footer/etc. through the ezpage settings. You can also create a separate main page that includes only the center column (require($body_code);) and then add it with ezpages and again use the settings to remove the header/footer/etc.
--------------------------
Just thinking though...hold up...
...did you add the required code to includes/templates/your_template/common/tpl_main_page.php?
The following is required at the beginning of the file:
Code:
<?php
if (isset($_GET['eventmode']) && $_GET['eventmode'] == 'eventframe') {
$_SESSION['navigation']->remove_current_page();
require($body_code);
} else {
?>
and this is required at the end of the file:
You would need to do this for all of your templates that use the event calendar.
If you added this and it still isn't working please send me a copy of the above file so I can see if some other variable is being used (or possibly none at all).
Rus