Administrator Logs - Hide them?

Administrator Logs - Hide them?

by A. H. -
Number of replies: 10
Dear All,

This might not seem urgent but believe me it is when people become very picky and check the access logs to their course every hour...

How can i hide the access logs to courses so that when you go to logs as instructor, you will see all logs except for those of the administrator?

Which files do i need to edit?

Thank you for the help,
amer
Average of ratings: -
In reply to A. H.

Re: Administrator Logs - Hide them?

by A. H. -
Moodle version is 1.6.5, missed that.

regards,
amer
In reply to A. H.

Re: Administrator Logs - Hide them?

by A. H. -
guess no one thought about this before? big grin
In reply to A. H.

Re: Administrator Logs - Hide them?

by A. H. -
Ok, when you into the course logs, you can choose "All Participants" or a certain user.

How can i remove the administrator from appearing in the logs generated when i select "All Participants"?

I am searching for the sql statement which gets all the users or to the function which does this call. Any suggestion where should i look?
In reply to A. H.

Re: Administrator Logs - Hide them?

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hi Amer,
I quite agree that it would be nice to remove administrator (and/or teacher(s)) from the All Logs list. I posted MDL-2633 more than 2 years ago, but no-one seems to need this.
Joseph
In reply to Joseph Rézeau

Re: Administrator Logs - Hide them?

by A. H. -
Joseph,
i just need to know where to search for the function and i will modify...sad
its causing us a lot of trouble here.

regards,
amer
In reply to A. H.

Re: Administrator Logs - Hide them?

by Petr Kalis -
Hi
Please take a look on attached zip. I tried to address this problem.
Code checks if a watching user is a admin, if yes, it shows everything, in other case it leaves out admins logs.
I betatested it for only a small amount of time so please check it out and let me know, if its working and if its adressing your problem.
I hope this helps
PK
In reply to Petr Kalis

Re: Administrator Logs - Hide them?

by A. H. -
hi Petr,
Unfortunately, when i replace your file with the original one, moodle1.6.5 returns a blank white page.
If u can tell me which function you modified so that i try to modify in the original code.
thnx,
amer
In reply to A. H.

Re: Administrator Logs - Hide them?

by Petr Kalis -
Och, sorry, i uploaded wrong version(1.8).
I modified function get_logs (look for part beginning and ending with -dfa- )
I am attaching modified files for versions 1.5,1.6 and 1.8, they differ in one condition.
PK
In reply to Petr Kalis

Re: Administrator Logs - Hide them?

by A. H. -
Hello Petr,

Did you know that your code might be very important to some and cant live without anymore?smile
Did you modify it for moodle 1.9?

I have this code applied on 1.8, but some instructors were able to see the admin in their course when they used the block "Online Users" smile



thnx,
amer
In reply to A. H.

Re: Administrator Logs - Hide them?

by A. H. -

Hello Petr!

Seems am still interested in your code for hiding admin logs smile.

Did you manage to update it for Moodle 2.x?

I appreciate your help.

 

thnx,

amer