atutor.no

Here be links.

Howto remove "subscribe to thread" feature

Vegard A. Johansen's picture

Recently we had a project meeting and went through some feedback from the users of one of our courses. One thing that came up which kind of surprised me at first was that many users didn't get the difference between the "subscribe to forums" functionality and the "subscribe to thread" functionality. They wondered why they had to subscribe to the thread when they were allready subscribed to the forum.

Well, they don't of course, but when thinking of it you can understand the question. If you are subscribed to a forum allready, the system shouldn't give you the possibility to subscribe to the threads within it.

The good way to solve this would be to only allow subscription to threads if the user isn't subscribed to the forum they belong in, but the easy way is to just remove the possibility to subscribe to threads alltogether. This is what I will try and see if I get any reactions.

To do this, find the include/html/forum.inc.php, scroll down to lines 156 - 162 and comment out the following code:

<?php
    
if ($_SESSION['enroll'] && !$row['locked']) {
            if (isset(
$last_accessed[$row['post_id']]) && $last_accessed[$row['post_id']]['subscribe']){
                echo 
' <br /><small><a href="forum/subscribe.php?us=1'.SEP.'pid='.$row['post_id'].SEP.'fid='.$fid.SEP.'t=1">('._AT('unsubscribe1').')</a></small>';
            } else {
                echo 
' <br /><small><a href="forum/subscribe.php?pid='.$row['post_id'].SEP.'fid='.$fid.SEP.'t=1">('._AT('subscribe1').')</a></small>';
            }
        }
;
?>

Many people would probably object to removing functionality, but I try to live by the KISS principle instead!

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

Hi, this is the atutor.no blog, where the community can blog about things related to use, development or thoughts concerning the open source LCMS ATutor!

Register or log in to start blogging, or get in touch for any reason!

Recent comments