diff --git a/course/lib.php b/home/deans/tmp/lib.php
old mode 100644
new mode 100755
index 6c59172..b9636e9
--- a/course/lib.php
+++ b/home/deans/tmp/lib.php
@@ -1295,7 +1295,9 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
     static $strmovehere;
     static $strmovefull;
     static $strunreadpostsone;
+    static $strunreaddialoguesone;
     static $usetracking;
+    static $useDialogueTracking;
     static $groupings;
 
 
@@ -1312,12 +1314,17 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
         if ($usetracking = forum_tp_can_track_forums()) {
             $strunreadpostsone = get_string('unreadpostsone', 'forum');
         }
+        include_once($CFG->dirroot.'/mod/dialogue/lib.php');
+        if ($useDialogueTracking = dialogue_can_track_dialogue()) {
+            $strunreaddialoguesone = get_string('unreadone', 'dialogue');
+        }
         $initialised = true;
     }
 
     $labelformatoptions = new object();
     $labelformatoptions->noclean = true;
-
+    
+    
 /// Casting $course->modinfo to string prevents one notice when the field is null
     $modinfo = get_fast_modinfo($course);
 
@@ -1447,8 +1454,21 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
                     }
                     echo '</a></span>';
                 }
+                
+            }
+            if ($useDialogueTracking && $mod->modname == 'dialogue') {
+                if ($unread = dialogue_count_unread_entries($mod->instance, $USER->id, $mod)) {
+                    echo '<span class="unread"> <a href="'.$CFG->wwwroot.'/mod/dialogue/view.php?id='.$mod->id.'">';
+                    if ($unread == 1) {
+                        echo $strunreaddialoguesone;
+                    } else {
+                        print_string('unreadnumber', 'dialogue', $unread);
+                    }
+                    echo '</a> </span>';
+                }
             }
 
+
             if ($isediting) {
                 // TODO: we must define this as mod property!
                 if ($groupbuttons and $mod->modname != 'label' and $mod->modname != 'resource' and $mod->modname != 'glossary') {
