Dialogues Block

Dialogues Block

Ray Kingdon -
回帖数:25
I've created a Block for the Dialogues in a Course. It's a straight crib from Jon's Private Messages Block. I'm most impressed with the Block support that's now in Moodle. Thanks Jon approve.

I've found that using a Dialogue in a course is a bit of a one way street, I answer the student queries but the students are pretty poor at answering my queries. They get sent an email which they may get and they may understand, and there's a "flag" in the recent activities block but that again is easy to overlook. Thus the Dialogues Block cool. This can be put somewhere prominent in the course, I'm trying it at the top of the right hand blocks and it shows a large message if there's any outstanding entries in any of the dialogues in the course.

It's only one extra file which is attached. If you want to try the block out, first create a new directory called dialogues in the blocks directory. Then copy the attached file into that new directory. With the file in place login as admin and it gets (magically) installed. (If the installation message doesn't appear immediately then still as admin go into the Administration page. Then as, teacher you can turn editing on in a course and at the foot of the right hand block there's a drop down list to add a new blocks. The Dialogues block should now be in that list.

All good stuff, the only downside is you do need to be running Moodle 1.5 unstable as it's one of Jon's "new style" blocks (I believe). [Perhaps Jon could straighten me out if that's not correct.]

I'm now sitting back waiting for the flood of responses from my students to my outstanding messages to them. Well, I can hope... big grin

Ray

回复Ray Kingdon

Re: Dialogues Block

Bob Gettings -
Ray! Thank you!

I'm looking forward to to using this block.

But it seems to work in 1.4 and not in 1.5 - which is fine for me!
回复Ray Kingdon

Re: Dialogues Block

John Papaioannou -
Hello Ray,

Very nice to see more blocks being developed by well-known Moodlers! smile

Specifically for this one, no it's an old style 1.4 block. Porting it to 1.5 is a matter of changing a couple of lines (see Appendix B of the guide), but since 1.5 isn't expected soon you might want to leave that for later.

And one other small detail: the two optional_variable($_GET['cal_X']) calls... I think they aren't needed, are they?

Here's a toast to your students flooding you with dialogue responses! wink

Jon
回复John Papaioannou

Re: Dialogues Block

Ray Kingdon -
Thanks Bob, Jon. Yes, I downloaded the guide, looked at it briefly and then hacked the private messages code blush. I'll print the guide off and study it, honest. Yes, the optional_variable calls were just copied across and left, I wondered myself...

I'll get the two versions posted soon I hope.

Thank again, Ray

回复Ray Kingdon

Re: Dialogues Block

Ger Tielemans -
Great! thanks! Helps me to choose between course related and meta course related activities!
回复Ger Tielemans

Re: Dialogues Block

Ray Kingdon -
Ger, you're welcome. Is that a bit like the difference between getting the students to build a bridge and getting the students to talk about building a bridge? I've always been keen to get the students to do things but I think I'm beginning to see some educational (and practical) advantages in the second approach. 
回复Ray Kingdon

Re: Dialogues Block

L. Vandijck -
When trying to install the Dialogues block in my test environment (under Windows on my home machine that is) I keep getting an error message saying:
Warning: get_content(c:\program files\easyphp1-7\www\moodle/mod/dialogue/locallib.php): failed to open stream: No such file or directory in c:\program files\easyphp1-7\www\moodle\blocks\dialogues\block_dialogues.php on line 20
And actually there is no directory moodle/mod/dialogue anywhere to be found. The only file locallib.php I can find in the mod directory is under workshop. Does this mean there is something missing in my Moodle? (I'm using 1.4)
回复Ray Kingdon

Re: Dialogues Block

Dave Bethany -

This is a great idea.

Question...can we set the dialogue block to display any dialogue coming from any course. In other words, can it work where a dialogue from a student enrolled in a course is displayed on the first page of the site? How do we do this?

Thanks,

Dave

回复Dave Bethany

Re: Dialogues Block

Ray Kingdon -
Dave, I dont think this version would work on the site page. But it's a thought for a future block.
回复Ray Kingdon

Re: Dialogues Block

Trizit Benjaboonyazit -
I download and install both 1.4 and 1.5 version of Dialogues Block to test on my 1.4 Moodle at http://elearning.bangkaew.com/  The installation is okay, but when I add Dialogues Block, an empty Dialogues Block appears  on the right-bottom corner of my frontpage. And when I turn off editting the frontpage,the empty Dialogues Block  disappears.
What is wrong ?  How does it look like ?
回复Ray Kingdon

Re: Dialogues Block - Installing Problem

Luuk CARNEL -
As I tried to install your new dialogues block, I got the following error message :
Fatal error: Class courseblock_dialogues: Cannot inherit from undefined class moodleblock in /home/debron/public_html/moodle/blocks/dialogues/block_dialogues.php on line 3

The same error occures as I try to install the shared-files-block...

What is going wrong with my moodle-installation ???


回复Luuk CARNEL

Re: Dialogues Block - Installing Problem

John Papaioannou -
Hi Luuk,

I presume your Moodle installation is version 1.5 development? This release will not be compatible with "old" blocks (created for 1.4 and before). You 've just hit the incompatibility wall. However, it's true that you should expect something more informative from Moodle when trying to install a non-compatible block. Be assured that the final 1.5 version will be much more friendly and clear on that issue.

Jon
回复John Papaioannou

Re: Dialogues Block - Installing Problem

Luuk CARNEL -
Hi Jon,

Thanks for your answer.

I thought there was a possibility to "upgrade" 1.4 Blocks to 1.5  - Actually that is what I read in The Developer Documentation Blocks (pdf) ???

You certainly understood already I am a very newbie to these things !




回复Ray Kingdon

NEED HELP Re: Dialogues Block

daniel ginerman -
hi Ray,
I downloaded your PHP, I uploaded it into a /dialogues directory inside the /blocks. I logged in as admin, and received an error of "failed opening /mod/dialogue/locallib.php for inclusion".    (I precise that I created a "dialogueS" dir under blocks, and it fails to open a "dialogue" dir under mod)
I looked for a locallib.php and didn't find nothing like that anywhere. I changed my "dialogues" dir to "dialogue" and it became "unreadable" as for the admin execution.
What's wrong here? Is there a locallib.php file lacking somewhere?
thanx in advance,

daniEl
回复daniel ginerman

Re: NEED HELP Re: Dialogues Block

daniel ginerman -
sorry, here I am again,
I finally understood that it was really lacking a locallib.php because there was lacking all the dir /mod/dialogue, that was downloadable from /modules.
now, I have an other strange behaviour....
I enabled from my Admin the "dialogues" block. When I'm in edition mode, I see it fine. When I get out from edition mode, or when I log in as a normal user, I don't see at all.
Any good idea? It's really strange! I didn't get any errors from it's last installation, it should work right now....
thanx in advance once again,

daniEl

回复daniel ginerman

Re: NEED HELP Re: Dialogues Block

John Papaioannou -
When you don't see a block unless you are a teacher and in editing mode, it means that this block has no content to display. That's probably the case here. Do something that will cause the block to show some text and it will appear automatically.

Jon
回复John Papaioannou

Re: NEED HELP Re: Dialogues Block

daniel ginerman -
thanx jon,
but in a dialogues block, i understand i must be able to open dialogues from it, indeed. that is: how can I do anything that appears in the dialogues block, if i don't have it available to open any dialogue? is there anything i'm understanding in a wrong way?????
thanx again....

daniEl  
回复daniel ginerman

Re: NEED HELP Re: Dialogues Block

John Papaioannou -
You can always add a dialogue the "normal" way, just as any other activity. I 'm not sure what the author of the dialogue block intended to allow doing from the block...
回复daniel ginerman

Re: NEED HELP Re: Dialogues Block

Darren Smith -
Are you trying to use the dialogue block on the main page or in a course?

It it's in a course then does the course already have a dialogue activity added?
回复Ray Kingdon

Re: Dialogues Block

N Hansen -
Are there any open courses where I can see this in action? Since I don't have 1.5 unstable...