Post by fido-x » Fri Aug 08, 2008 11: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
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Qphoria » Thu Oct 02, 2008 10: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 10:24 pm, edited 1 time in total.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by fido-x » Fri Oct 03, 2008 12:53 am

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
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by frame » Wed Oct 08, 2008 1:05 am

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

New member

Posts

Joined
Sat Apr 26, 2008 7:24 pm

Post by frame » Wed Oct 08, 2008 3:04 am

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 Wed Oct 08, 2008 3:52 am, edited 1 time in total.

New member

Posts

Joined
Sat Apr 26, 2008 7:24 pm

Post by fido-x » Wed Oct 08, 2008 7:35 am

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
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by frame » Wed Oct 08, 2008 2:05 pm

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?

 

New member

Posts

Joined
Sat Apr 26, 2008 7:24 pm

Post by fido-x » Wed Oct 08, 2008 7:10 pm

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
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by frame » Wed Oct 08, 2008 8: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

New member

Posts

Joined
Sat Apr 26, 2008 7:24 pm

Post by fido-x » Thu Oct 09, 2008 3:02 pm

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
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by frame » Thu Oct 09, 2008 4:41 pm

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

New member

Posts

Joined
Sat Apr 26, 2008 7:24 pm

Post by fido-x » Thu Oct 09, 2008 7:58 pm

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
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by frame » Thu Oct 09, 2008 8:43 pm

Hi Fido-X,

The script works fine!
Thank you for updating this mod!
br
Frame

New member

Posts

Joined
Sat Apr 26, 2008 7:24 pm
Who is online

Users browsing this forum: No registered users and 3 guests