Fancy Clock for 1.5

Fancy Clock for 1.5

από Michigan Moodler -
Αριθμός απαντήσεων: 8

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

Thank you so much.

Μέσος όρος βαθμολογίας: -
Σε απάντηση σε Michigan Moodler

Re: Fancy Clock for 1.5

από Bryan Williams -
Σε απάντηση σε Bryan Williams

Re: Fancy Clock for 1.5

από 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.
Σε απάντηση σε Bob Puffer

Re: Fancy Clock for 1.5

από 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.
Σε απάντηση σε Graham Blacker

Re: Fancy Clock for 1.5

από 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

Σε απάντηση σε Andrew Wojtowicz

Analog clock for Moodle 1.5

από 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.