Did anyone ever find a solution to the back button issue? Everything is working great for me except that the back buttons often go to the monthly calendar on the main page now.
Did anyone ever find a solution to the back button issue? Everything is working great for me except that the back buttons often go to the monthly calendar on the main page now.
Last edited by cayenne17; 23 Dec 2010 at 02:54 AM.
I tend to disable back_buttons in my store that do not work properly, including those in event_calendar, which thus forces the user to use their browser back_button.
However, with fixes to back_buttons in several other mods released over the last month or so, I may take another look at this problem.
But please dont hold your breath waiting for an answer.
Thanks for the reply. I don't think I explained the problem well enough though. It isn't an issue with the back buttons in the calender mod itself but the way the back buttons on other pages are behaving now that I have installed the calendar mod. Someone else described the same problem and it seems to be some kind of issue with how the navigation history is built. For instance, if I enter the shopping cart by adding a product and then click the Continue Shopping button, it correctly goes back to the product description page, but if I click the shopping cart link from the main navigation or from the side box and then click on the Continue Shopping button, it now goes back to a page that shows the contents on the events calendar sidebox on the main page and no other content. In this case, the URL being passed to the ContinueShopping button by the navigationHistory object is <mysite>/index.php?main_page=events_calendar_include&_month=&_year=&eventmode=eventframe so that seems to be the problem. This probelm is also affecting the Back buttons on the Contact Us and Privacy Notice pages and probably others around the site. I know that I could disable all back buttons but I would rather fix the issue. I am going to look at it today but thought I would see if anyone else had already fixed it first.
I was having an issue with how the dates are displayed although it isn't exactly the same problem that you are describing. My dates were all shifted up by one event. So the first event had the second event's date, the second event had the third event's date etc. and the last two events had the same date. I fixed this by changing when the events array increments in the file /modules/events_calendar_listing.php.
You need to change this code:
to this code:PHP Code:while (!$events->EOF)
{
$row++;
$list_box_contents[$row][] = array('align' => 'left',
'params' => 'class="event_description"',
'text' => '<a href="index.php?main_page='
. FILENAME_EVENTS_CALENDAR . '&select_event=' . $events->fields['event_id'] . '">' . $events->fields['title'] . '</a>');
$events->MoveNext();
list($year, $month, $day) = split ( '[/.-]', $events->fields['start_date']);
$list_box_contents[$row][] = array( 'align' => 'center',
'params' => 'class="event_description"',
'text' => date("F j, Y", mktime(0, 0, 0, $month, $day, $year)));
$endDate = '-';
if(isset($events->fields['end_date']) && trim($events->fields['end_date']) != '')
{
list($year, $month, $day) = split ('[/.-]', $events->fields['end_date']);
$endDate = date("F j, Y", mktime(0, 0, 0, $month, $day, $year));
}
$list_box_contents[$row][] = array('align' => 'center',
'params' => 'class="event_description"',
'text' => $endDate);
}
PHP Code:while (!$events->EOF)
{
$row++;
$list_box_contents[$row][] = array('align' => 'left',
'params'=> 'class="event_description"',
'text' => '<a href="index.php?main_page='
. FILENAME_EVENTS_CALENDAR . '&select_event='
. $events->fields['event_id'] . '">'
. $events->fields['title'] . '</a>');
list($year, $month, $day) = split ( '[/.-]', $events->fields['start_date']);
$list_box_contents[$row][] = array( 'align' => 'center',
'params' => 'class="event_description"',
'text' => date("F j, Y", mktime(0, 0, 0, $month, $day, $year)));
$endDate = '-';
if(isset($events->fields['end_date']) && trim($events->fields['end_date']) != '')
{
list($year, $month, $day) = split ('[/.-]', $events->fields['end_date']);
$endDate = date("F j, Y", mktime(0, 0, 0, $month, $day, $year));
}
$list_box_contents[$row][] = array('align' => 'center',
'params' => 'class="event_description"',
'text' => $endDate);
$events->MoveNext();
}
If you are using the reformatted files from post #57, then the code that needs to be resplaced will be on lines 89-111.
Hope that helps.
I suspect the problem lies with the iframe. I have tried so many times to replace same with a div structure and have all but given up as coding is not my forte.
I already had your revised code in place.If you are using the reformatted files from post #57, then the code that needs to be resplaced will be on lines 89-111.
Yes, the problem was related to the iframe. It turned out to be a really easy fix. I replaced the code that the readme has us insert at the top of includes/templates/your_template/common/tpl_main_page.php with the following:
That way the call by the iframe to the event calendar is removed from the navigation history. It seems to be working well.PHP Code:<?php
if (isset($_GET['eventmode']) && $_GET['eventmode'] == 'eventframe') {
$_SESSION['navigation']->remove_current_page();
require($body_code);
}else{
?>
I also attempted to replace the iframe with a div structure and was successful except that you can no longer browse through the months in the sidebox which I think is a really nice feature so I'm going to leave it as the iframe for now.
The other code I posted was regarding the date problem someone else had asked for help with and was not related to the back button issue.I already had your revised code in place..
I went to edit an event via Event Manager and discovered that the event image I had input for an event was removed regardless of whether the "No Image" checkbox was ticked or not. This checkbox only appears when an event image had been input.
Lines 348-353 in admin/events_manager.php (v1.02) reads:
While I can live with this problem, it will become a pain to keep track of the events images as I roll one year's events to the next.Code:<td class="main"><?php echo zen_draw_file_field('event_image') . zen_draw_hidden_field('event_previous_image', (($HTTP_POST_VARS['event_image']) ? $HTTP_POST_VARS['event_image'] : $events->fields['event_image'])) .'</td><td class="main">'. (($HTTP_POST_VARS['event_image']) ? $HTTP_POST_VARS['event_image'] : $events->fields['event_image']) .'  </td>'; if ($HTTP_POST_VARS['event_image'] || $events->fields['event_image']) { $event_image = ($HTTP_POST_VARS['event_image'] ? $HTTP_POST_VARS['event_image'] : $events->fields['event_image']); echo '<td class="main">'. zen_image(DIR_WS_CATALOG_IMAGES .'events_images/' . $event_image , $HTTP_POST_VARS['title'][$language_id], 50, 50, 'align="right" hspace="2" vspace="2"') .'</td>'. '<td class="main"> '. TEXT_EVENT_NO_IMAGE .' '. zen_draw_checkbox_field('no_image', $value = '', $checked = false, $compare = '') .'</td>';
I suspect the bit highlighted in blue above is the cause but cannot work out how to fix. Help much appreciated.
In the above code, I have also boldly highlighted in red two (2) bits ("/" and ";") that I deem need fixing.
Thanks in advance.
So I've been looking through this thread ad two things stand out for me:
- What's available in the downloads is nearly three years old, seems un-stable and requires one to sift through this support thread for a bunch of tweaks and patches (and it's difficult to tell which ones are still legit or not)
- I've yet to see a GOOD example of this module working on ANYONE'S site..
Now all that said, what is the advantage of using a three year old unstable mod which requires a ton of patches over this one: http://www.zen-cart.com/index.php?ma...oducts_id=1230
Scheduled Events seems stable ad well supported.. So I assume it's the feature set between the two that makes people continue to bang their heads against the wall with this mod..
So riddle me this?? What's the difference between these two modules in terms of features..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Okay.. So I'm back.. and I've installed this thing and applied every patch that's been posted here and I cannot create events.. I click the "New Events" button and NOTHING happens.. So I'm confused how ANY can claim this mod works because I don't see it..
Hoping someone with a working version of this mod would be kind enough to bundle up their files and post them here as a zip file.. Because right now from where I stand, this thing ain't working at ALL..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.