ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


announcements in current activity box


  • 2017-07-09 12:14:33

    announcements in current activity box

    On My Start page there is the Current Activity box, that box shows some system generated news, such as when I have added a new quiz, and it shows the ammouncements that I have written. I would like to have it show only my own written announcements, no system generated info. I would expect there is a way to limit this through the mysql queries? I've been experimenting but haven't found a way to do it yet.
    Thanks,
    Chip

    ATutor Version:2.2.2.
    PHP Version:5.4.45
    MySQL Version:5.6.35-cll-lve
    OS:Linux 2.6.32-673.26.1.lve1.4.27.el6.x86_64
    My laptop: win8.1 6 gigs ram intel i3

  • 2017-07-12 18:10:35

    Re: announcements in current activity box

    You can disabled Current Activities in the system preferences to remove the system generated info.

  • 2017-07-20 13:37:02

    Re: announcements in current activity box

    Yes, I'm aware of that, but, to reiterate - I would like to have it show only my own written announcements, no system generated info. I would expect there is a way to limit this through the mysql queries? I've been experimenting but haven't found a way to do it yet.

  • 2017-07-20 13:56:21

    Re: announcements in current activity box

    Okay, I guess I'm not understanding what you mean by "system generated info" and "own written announcements".

    All elements in the Current activities are generated through the "module_news.php" file associated with each module.

  • 2017-07-20 22:52:32

    Re: announcements in current activity box

    Ok, what I'm referring to are the notices created by the Atutor system, such as new quizes and tests, or announcements that I create myself. My desire is to prevent the entries that the system creates from being displayed, but I want my announcements displayed. So, in essence, changing the Current Activty listing to Announcements listing.

    I tried modifying every mysql query I could find that appeared to be related to that one db table but nothing I did had any effect on the Current Activity box.

    Maybe for the next verion update there can be a switch to enable/disable either of those types of messages. Or, provide the option of turning on a seperate box for announcements. Then make the two selectable as either shown or not shown on the My Start Page.

    I hope that helps
    :)

  • 2017-07-21 08:45:56

    Re: announcements in current activity box

    There isn't a quick way to disable all except announcements. You would need to either add an exit; statement to the top of all the module_news.php files in the module directories, or disable current activity in system preferences and create something of your own that only displays announcements.

  • 2017-07-21 12:31:06

    Re: announcements in current activity box

    Thanks for the reply. I see there are 11 (if I remember correctly) module_news.php files. Just as a test I added the exit; just before the function announcements_news() line in the announcements/module_news.php file but it broke the Start Page so it displayed nothing. Upon removing the exit; statement the Start Page worked as normal. So, maybe there is more to it than just that one change? If I change all 11 files I'm sure the results will be the same - a broken Start Page, but I could be wrong about that. Please correct me.

  • 2017-07-21 17:37:26

    Re: announcements in current activity box

    Try commenting out the whole function() in the module_news.php files

    /*
    function(){
    ...
    }

    */