Home · Links · Contact Us
Home arrow Forums
Home
Features
FAQ
Screen Shots
Modules
Themes
Demos
Documentation
Forums
Contact Us
Download
Purchase
Quotes

" ... I want to tell you that your thyme product is functional and valuable beyond words. I cannot imagine why any portal would be without it. It is the cornerstone of our new project ..."

" ... Thanks for such a complete project, its making my job much easier. ..."

" ... I have now deployed 4 different calendars and our users love them ... "

" ... Easy to install and use and a great look/design. ..."

" ... This has to be the easiest to use program I think I've had to deal with at all this year. ..."


  FAQFAQ    SearchSearch  RegisterRegister   Log inLog in 
problems with imbedded cal

 
Post new topic   Reply to topic     Forum Index -> Web site integration
View previous topic :: View next topic  
Author Message
damonp



Joined: 07 Aug 2007
Posts: 12

PostPosted: Tue Aug 07, 2007 6:04 pm    Post subject: problems with imbedded cal Reply with quote

www.ypsielbow.com
on Sat night it skips a week then on sunday its fine... please help me resolve...
here is the code:









body {font-family: arial; font-size:9pt; color: CCCCCC }


a:text {
font-family: Arial;
font-size: 9px;
color: #333333;
text-decoration: none;
}

/***********
* GENERAL *
***********/
#cal a:visited { text-decoration: none; }
#cal a:link { text-decoration: none; }
#cal a:hover { text-decoration: underline; }

#cal div.month_mini table { border-collapse: collapse; }
#cal .spacer_tiny { height: 1px; padding: 0px; }
#cal .spacer_small { height: 2px; width: 2px; padding: 0px; }
#cal .spacer { height: 20px; width: 20px; padding: 0px; }

#cal img, #cal .heading { vertical-align: middle; }

#cal table { color: #000000; }


/**********
* HEADER *
**********/
#cal .heading { background: #E58200; }
#cal .heading { color: #fff; }
#cal .heading { font-size: 12px; }
#cal .heading { font-weight: bold; }


/******************
* WEEKDAY HEADER *
******************/
#cal .row_header { background: #000; }
#cal .row_header { color: #fff; }
#cal .row_header { font-size: 9px; }


/********************************
* DAYS
*
* .cal_content = days in month
* .cal_disabled = days not in month
* .cal_selected = highlighted days
*
*******************************/
#cal .cal_content { background: #FFFFFF; }
#cal .cal_content { color: #000; }
#cal .cal_disabled { background: #5C3317; }
#cal .cal_disabled { color: #5C3317; }
#cal .cal_selected { background: #c0c0c0; }
#cal .cal_selected { color: #000; }


/**********************************
*
* EVENTS
*
* .cal_event = normal events
* .cal_event_imp = flagged events
* font.*, a.* = event title
*
*********************************/
#cal font.cal_event, #cal a.cal_event:link, #cal a.cal_event:visited, #cal a:link, #cal a:visited { color: #5C3317; }


#events table tr td a:link, #events table tr td a:visited { color: #555555; }
Back to top
View user's profile Send private message
damonp



Joined: 07 Aug 2007
Posts: 12

PostPosted: Tue Aug 07, 2007 6:08 pm    Post subject: try this Reply with quote

http://www.ypsielbow.com/calendar.php.txt
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Wed Aug 08, 2007 1:18 pm    Post subject: Reply with quote

Hi,

Sorry for the delay. I don't see it skipping up a week on Saturday. Which date are you seeing this on?
Back to top
View user's profile Send private message Visit poster's website
damonp



Joined: 07 Aug 2007
Posts: 12

PostPosted: Wed Aug 08, 2007 1:32 pm    Post subject: Reply with quote

every week...
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Wed Aug 08, 2007 1:37 pm    Post subject: Reply with quote

I see it going from Friday 8/11 to Sat 8/12 to Sun 8/13. Could you please tell me what you mean by it skips a week?
Back to top
View user's profile Send private message Visit poster's website
damonp



Joined: 07 Aug 2007
Posts: 12

PostPosted: Wed Aug 08, 2007 1:39 pm    Post subject: Reply with quote

right, it does now, but on saturday only it will skip a week... so on Aug 11 it will show the week of the 19th...
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Wed Aug 08, 2007 11:53 pm    Post subject: Reply with quote

I see what you're saying. Would you mind if the list started on the current day rather than the first day of the current week?
Back to top
View user's profile Send private message Visit poster's website
damonp



Joined: 07 Aug 2007
Posts: 12

PostPosted: Wed Aug 08, 2007 11:56 pm    Post subject: Reply with quote

that would actually be preferred....
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Thu Aug 09, 2007 12:39 am    Post subject: Reply with quote

Use this for your loop:

Code:

        $time = _ex_localtime();
        $ev_start = _ex_date("Y-n-j", $time);
        $ev_end = _ex_date("Y-n-j", $time + ( 86400 * 56));

        $events = $cal->get_event_list($ev_end, $ev_start);


        for($i = 0; $i < count($events); $i++)
        {

            $day = $time + (86400 * $i);

           // if we don't have any events today move on

           if(!count($events[$i])) {
              continue;
           }
         .. etc.. stuff you already have ..


You'll need to remove the extra } that used to close the foreach($weeks..) loop. Also, where you print the date, change it to:

Code:
echo($cal->format_date("l n/j/Y",$day));


That should do it.
Back to top
View user's profile Send private message Visit poster's website
damonp



Joined: 07 Aug 2007
Posts: 12

PostPosted: Thu Aug 09, 2007 3:21 pm    Post subject: Reply with quote

Im sorry, in the intrest of not screwing it up, would you mind attaching the edited file?
Back to top
View user's profile Send private message
damonp



Joined: 07 Aug 2007
Posts: 12

PostPosted: Mon Aug 13, 2007 3:44 pm    Post subject: Reply with quote

nope, now its just blank....here is the code I was trying to use...
http://www.ypsielbow.com/calendar2.php.txt
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5275

PostPosted: Mon Aug 13, 2007 3:54 pm    Post subject: Reply with quote

Please try this:

http://www.extrosoft.com/temp/calendar.txt
Back to top
View user's profile Send private message Visit poster's website
damonp



Joined: 07 Aug 2007
Posts: 12

PostPosted: Mon Aug 13, 2007 8:41 pm    Post subject: Reply with quote

works great, thank you...
now if only:
http://upcoming.yahoo.com/services/api/
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Web site integration All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
© 2005 eXtrovert software unless otherwise noted. All rights reserved.
Portions © 2004 Ben Brown. All rights reserved.
Trademarks are property of their respective owners.