Message of the Day

Message of the Day

Jon Witts發表於
Number of replies: 5
Plugin developers的相片 Testers的相片

I have been asked by one of our deputy heads at our school if I can develop a message of the dday block for Moodle. I thought that it shouldnot prove too tricky as it could just be a block that accesses a database table of quotations and randomly chooses one to dispaly each day. When in the blocks configuarion page the option to add / remove quotes could then be made available.

I have gone through the Moodle documentation for making a block, and all was well. However when I try to get my block to create a new table within the Moodle database I get an error about being unable to create table in MySQL. I have checked that my MySQL is correct by running the SQL commands straight into MySQL command line and they work. I am really stumped as to why this willnot work. Any pointers to how best to develop a block of this type would be much appreciated.

I am away from my desk at present so can not attach my working so far, but will add it to this message when I get back to my desk.

Jon

評比平均分數: -
In reply to Jon Witts

Re: Message of the Day

Muata Kamdibe發表於
Hi John. If you are looking for a block that will display a different quote on a different day, then you don't need to create a new block from scratch to do this. I'm doing exactly what you are looking for now in my online classes using the Random Glossary Entry Block. It's really simple and has been a feature in Moodle for sometime now. Feel free to ask if you need help setting it up.

Take care,
Muata
In reply to Muata Kamdibe

Re: Message of the Day

Jon Witts發表於
Plugin developers的相片 Testers的相片
This sounds great, however I can not find where I can get this block from... Please help smile
In reply to Jon Witts

Re: Message of the Day

Ralf Hilgenstock發表於
Core developers的相片 Particularly helpful Moodlers的相片 Translators的相片
Hi Jon,

you don't need this block. You have it. Its standard in each moodle system. Create a glossary in your course, add a Glossary block in your course and edit the settings in the block.
On http://moodle.de you find a block 'Über Bildung' on the right side. With each call of the page it shows an other text about education. If you add pictures to your glossary, the block shows you the pictures.

Ralf
In reply to Ralf Hilgenstock

Re: Message of the Day

Đinh Lư Giang發表於
It's a great thread.
I am also looking for my solution. In my Moodle site, there is a course called 365. We created 365 shortl lessons by eXe Learning and we want that there is a block that indicates the lesson of the day. The block sould get the day of the computer system with a message like this:

"Today is December 25, please enjoy today's lesson. Click here."

Could someone have an idea about how to do it? Random entry, as it is random, can't function like that.

Thanks

In reply to Jon Witts

Re: Message of the Day

Mauno Korpelainen發表於

If you have a working script already it is not always necessary to make a new moodle block. You may also insert a html block and get messages of a day there. If there are difficulties to make that block work use <IFRAME> tags in a html block. For example:

<iframe
src ="http://yourserver.com/messageofaday.php"
width="100%" height=300>
</iframe>

will give that script. The only problem is that it does not work in Netscape but there are less than 1% of users having Netscape as a default browser.