Forums / All Other Contributions/Addons / Event Calendar v3

Event Calendar v3

Locked

Views: 68,123

Results 141 to 160 of 500
This thread is locked. New replies are disabled.
31 Mar 2010, 1:53 AM
#141
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Event Calendar v3

I spent 8 hours yesterday trying to solve the problem yesterday. I used Firefox Firebug to show me the behind the scenes look at the calendar. One thing I noticed is that the calendar iframe calls the entire website, which having the calendar embedded in it , calls the entire website, which calls the entire website ad infin itum. Sort of looking at a TV with TV camers. You keep getting more and more and more images of the same thing, only smaller. This explains an earlier post about Crafty Syntax Live Help. I noticed that the site with the calendar was having exponentail page view counts, now I understand why. For some reason, on my site the entire page is not loading in the sidebox, but I did read in this thread where others were having that problem.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

31 Mar 2010, 11:13 AM
#142
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,018
Plugin Contributions:
2

Re: Event Calendar v3

I wish to replace the iframe altogether with a div, and convert the calendar month view to a rolling month grid of days by weeks, but the code completely bamboozles me.

5 Apr 2010, 1:54 PM
#143
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Event Calendar v3

richardr:

fixed all my problems, great post! thanks for the support!!

No it di not fix your problems. I clicked on your weblink and your calendar does not work.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

5 Apr 2010, 5:27 PM
#144
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Event Calendar v3

aenimic:

Thanks for this help but I am facing this problem. The sidebox that should display the calendar is now displaying the homepage. Why is this happening?! PLEASE HELP!

I have been troubleshooting that fact for myself for days. Turns out that the README file makes an additional code to the tpl_main_page.php file located in templates/yourtemplate/common/

So now there is no more home page reloading in the calendar box. One small step......

But it is still not running properly.

Perserverance.:clap:

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

5 Apr 2010, 6:58 PM
#145
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Event Calendar v3

Well looks like everything is working fine now.

attached is the zip file with only 3 changes:

1: replaced calendar.php per post #57
2: replaced events_calendar_listing.php per post #57
3: Added tpl_main_page.php to templates/mytemplate/common/ and added the code as directed in the readme file.

Seems to work fine now. Escort Service

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

8 Apr 2010, 6:23 PM
#146
rgoetz avatar

rgoetz

New Zenner

Join Date:
Aug 2006
Posts:
36
Plugin Contributions:
0

Re: Event Calendar v3

So. I have the same problem - that it is not providing the correct year when clicked in the year view. How did you fix the parsing issue?

If I type it in - it comes up correctly, but otherwise it is stuck in 2008. Rhonda

8 Apr 2010, 10:12 PM
#147
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Event Calendar v3

Do what the Readme file tells you to do!

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

16 Apr 2010, 9:47 AM
#148
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,018
Plugin Contributions:
2

Re: Event Calendar v3

Pixelpadre fix:

  1. \includes\templates\YourTemplate\common\tpl_main_page.php

change

<?php
}
?>
<!--eof- banner #6 display -->
</body>

to

<!--eof- banner #6 display -->
</body>
<?php
}
?>
  1. To change the sidebox subheading from "MonthYear <>" to "<< MonthYear >>", in \includes\classes\calendar.php, replace the following code within function getMonthHTML($m, $y, $show = 0):
         $prevMonth = '<a href=index.php?main_page='. FILENAME_EVENTS_CALENDAR_INCLUDE . '&eventmode=eventframe' .$this->getCalendarLink($prev[0], $prev[1]).' target=calendar title='. $this->monthNames[$month - 2] . (($month-2 < 1) ? $D.($year-1) : ' '. $year) .' ><</a>'; 
          
         $nextMonth = '<a href=index.php?main_page='. FILENAME_EVENTS_CALENDAR_INCLUDE . '&eventmode=eventframe' . $this->getCalendarLink($next[0], $next[1]).' target=calendar title='. $this->monthNames[$month + 0] . (($month+0 > 11) ? $J.($year+1) : ' '. $year) .' >></a>'; 
        } 
        else 
        { 
            $prevMonth = ""; 
            $nextMonth = ""; 
        } 
        $s .= "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n"; 
        $s .= "<tr class=\"calendarHeader\">\n"; 
        $linkHeader = zen_href_link(FILENAME_EVENTS_CALENDAR, "_month=$month&_year=$year"); 
        $s .= "<td align=\"left\"><a href=\"$linkHeader\" target=\"_parent\">$header</a></td>\n"; 
        $s .= "<td align=\"center\" class=\"yearHeader\">\n"; 

      if(mktime (0,0,0,$month ,0,$year) > mktime (0,0,0,$this_month ,0,$this_year)) 
    { 
            $s .= $prevMonth; 
        } 
        else 
    { 
        $s .= $prevMonth; 
        } 
            $s .= "</td>\n"; 
            $s .= "<td align=\"center\" class=\"yearHeader\">$nextMonth</td></tr>\n"; 
            $s .= "<tr><td colspan=\"3\">\n"; 

with

         $prevMonth = '<a href=index.php?main_page='. FILENAME_EVENTS_CALENDAR_INCLUDE . '&eventmode=eventframe' .$this->getCalendarLink($prev[0], $prev[1]).' target=calendar title='. $this->monthNames[$month - 2] . (($month-2 < 1) ? $D.($year-1) : ' '. $year) .' ><<</a>';

         $nextMonth = '<a href=index.php?main_page='. FILENAME_EVENTS_CALENDAR_INCLUDE . '&eventmode=eventframe' . $this->getCalendarLink($next[0], $next[1]).' target=calendar title='. $this->monthNames[$month + 0] . (($month+0 > 11) ? $J.($year+1) : ' '. $year) .' >>></a>';
        }
        else
        {
         $prevMonth = "";
         $nextMonth = "";
        }
        $s .= "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n";
        $s .= "<tr class=\"calendarHeader\">\n";
        $linkHeader = zen_href_link(FILENAME_EVENTS_CALENDAR, "_month=$month&_year=$year");
        $s .= "<td align=\"left\" class=\"yearHeader\">\n";

      if(mktime (0,0,0,$month ,0,$year) > mktime (0,0,0,$this_month ,0,$this_year))
    {
           $s .= $prevMonth;
        }
        else
    {
           $s .= $prevMonth;
        }
            $s .= "</td>\n";
            $s .= "<td align=\"center\"><a href=\"$linkHeader\" target=\"_parent\">$header</a></td>\n";
            $s .= "<td align=\"right\" class=\"yearHeader\">$nextMonth</td></tr>\n";
            $s .= "<tr><td colspan=\"3\">\n";

2a. If you only want "< Month Year >" instead of "<< Month Year >>" in the above code, replace:

         $prevMonth = '<a href=index.php?main_page='. FILENAME_EVENTS_CALENDAR_INCLUDE . '&eventmode=eventframe' .$this->getCalendarLink($prev[0], $prev[1]).' target=calendar title='. $this->monthNames[$month - 2] . (($month-2 < 1) ? $D.($year-1) : ' '. $year) .' ><<</a>';

         $nextMonth = '<a href=index.php?main_page='. FILENAME_EVENTS_CALENDAR_INCLUDE . '&eventmode=eventframe' . $this->getCalendarLink($next[0], $next[1]).' target=calendar title='. $this->monthNames[$month + 0] . (($month+0 > 11) ? $J.($year+1) : ' '. $year) .' >>></a>';

with

         $prevMonth = '<a href=index.php?main_page='. FILENAME_EVENTS_CALENDAR_INCLUDE . '&eventmode=eventframe' .$this->getCalendarLink($prev[0], $prev[1]).' target=calendar title='. $this->monthNames[$month - 2] . (($month-2 < 1) ? $D.($year-1) : ' '. $year) .' ><</a>';

         $nextMonth = '<a href=index.php?main_page='. FILENAME_EVENTS_CALENDAR_INCLUDE . '&eventmode=eventframe' . $this->getCalendarLink($next[0], $next[1]).' target=calendar title='. $this->monthNames[$month + 0] . (($month+0 > 11) ? $J.($year+1) : ' '. $year) .' >></a>';

2b. To show "<< Month >>" instead of "<< Month Year >>", change:

    function getMonthHTML($m, $y, $show = 1)

to

    function getMonthHTML($m, $y, $show = 0)

2c. To add some lines of space after the whole Year calendar view table in the centre column, replace this code

            $s .= "</table>\n";
	return $s;
         }
    function adjustDate($month, $year)

with

                $s .= "</table>\n";
	    $s .= "<br/><br/>\n";
                return $s;
            }
    function adjustDate($month, $year)

For more lines, add more <br />.

  1. This mod needs to be tested against the latest zencart upgrade 1.3.9.
3 May 2010, 7:34 AM
#149
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,018
Plugin Contributions:
2

Re: Event Calendar v3

Anyone know how to run this mod without its iframe?

24 May 2010, 1:21 PM
#150
gregsmith154 avatar

gregsmith154

New Zenner

Join Date:
May 2010
Posts:
2
Plugin Contributions:
0

Re: Event Calendar v3

Hi

I'm using this mod and it seems to work pretty well for me. Only issue is I've installed the SSU Simple SEO Urls mod also.

What happens is that the links from the little sidebox calendar go to:

mysite.com/shop/events_calendar/_month/5/_year/2010/year_view/0

rather than with the standard query string, so the variables aren't being picked up. Anyone have the same issue and know a fix??

24 May 2010, 1:46 PM
#151
gregsmith154 avatar

gregsmith154

New Zenner

Join Date:
May 2010
Posts:
2
Plugin Contributions:
0

Re: Event Calendar v3

OK, ignore me, I just found the string of pages to ignore in the SSU config and you can add 'events_manager' to it.

24 Jun 2010, 7:36 PM
#152
guptyboy avatar

guptyboy

New Zenner

Join Date:
Jul 2009
Posts:
29
Plugin Contributions:
0

Re: Event Calendar v3

I've been reading so many threads lately as I am updating my website to a new template with new mods etc. so I havent read through all the pages to see if this problem has happened for anyone else.

So far, havent had any issues with this mod .. installed easily (though the readme/instructions were horribly formatted, I missed a step during the first install that I attribute to that mess) ... anywho, a problem has now arisen.

When viewing all events (by clicking on the Events Calendar link in the sidebox above the calendar), the events are displayed with an incorrect date. I have noticed there is a pattern to how the dates are displayed, and this occurs when you add a new event ... the sequence I am not 100% off till I do some more testing, but ...

  • add an event with the date of 01/01/10 - it displays fine in the 'all events list'
  • add a second event with the date of 01/02/10 - when looking at the 'all events' BOTH events show 01/02/10
  • add a third event with the date of 01/03/10 - when looking at the 'all events' the first event is back to its original (normal) date, the second and third events show 01/03/10
  • add a fourth event with the date of 01/04/2010 - when looking at the 'all events' the first is fine, the second is fine, the third and fourth show 01/04/10
  • loop continues as such

Anyone else having this problem ...

Thanks in advance

25 Jun 2010, 3:00 PM
#153
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,018
Plugin Contributions:
2

Re: Event Calendar v3

I vaguely recall something similar happening to me some time back while I was tinkering with the mod. Not sure how it got fixed, but I have not had a recurrance since.

If you have not done the php formating fixes in post #57, do these and report back.

25 Jun 2010, 3:57 PM
#154
guptyboy avatar

guptyboy

New Zenner

Join Date:
Jul 2009
Posts:
29
Plugin Contributions:
0

Re: Event Calendar v3

dw08gm:

I vaguely recall something similar happening to me some time back while I was tinkering with the mod. Not sure how it got fixed, but I have not had a recurrance since.

If you have not done the php formating fixes in post #57, do these and report back.

Thanks for the reply ... i did do those edits, they certainly made a difference, though i dont recall what was happening with the dates whilst I was playing ... Its been a few days (and my short-term memory is crap) but I'm pretty sure I tested the mod on a clean install using the edits from #57

Problem is still occuring :(

25 Jun 2010, 5:07 PM
#155
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,018
Plugin Contributions:
2

Re: Event Calendar v3

OK Look into the structure of the table (or div if so) holding the dates to make sure everything is properly formed and closed html and php wise.

I seem to recall there was something out of place but I just cannot pinpoint it.

16 Aug 2010, 5:14 PM
#156
kencor1 avatar

kencor1

New Zenner

Join Date:
Aug 2010
Posts:
26
Plugin Contributions:
0

Re: Event Calendar v3

I Have just tried installing this calender. The sidebox shows up but it has page not found in it. Can someone help me fix this problem. I have zen-cart installed on my PC for now so I added the files manually by drag and drop to what I thought were the correct folders. I someone can point me in the right direction that would be great. Also I am fairly new to this so be kind.:unsure:

17 Aug 2010, 4:14 AM
#157
kencor1 avatar

kencor1

New Zenner

Join Date:
Aug 2010
Posts:
26
Plugin Contributions:
0

Re: Event Calendar v3

Good news I have got the calendar working:clap: except for the same error that the post above mine was having with the dates in the ALL Events view. They are all the same dates as the date that is the furthest out. Has anyone got a fix for this?

Thanks
Tom

25 Aug 2010, 12:38 AM
#158
kencor1 avatar

kencor1

New Zenner

Join Date:
Aug 2010
Posts:
26
Plugin Contributions:
0

Re: Event Calendar v3

Does anyone have a fix for the date listing wrong problem?? Please

24 Sep 2010, 4:13 PM
#159
derienpscetti avatar

derienpscetti

New Zenner

Join Date:
Sep 2010
Posts:
3
Plugin Contributions:
0

Re: Event Calendar v3

Im using Zen Cart v1.3.9f and when i put this calendar on my website it keep showing on the Who's Online.

In the Image it show this---------------------------------------------------------
/index.php?main_page=events_calendar_include&_month=&_year=&eventmode=eventframe-----------------------------------------------------------------------------
and it not the right page my customer are on so this should get fixs soon but the calendar work great

29 Sep 2010, 3:33 PM
#160
kencor1 avatar

kencor1

New Zenner

Join Date:
Aug 2010
Posts:
26
Plugin Contributions:
0

Re: Event Calendar v3

Is there anyone out there that can help with this? Someone must have it working properly! Please help!