[EventCalendar] use of multiple domain names for site and calendar sidebar

Alex Tingle alex at firetree.net
Fri Sep 1 15:21:22 UTC 2006


Hi Craig,

Look for the (JavaScript) value of ec3.home used at ec3.js line 202. It looks something like this...

  /** Despatch an XMLHttpRequest for a month of calendar entries. */
  function loadDates(month_num,year_num)
  {
    var req=new XMLHttpRequest();
    if(req)
    {
      ec3.reqs.push(req);
      req.onreadystatechange=process_xml;
      req.open("GET",
        ec3.home+'/?ec3_xml='+year_num+'_'+month_num,true);
      set_spinner(1);
      req.send(null);
    }
  }

This is set in the PHP in eventcalendar3.php line 85.

Good luck.

-Alex

--

On Tue, 15 Aug 2006 09:30:53 -0400
"Craig Rothman" <cjroth at alum.mit.edu> wrote:

> I have three domain names for my site, a main one and two aliases.  When one
> goes to the main domain name (as set in wordpress), then the sidebar
> calendar advances between months normally.  If someone goes to one of the
> other domain names, then when one clicks on either of the other months, then
> a new calendar is generated below the current calendar.  Where in the code
> could I fix this?  It should maybe use the PHP sitepath info instead of just
> the wordpress one?


-- 
:: Let me solve your problems: http://www.firetree.net/consulting/
:: alex.tingle AT firetree.net  +44-7901-552763 



More information about the EventCalendar mailing list