[EventCalendar] EventCalendar3 - How to remove the actual event Link?

Bill Bengtson billbengtson at gmail.com
Mon Nov 27 21:11:29 UTC 2006


Well I just tested it... I added an event to this month, the current month
of November.
It is not linking to that one... so it does appear that my hack is working
as I intended... both on the current month that is displayed initially, as
well as future months.
Thanks for your help with this.
Bill

On 11/27/06, Alex Tingle <alex at firetree.net> wrote:
>
> Hi Bill,
>
> On Mon, 27 Nov 2006 14:33:22 -0600
> "Bill Bengtson" <billbengtson at gmail.com> wrote:
>
> > With the help of a co-worker that is a better programmer then myself...
> I
> > was able to come up with an adjustment to the ec3.js file that did give
> me
> > the results that I am looking for.
> >
> > I commented out this line
> > // a.href=days[i].getAttribute('link');
> >
> > And added just below it this
> > a.href="javas" + "cript: void(0)";
> >
> > So now my calendar gives me the rollover effect on the days that I have
> > Events... but when the viewer clicks on that event, nothing happens...
> it
> > doesn't go to another page any longer... giving me the result that I
> wanted.
>
> Great!
>
> Did you edit the day_link() function too? Otherwise I'd expect that the
> first calendar to be displayed on a page would still contain links. This
> would make it consistent with your JS change above:
>
> function day_link() {
>   return "javascript: void(0)";
> }
>
> -Alex
>
> --
>
> > Just passing along this info for anybody that cares...
> > Bill
> >
> > On 11/27/06, Alex Tingle <alex at firetree.net> wrote:
> > >
> > > On 27 Nov 2006, at 16:50, Bill Bengtson wrote:
> > >
> > > > Thank you for the reply... I had been looking in the
> > > > eventcalendar3.phpfile... not the
> > > > date.php file.
> > > >
> > > > So yes, I see the group of code that is for the "day_link()"... but
> I
> > > > don't
> > > > really know what to adjust... I was expecting to see a straight
> forward
> > > > "href"...
> > > >
> > > > Would you please be able to give me a little more direction in what
> to
> > > > modify?
> > > >
> > > > The following is the code from date.php that is pertaining to
> > > > "day_link()"
> > > >
> > > > function day_link()
> > > >  {
> > > >    global $ec3;
> > > >    if($ec3->show_only_events)
> > > >    {
> > > >      return get_settings('home') . '/?m='
> > > >       . $this->year_num
> > > >       . zeroise($this->month_num, 2)
> > > >       . zeroise($this->day_num, 2)
> > > >       . "&amp;cat=" . $ec3->event_category;
> > > >    }
> > > >    else
> > > >      return
> > > > get_day_link($this->year_num,$this->month_num,$this->day_num);
> > > >  }
> > >
> > > This is day_link(). Why did you paste in all the following functions.
> > > If you want the link to be empty, then just change it to "return '';"
> > >
> > > If you don't want the A tag, then find the places that call day_link()
> > > and excise the A element from there. I'll warn you now though - you'll
> > > have to go into the JavaScript too.
> > >
> > > -Alex
> > >
> > > --
> > >
> > >
> > > >  function month_name() // e.g. June
> > > >  {
> > > >    global $month;
> > > >    return $month[zeroise($this->month_num,2)];
> > > >  }
> > > >  function month_abbrev() // e.g. Jun
> > > >  {
> > > >    global $month_abbrev;
> > > >    return $month_abbrev[ $this->month_name() ];
> > > >  }
> > > >  function month_link()
> > > >  {
> > > >    global $ec3;
> > > >    if($ec3->show_only_events)
> > > >    {
> > > >      return get_settings('home') . '/?m='
> > > >       . $this->year_num
> > > >       . zeroise($this->month_num, 2)
> > > >       . "&amp;cat=" . $ec3->event_category;
> > > >    }
> > > >    else
> > > >      return get_month_link($this->year_num,$this->month_num);
> > > >  }
> > > >  function days_in_month()
> > > >  {
> > > >    if(0==$this->_days_in_month)
> > > >      $this->_days_in_month=intval(date('t', $this->to_unixdate()));
> > > >    return $this->_days_in_month;
> > > >  }
> > > >  function week_day()
> > > >  {
> > > >    return intval(date('w', $this->to_unixdate()));
> > > >  }
> > > >  function to_unixdate()
> > > >  {
> > > >    if(0==intval($this->_unixdate))
> > > >    {
> > > >      $this->_unixdate =
> > > >        mktime(0,0,0,
> $this->month_num,$this->day_num,$this->year_num);
> > > >    }
> > > >    return $this->_unixdate;
> > > >  }
> > > > } // end class ec3_Date
> > > >
> > > >
> > > > Thank you for your time,
> > > > Bill
> > > >
> > > > On 11/27/06, Alex Tingle <alex at firetree.net> wrote:
> > > >>
> > > >> Hi Bill,
> > > >>
> > > >> On Sun, 26 Nov 2006 18:46:09 -0600
> > > >> "Bill Bengtson" <billbengtson at gmail.com> wrote:
> > > >>
> > > >> > But for my needs, I want it to display the events title when you
> > > >> rollover it
> > > >> > just as it does... but not to be a link when you click on an
> > > >> event...
> > > >> but to
> > > >> > still just be a rollover only and the viewer stays on the same
> page.
> > > >>
> > > >> You'll have to hack the function "day_link()" in the file
> > > >> eventcalendar3/date.php
> > > >>
> > > >> -Alex
> > > >>
> > > >> --
> > > >> :: Let me solve your problems: http://www.firetree.net/consulting/
> > > >> :: alex.tingle AT firetree.net  +44-7901-552763
> > > >>
> > > >> _______________________________________________
> > > >> Blog: http://wpcal.firetree.net/
> > > >> EventCalendar at firetree.net mailing list
> > > >> Unsubscribe: http://penguin.firetree.net/eventcalendar
> > > >>
> > > > _______________________________________________
> > > > Blog: http://wpcal.firetree.net/
> > > > EventCalendar at firetree.net mailing list
> > > > Unsubscribe: http://penguin.firetree.net/eventcalendar
> > >
> > >
> > > _______________________________________________
> > > Blog: http://wpcal.firetree.net/
> > > EventCalendar at firetree.net mailing list
> > > Unsubscribe: http://penguin.firetree.net/eventcalendar
> > >
>
>
> --
> :: Let me solve your problems: http://www.firetree.net/consulting/
> :: alex.tingle AT firetree.net  +44-7901-552763
>
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://penguin.firetree.net/pipermail/eventcalendar/attachments/20061127/61afb5dc/attachment-0001.htm


More information about the EventCalendar mailing list