Fancy Clock for 1.5

Fancy Clock for 1.5

by Michigan Moodler -
Number of replies: 8

Any one know of where I may find "Fancy Clock" that will work in 1.5

Thank you so much.

Average of ratings: -
In reply to Michigan Moodler

Re: Fancy Clock for 1.5

by Bryan Williams -
Here you go!
In reply to Bryan Williams

Re: Fancy Clock for 1.5

by Bob Puffer -
With debugging on I get the following error trying to turn the block on in any course:

Notice: Undefined variable: course in c:\program files\easyphp1-7\www\moodle\blocks\fancy_clock\block_fancy_clock.php on line 7

Running Moodle 1.5 + (2005060201)

With debugging off I don't get the error but don't get the fancy clock option on the blocks pulldown either.
In reply to Bob Puffer

Re: Fancy Clock for 1.5

by Bryan Williams -
Bob, not sure what is happening with your local Windows Moodle. You can see the clock working here, which is the same build of 1.5+ you're running.
In reply to Bob Puffer

Re: Fancy Clock for 1.5

by Graham Blacker -
HI Bob
I am no programmer but according to Jon Papaioannou's documentation on blocks for version 1.5, the function init() only requires the lines starting with $this->title and $this->version (lines 5 and 8) are required. I modified fancy clock for 1.4 using these instructions and now runs fine in 1.5.
In reply to Graham Blacker

Re: Fancy Clock for 1.5

by Andrew Wojtowicz -

how do i get this to work in 1.5?  i'm not a programmer but mine doesn't show up as an add in the blocks with thisconfiguration.

thanks

In reply to Andrew Wojtowicz

Analog clock for Moodle 1.5

by Jan Dierckx -
The analog clock is a Flash movie I hade seen on Bryan's site. It would be possible to just add this inside a HTML block. That's why I thought there was no need to upgrade this block for Moodle 1.5.
I have made an upgraded version of the block because this gave me the opportunity to incorporate both varieties of the block (which I now regret calling 'fancy clock' and 'too fancy clock')
Clicking on the edit icon now allows teachers to choose which clock they want to display. I've also added language strings that maybe need a little bit of editing by a native English speaker.

Installation is the same as with every block

1. Place the directory 'blocks/time/' inside the directory 'moodle/blocks/'
2. Copy the file lang/en/block_time.php to the directory 'moodle/lang/en/'
3. Visit the admin page of your moodle site for the changes to take effect
4. The block should now show up in the dropdown menu when you have editing turned on in a course

Latest version can be found somewhere on this page.


In reply to Jan Dierckx

Re: Analog clock for Moodle 1.5

by Monico Briseño -
Picture of Testers
Jan, I did exactly that you mentioned  to use block time on Moodle 1.5.3. But, on the block administration don´t appear the time block.  Any idea?

TIA
Mónico