Contact Form block updated for 1.7

Contact Form block updated for 1.7

by Matt Campbell -
Number of replies: 2
I think I've got everything figured out and the Contact Form block (aka Ask a Question) looks to be working for 1.7 - I would appreciate any comments or suggestions (or help where my code needs improvement!)

A couple of items I'm still working on/trying to figure out:

Subject prefix in courses shows up as [] and does not include the course shortname.
Some of the error messages are hardcoded and need to be converted to strings.

Click here to download. I will add this to the Modules and Plugins database once I've got some confirmation that this is working for other Moodlers.

Thanks,
Matt
Average of ratings: -
In reply to Matt Campbell

Re: Contact Form block updated for 1.7

by g k -
I get an error "No teachers exist for this course" when I place this block on the front page of my site. The site is v 1.7. Any ideas why this error keeps popping up despite the fact that I assigned a role to this block?
In reply to g k

Re: Contact Form block updated for 1.7

by Matt Campbell -
Front page works a little differently in 1.7 than it does for 1.6 or 1.8 - make sure you have someone assigned as an site administrator - I believe that's how I was doing it back then.

Thanks,
Matt