Plugins
  1. Plugins
  2. CONTRIB-1988 META: Migrate CONTRIB code to Moodle 2.0
  3. CONTRIB-2562

This is the block: contact_form for moodle2. I renamed it to "user_contact" because the old name was too "developer oriented" IMHO

    Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.2
    • Component/s: Block: Contact form
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      The "User contact" block is the new release for moodle2 of the "Contact Form" block for moodle 1.x
      Moodle is completely different and the name of this block too.

      This block allows student to email the teacher of a course. If there are multiple teachers, the student gets to select the teacher(s) to send the email to. Copies are cc:d to the further hidden or visible recipients.

      The version for Moodle 1.8 added the ability to include a hidden recipient.
      The version for Moodle 1.9 added the ability to send return receipts, and moved the cc: and hidden recipients to roles.

      The Contact Form block has been in existence since at least Moodle 1.5.
      This block has had many contributers, from Daryl Hawes in Moodle 1.5, Daniele Cordella in Moodle 1.6, Matt Campbell in Moodle 1.7 & 1.8, Valery Fremaux in Moodle 1.8 and Daniele Cordella in Moodle 1.9 and 2.0

      Because of this new release I ask for the access to contrib/plugins/blocks/user_contact

        Gliffy Diagrams

          Activity

          Hide
          Julian Ridden added a comment -

          Am testing this on 2.0.1 and it is failing.

          It installs OK, and I can setup the block in a course.

          But when I click on the "Contact Us" link as a student all I get is a 500 Server error. Can anyone else replicate this?

          Julian

          Show
          Julian Ridden added a comment - Am testing this on 2.0.1 and it is failing. It installs OK, and I can setup the block in a course. But when I click on the "Contact Us" link as a student all I get is a 500 Server error. Can anyone else replicate this? Julian
          Hide
          Julian Ridden added a comment -

          Any ideas when this might be fixed? Is anyone active on this tracker issue? Was hoping to use it for a site about to go live.
          Julian

          Show
          Julian Ridden added a comment - Any ideas when this might be fixed? Is anyone active on this tracker issue? Was hoping to use it for a site about to go live. Julian
          Hide
          Anthony Borrow added a comment -

          Julian - I've added the code to CVS but will want to come back and sort out how we will handle tracker, documentation, etc. so that folks will be able to find the expected resources. Peace - Anthony

          Show
          Anthony Borrow added a comment - Julian - I've added the code to CVS but will want to come back and sort out how we will handle tracker, documentation, etc. so that folks will be able to find the expected resources. Peace - Anthony
          Hide
          Daniele Cordella added a comment -

          Dear Anthony.
          I sent a copy of userwindow to Julian last friday asking for feedbacks.
          In Italy we say "No news means good news."
          So I am here to share the updated code with the fix to the problem rised up from Julian.

          Dear Julian
          Please let me know if the new code works and if you find more issues.

          Thanks both in advance.

          Show
          Daniele Cordella added a comment - Dear Anthony. I sent a copy of userwindow to Julian last friday asking for feedbacks. In Italy we say "No news means good news." So I am here to share the updated code with the fix to the problem rised up from Julian. Dear Julian Please let me know if the new code works and if you find more issues. Thanks both in advance.
          Hide
          Anthony Borrow added a comment - - edited

          Daniele - OK, in order to keep things straight, I would suggest creating a separate Moodle Docs page for the userwindow block and add a link from the contact form block's original doc page(http://docs.moodle.org/en/Contact_Form_block) to the one for userwindow. Similarly, I think it may be best to create a separate Modules and Plugins entry for userwindow and you can have a link to the contact form block's M&P entry (http://moodle.org/mod/data/view.php?d=13&rid=854) and vice versa. Let me know if you need anything else. For now, I'm going to go ahead and resolve this as fixed. Feel free to comment as needed. Peace - Anthony

          p.s. - I believe you have general access to contrib. Currently I am not able to modify CVS users as everything will be eventually moving toward git.

          Show
          Anthony Borrow added a comment - - edited Daniele - OK, in order to keep things straight, I would suggest creating a separate Moodle Docs page for the userwindow block and add a link from the contact form block's original doc page( http://docs.moodle.org/en/Contact_Form_block ) to the one for userwindow. Similarly, I think it may be best to create a separate Modules and Plugins entry for userwindow and you can have a link to the contact form block's M&P entry ( http://moodle.org/mod/data/view.php?d=13&rid=854 ) and vice versa. Let me know if you need anything else. For now, I'm going to go ahead and resolve this as fixed. Feel free to comment as needed. Peace - Anthony p.s. - I believe you have general access to contrib. Currently I am not able to modify CVS users as everything will be eventually moving toward git.
          Hide
          Anthony Borrow added a comment -

          Daniele - Just changing the issue description so that it says block instead of module. I'll leave it to you to make Docs and M&P entries. It looks like Matt Campbell added the contact form block's M&P entry so you may want to contact him about making the change. Just send me an email, Moodle message or post here the URL of the M&P entry and I'll happily review it. Peace - Anthony

          Show
          Anthony Borrow added a comment - Daniele - Just changing the issue description so that it says block instead of module. I'll leave it to you to make Docs and M&P entries. It looks like Matt Campbell added the contact form block's M&P entry so you may want to contact him about making the change. Just send me an email, Moodle message or post here the URL of the M&P entry and I'll happily review it. Peace - Anthony
          Hide
          Anthony Borrow added a comment -

          Daniele - I will leave it to you to take care of Docs and M&P entries. Let me know if I can be of any help. Peace - Anthony

          Show
          Anthony Borrow added a comment - Daniele - I will leave it to you to take care of Docs and M&P entries. Let me know if I can be of any help. Peace - Anthony
          Hide
          Daniele Cordella added a comment -

          Ciao Antony
          following our conversation I start by submitting the renamed version of the block. Its last (and definitive) name is user_contact.
          I submitted a new M&P record as well. As already said, I was not alble to link the zip package.
          Please, complete my M&P submission with the attached zip file.
          Please also delete the old user_window folder from CVS and create the new one for this block.
          I am going to add the documentation page for this block too.
          Thanks for your contribution.
          Ciao.

          Show
          Daniele Cordella added a comment - Ciao Antony following our conversation I start by submitting the renamed version of the block. Its last (and definitive) name is user_contact. I submitted a new M&P record as well. As already said, I was not alble to link the zip package. Please, complete my M&P submission with the attached zip file. Please also delete the old user_window folder from CVS and create the new one for this block. I am going to add the documentation page for this block too. Thanks for your contribution. Ciao.
          Hide
          Daniele Cordella added a comment -

          minor minor improvements

          Show
          Daniele Cordella added a comment - minor minor improvements
          Hide
          Anthony Borrow added a comment -

          Daniele - I've added the files from the zip file to CVS. Let me know if you have access. I'm rushing on this in between classes so please double check what I've done. Peace - Anthony

          Show
          Anthony Borrow added a comment - Daniele - I've added the files from the zip file to CVS. Let me know if you have access. I'm rushing on this in between classes so please double check what I've done. Peace - Anthony
          Hide
          Daniele Cordella added a comment -

          Ciao Antony I have a question that does not belong to this specific tracker issue but is more general, I suppose.
          I added the code of this user_contact block, in zip format, to this tracker issue.
          You, kindly, added my files from the zip file to CVS.
          Now I would like to point the zip file from within the "Modules&Plugin" database. I am talking about the form available (with correct permissions) in http://moodle.org/mod/data/view.php?d=13&rid=4513.
          Which URL am I supposed to write in order to link user_contact.zip file?
          Maybe I should write something like: http://download.moodle.org/download.php/plugins/blocks/user_contact.zip but I can not guess it. I believe a general answer should be provided not only here but, mainly, in moodle documentation.
          Thanks in advance.

          Show
          Daniele Cordella added a comment - Ciao Antony I have a question that does not belong to this specific tracker issue but is more general, I suppose. I added the code of this user_contact block, in zip format, to this tracker issue. You, kindly, added my files from the zip file to CVS. Now I would like to point the zip file from within the "Modules&Plugin" database. I am talking about the form available (with correct permissions) in http://moodle.org/mod/data/view.php?d=13&rid=4513 . Which URL am I supposed to write in order to link user_contact.zip file? Maybe I should write something like: http://download.moodle.org/download.php/plugins/blocks/user_contact.zip but I can not guess it. I believe a general answer should be provided not only here but, mainly, in moodle documentation. Thanks in advance.
          Hide
          Anthony Borrow added a comment -

          Daniele - Your guess about the download URL was correct. We just had to give it time to be created. Any changes made to CVS can take up to 24 hours for them to be included in the next build of the zip file. The URL you gave is now working since the file has been built. Thanks for your patience and let me know if you have any other questions. Peace - Anthony

          Show
          Anthony Borrow added a comment - Daniele - Your guess about the download URL was correct. We just had to give it time to be created. Any changes made to CVS can take up to 24 hours for them to be included in the next build of the zip file. The URL you gave is now working since the file has been built. Thanks for your patience and let me know if you have any other questions. Peace - Anthony
          Hide
          Daniele Cordella added a comment -

          Ciao Antony
          As far as I can understand, the folder http://cvs.moodle.org/contrib/plugins/blocks/userwindow/ is obsolete and useless.
          You created it because of this same issue (CONTRIB-2562) because of my fault when I started calling this block with a name that I no longer like.
          Userwindow has never existed so it has no 1.x branch. Because of these reasons I believe it can be safely removed.

          On the same topic, may I ask you to add a new project for "user contact" in http://tracker.moodle.org/browse/CONTRIB to redirect user's issues. I will point it from the page of "user contact" in Modules and Plugins (http://moodle.org/mod/data/view.php?d=13&rid=4513).

          3. please, add a new forum in Using Moodle http://moodle.org/course/view.php?id=5 to discuss about this new contrib block, too.

          Thanks in advance for your time and support.
          Ciao.

          Show
          Daniele Cordella added a comment - Ciao Antony As far as I can understand, the folder http://cvs.moodle.org/contrib/plugins/blocks/userwindow/ is obsolete and useless. You created it because of this same issue ( CONTRIB-2562 ) because of my fault when I started calling this block with a name that I no longer like. Userwindow has never existed so it has no 1.x branch. Because of these reasons I believe it can be safely removed. On the same topic, may I ask you to add a new project for "user contact" in http://tracker.moodle.org/browse/CONTRIB to redirect user's issues. I will point it from the page of "user contact" in Modules and Plugins ( http://moodle.org/mod/data/view.php?d=13&rid=4513 ). 3. please, add a new forum in Using Moodle http://moodle.org/course/view.php?id=5 to discuss about this new contrib block, too. Thanks in advance for your time and support. Ciao.
          Hide
          irith herman added a comment -

          Hi
          i installed the block on moodle 2.3 but i get an error
          PHP catchable fatal error

          Show
          irith herman added a comment - Hi i installed the block on moodle 2.3 but i get an error PHP catchable fatal error
          Hide
          Daniele Cordella added a comment -

          Ciao Irith
          I am not sure if user_contact works in moodle newer than 2.1
          I am sorry, I still love that block but, at the moment, I have no time at all to upgrade it too.

          Show
          Daniele Cordella added a comment - Ciao Irith I am not sure if user_contact works in moodle newer than 2.1 I am sorry, I still love that block but, at the moment, I have no time at all to upgrade it too.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development