Community Forums

Events Calendar

Coding, discussion and suggestions for OpenCart v0.x development

Events Calendar

Postby fido-x » Fri Aug 08, 2008 3:30 pm

Still in an extremely very early stage of development.

Has a calendar module in the side column which displays the current month, with links to the months on either side. The days of the month link to a page displaying any events planned (or happening) for that particular day. Empty cells link to a monthly events page.

Demo at http://www.fido-x.net/demostore/

Fido-X.
Image
If you're not living on the edge ... you're taking up too much space!
Multi-Vendor Plugin for OpenCart 1.5.1.x
Have I helped you?
User avatar
fido-x
 
Posts: 1960
Joined: Fri Jun 27, 2008 5:09 pm
Location: Tasmania, Australia

Re: Events Calendar

Postby Qphoria » Thu Oct 02, 2008 2:17 pm

Hey Fido, nice work on that.

Is there any further development on this? Are you planning on releasing it as a contrib of sorts? I'd like to use it for some sale event previews
Last edited by Qphoria on Thu Oct 02, 2008 2:24 pm, edited 1 time in total.
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18199
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Events Calendar

Postby fido-x » Thu Oct 02, 2008 4:53 pm

Thanks Q.

I wasn't sure if there was much interest, since nobody had made any comments. I went ahead and built it anyway, as I use it on my own site (primarily to keep track of family birthdays  ;)).

Yes, I can package it up and release it as a contribution. Should be able to upload sometime tomorrow.

Fido-X.
Image
If you're not living on the edge ... you're taking up too much space!
Multi-Vendor Plugin for OpenCart 1.5.1.x
Have I helped you?
User avatar
fido-x
 
Posts: 1960
Joined: Fri Jun 27, 2008 5:09 pm
Location: Tasmania, Australia

Re: Events Calendar

Postby frame » Tue Oct 07, 2008 5:05 pm

Hi,

There is a catalog/javascript/calendar/calendar.js file in the zip file you have uploaded but nothing about it in the readme.html
frame
 
Posts: 41
Joined: Sat Apr 26, 2008 11:24 am

Re: Events Calendar

Postby frame » Tue Oct 07, 2008 7:04 pm

I have found a bug in /catalog/template/default/module/calendar.tpl line 2.


should be:


Anyway, how to change the background color?
There are no boxHead and boxList classes defined.
Last edited by frame on Tue Oct 07, 2008 7:52 pm, edited 1 time in total.
frame
 
Posts: 41
Joined: Sat Apr 26, 2008 11:24 am

Re: Events Calendar

Postby fido-x » Tue Oct 07, 2008 11:35 pm

Hi frame,

Thanks for pointing those out, I'll fix it up and re-package. But since you've already downloaded, replacing the code in your "catalog/template/default/module/calendar.tpl" with the following:-
Code: Select all
<link rel="stylesheet" type="text/css" href="catalog/template/<?php echo $this->directory; ?>/css/calendar.css" />
<script type="text/javascript" src="catalog/javascript/calendar/calendar.js"></script>
<div class="box">
   <div class="heading"><?php echo $heading_title; ?></div>
   <form name="calendar">
      <div id="calendar_display">
         <script>document.write(showCalendar('<?php echo $month; ?>', '<?php echo $year; ?>'));</script>
      </div>
      <div class="clock">
         <input name="clock" /><script>showClock();</script>
      </div>
   </form>
</div>

should fix things up a bit.

As for the background colour of the calendar itself, this is in the css ("catalog/template/default/css/calendar.css").

Hope this helps.

Regards, Fido-X.
Image
If you're not living on the edge ... you're taking up too much space!
Multi-Vendor Plugin for OpenCart 1.5.1.x
Have I helped you?
User avatar
fido-x
 
Posts: 1960
Joined: Fri Jun 27, 2008 5:09 pm
Location: Tasmania, Australia

Re: Events Calendar

Postby frame » Wed Oct 08, 2008 6:05 am

Hi Fido-x,

Thank you for your support.
Another interesting thing. In your demo shop I cannot click on October 2008 (there is no link) but the days of the month are working.
In my shop October 2008 is OK but no link to the days.
Any idea?

 
frame
 
Posts: 41
Joined: Sat Apr 26, 2008 11:24 am

Re: Events Calendar

Postby fido-x » Wed Oct 08, 2008 11:10 am

Hi frame,

The version in my demo site is the original developmental version. I changed the way it operates slightly by removing the links on the days in the calendar, and just having links on the month and year. I thought it worked better this way.

If you prefer having links for the days in the calendar as well, I can provide a replacement calendar script for you.

Regards, Fido-X.
Image
If you're not living on the edge ... you're taking up too much space!
Multi-Vendor Plugin for OpenCart 1.5.1.x
Have I helped you?
User avatar
fido-x
 
Posts: 1960
Joined: Fri Jun 27, 2008 5:09 pm
Location: Tasmania, Australia

Re: Events Calendar

Postby frame » Wed Oct 08, 2008 12:48 pm

Hi Fido-X,

That would be very nice! Thank you in advance!
My last question. Is it possible to make bold (or set a different color for) the particular day if it is set?
br
frame
frame
 
Posts: 41
Joined: Sat Apr 26, 2008 11:24 am

Re: Events Calendar

Postby fido-x » Thu Oct 09, 2008 7:02 am

Hi frame,

Yes, it is possible to make "today" a different colour or bold. Find the following in the "calendar.css" and edit to suit.
Code: Select all
#calendar #today {
   background-color: #333333;
   border: 1px solid #11110F;
   color: #66FFFF;
}


If you PM your email to me, I can send you the replacement calendar script (with links for the days).

Fido-X.
Image
If you're not living on the edge ... you're taking up too much space!
Multi-Vendor Plugin for OpenCart 1.5.1.x
Have I helped you?
User avatar
fido-x
 
Posts: 1960
Joined: Fri Jun 27, 2008 5:09 pm
Location: Tasmania, Australia

Re: Events Calendar

Postby frame » Thu Oct 09, 2008 8:41 am

Hi Fido-X,

PM sent.
Regarding the colouring, I think I have expressed myself not clear enough. So, If I set an event in the admin area lets say for 20th October, I would like to colour or bold the number 20 in the calendar, so that the customers can see, that something will happen then.
I set url alias for the month and the year but it does not work. Every other alias works fine except these. I dont really understand why.
regards
Frame
frame
 
Posts: 41
Joined: Sat Apr 26, 2008 11:24 am

Re: Events Calendar

Postby fido-x » Thu Oct 09, 2008 11:58 am

I see what you mean. Hadn't thought of that. Good idea! I'll see what I can do (shouldn't be too hard) and include it in an update.

As to the URL aliasing - at the moment the paths are hard-coded in the calendar script in the form
Code: Select all
index.php?controller=calendar&month=$month&day=$day

which means that URL aliasing won't work - something else to fix for the update.

The replacement calendar script has been sent to the email address you gave me. I'll probably leave the "daily" links for the update.

Fido-X.
Image
If you're not living on the edge ... you're taking up too much space!
Multi-Vendor Plugin for OpenCart 1.5.1.x
Have I helped you?
User avatar
fido-x
 
Posts: 1960
Joined: Fri Jun 27, 2008 5:09 pm
Location: Tasmania, Australia

Re: Events Calendar

Postby frame » Thu Oct 09, 2008 12:43 pm

Hi Fido-X,

The script works fine!
Thank you for updating this mod!
br
Frame
frame
 
Posts: 41
Joined: Sat Apr 26, 2008 11:24 am


Return to Development

Who is online

Users browsing this forum: No registered users and 0 guests

Hosted by Arvixe Web Hosting