Community Forums

ATutor Support

announcements in current activity box


You must be signed-in to post.

AuthorSubject
 
Page: 1
chipwiegand
Subject: announcements in current activity boxQuote this post in your reply
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
Posted: 2017-07-09 12:14:33
greg

Avatar for greg
Subject: Re: announcements in current activity boxQuote this post in your reply
You can disabled Current Activities in the system preferences to remove the system generated info.
Posted: 2017-07-12 18:10:35
chipwiegand
Subject: Re: announcements in current activity boxQuote this post in your reply
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.
Posted: 2017-07-20 13:37:02
greg

Avatar for greg
Subject: Re: announcements in current activity boxQuote this post in your reply
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.
Posted: 2017-07-20 13:56:21
chipwiegand
Subject: Re: announcements in current activity boxQuote this post in your reply
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
smile
Posted: 2017-07-20 22:52:32
greg

Avatar for greg
Subject: Re: announcements in current activity boxQuote this post in your reply
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.
Posted: 2017-07-21 08:45:56
chipwiegand
Subject: Re: announcements in current activity boxQuote this post in your reply
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.
Posted: 2017-07-21 12:31:06
greg

Avatar for greg
Subject: Re: announcements in current activity boxQuote this post in your reply
Try commenting out the whole function() in the module_news.php files

/*
function(){
...
}

*/
Posted: 2017-07-21 17:37:26
 
Page: 1

You must be signed-in to post.

Related Articles