Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-612

An alternative new forum posts block that only displays new posts in threads that the current user has posted messages in.

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.1
    • Fix Version/s: None
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      An alternative display of new forum posts that limits the display to posts in threads the user has been active in.

      It has three display modes available (set by the teacher).

      1. Display a list of new replies to the current user's posts.
      2. Display a list of all new posts in threads where the current user has already posted a message.
      3. Display a list of threads which the current user has participated in thart have new posts (with the number of new posts).

      The title of the block can also be customized.

      Installation.

      1. Copy the folder new_forum_posts to the blocks directory of the Moodle installation
      2. Browse to /admin/ to get it installed.

        Gliffy Diagrams

          Activity

          Hide
          aborrow Anthony Borrow added a comment -

          Niall - Sorry for the delay, I'm just now catching up and taking a look at this block now. Thanks for your patience and sharing the code. Peace - Anthony

          Show
          aborrow Anthony Borrow added a comment - Niall - Sorry for the delay, I'm just now catching up and taking a look at this block now. Thanks for your patience and sharing the code. Peace - Anthony
          Hide
          aborrow Anthony Borrow added a comment -

          Niall - I did come across:

          Notice: Undefined variable: newpostssel in /home/arborrow/Moodle/code/19stable/blocks/new_forum_replies/config_instance.html on line 11
          Notice: Undefined property: stdClass::$title in /home/arborrow/Moodle/code/19stable/blocks/new_forum_replies/config_instance.html on line 13

          so you may want to do some testing with debugging set to on. I did a fresh install, went to notifications. Likely this will be resolved after going there the first time and will not be visible by most users but it is not to clean things up to avoid PHP notices as much as possible by checking variables before using them.

          Peace - Anthony

          Show
          aborrow Anthony Borrow added a comment - Niall - I did come across: Notice: Undefined variable: newpostssel in /home/arborrow/Moodle/code/19stable/blocks/new_forum_replies/config_instance.html on line 11 Notice: Undefined property: stdClass::$title in /home/arborrow/Moodle/code/19stable/blocks/new_forum_replies/config_instance.html on line 13 so you may want to do some testing with debugging set to on. I did a fresh install, went to notifications. Likely this will be resolved after going there the first time and will not be visible by most users but it is not to clean things up to avoid PHP notices as much as possible by checking variables before using them. Peace - Anthony
          Hide
          aborrow Anthony Borrow added a comment -

          Actually I think that line 11 is the result of a typo on line 7 which should be:

          $newpostssel = $this->config->style=='newposts'?'checked="1"':'';

          instead of the triple 's'

          $newpostsssel = $this->config->style=='newposts'?'checked="1"':'';

          Show
          aborrow Anthony Borrow added a comment - Actually I think that line 11 is the result of a typo on line 7 which should be: $newpostssel = $this->config->style=='newposts'?'checked="1"':''; instead of the triple 's' $newpostsssel = $this->config->style=='newposts'?'checked="1"':'';
          Hide
          aborrow Anthony Borrow added a comment -

          Niall - I've added the block to CVS. I corrected the typo on line 7 and went ahead and did a quick translation into Spanish. I will go ahead and create a component in the tracker and bump your privileges so that you can manage issues related to the new_forum_replies block. I have added the contrib/plugins/blocks/new_forum_replies folder to the list of files you have write access to on CVS. If you could take a look at: http://docs.moodle.org/en/Development:Guidelines_for_contributed_code to make sure that you have cover as many of the points as possible (creating an entry in the Modules & Plugins database, posting about this block, setting up the link to the download automatically created by the Moodle download server, documentation, etc. Let me know if you have any questions or if there is anything else I can do to be of help. Thanks for sharing this code with the community as it looks to be a helpful way of navigating busy forum areas. Peace - Anthony

          Show
          aborrow Anthony Borrow added a comment - Niall - I've added the block to CVS. I corrected the typo on line 7 and went ahead and did a quick translation into Spanish. I will go ahead and create a component in the tracker and bump your privileges so that you can manage issues related to the new_forum_replies block. I have added the contrib/plugins/blocks/new_forum_replies folder to the list of files you have write access to on CVS. If you could take a look at: http://docs.moodle.org/en/Development:Guidelines_for_contributed_code to make sure that you have cover as many of the points as possible (creating an entry in the Modules & Plugins database, posting about this block, setting up the link to the download automatically created by the Moodle download server, documentation, etc. Let me know if you have any questions or if there is anything else I can do to be of help. Thanks for sharing this code with the community as it looks to be a helpful way of navigating busy forum areas. Peace - Anthony
          Hide
          aborrow Anthony Borrow added a comment -

          moving to Block: New Forum Replies

          Show
          aborrow Anthony Borrow added a comment - moving to Block: New Forum Replies
          Hide
          aborrow Anthony Borrow added a comment -

          Niall - I have added code to CVS, component created, component lead assigned, CVS write access granted - am I forgetting anything? I'm marking this as resolved but feel free to comment if there is anything else you need. Great work! Peace - Anthony

          Show
          aborrow Anthony Borrow added a comment - Niall - I have added code to CVS, component created, component lead assigned, CVS write access granted - am I forgetting anything? I'm marking this as resolved but feel free to comment if there is anything else you need. Great work! Peace - Anthony
          Hide
          uwchris Chris Barrett added a comment -

          Hi Niall/Anthony,
          the zip file still has the code with the typos/bugs in them. Should I not use this version, and go after it in cvs instead?
          Thanks!
          Chris

          Show
          uwchris Chris Barrett added a comment - Hi Niall/Anthony, the zip file still has the code with the typos/bugs in them. Should I not use this version, and go after it in cvs instead? Thanks! Chris
          Hide
          aborrow Anthony Borrow added a comment -

          Chris - Just to be clear, which zip file are you referring to? Could you give me the URL so that I can see to what you are referring? Also, since it has been a while since I have looked at this code, let me know specifically which typos and which bugs you are referring to. Peace - Anthony

          Show
          aborrow Anthony Borrow added a comment - Chris - Just to be clear, which zip file are you referring to? Could you give me the URL so that I can see to what you are referring? Also, since it has been a while since I have looked at this code, let me know specifically which typos and which bugs you are referring to. Peace - Anthony
          Hide
          niallbarr Niall Barr added a comment -

          Chris - I think that is correct, Anthony corrected some things in CVS. I think I forgot to make an updated zip version, so use the code from CVS.

          Show
          niallbarr Niall Barr added a comment - Chris - I think that is correct, Anthony corrected some things in CVS. I think I forgot to make an updated zip version, so use the code from CVS.
          Hide
          aborrow Anthony Borrow added a comment -

          Is there a Modules and Plugins entry for the code Niall provided. It is not clear to me where Chris found the link to the download. If we do not have an entry in the Modules and Plugins database it would be helpful if Niall could add one. Also, I think there should be a page in Moodle Docs (if there is not already). Thanks for following up on this. I just want to ensure that folks know where to get the code if they are interested. Let me know if I can do anything to be of help. Peace - Anthony

          Show
          aborrow Anthony Borrow added a comment - Is there a Modules and Plugins entry for the code Niall provided. It is not clear to me where Chris found the link to the download. If we do not have an entry in the Modules and Plugins database it would be helpful if Niall could add one. Also, I think there should be a page in Moodle Docs (if there is not already). Thanks for following up on this. I just want to ensure that folks know where to get the code if they are interested. Let me know if I can do anything to be of help. Peace - Anthony
          Hide
          aborrow Anthony Borrow added a comment -

          Closing all of my resolved issues. Peace - Anthony

          Show
          aborrow Anthony Borrow added a comment - Closing all of my resolved issues. Peace - Anthony
          Hide
          dburdick Debra Burdick added a comment -

          Is this available for moodle 2. Probably wont do a upgrade on production server until next fall at the earliest but know we can not live without this. Should definitely be core, if it is not already. Dynamite block and has increased forum participation exponentially!

          Show
          dburdick Debra Burdick added a comment - Is this available for moodle 2. Probably wont do a upgrade on production server until next fall at the earliest but know we can not live without this. Should definitely be core, if it is not already. Dynamite block and has increased forum participation exponentially!

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development