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
Moodle version is 1.6.5, missed that.
regards,
amer
regards,
amer
guess no one thought about this before?

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?
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?
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
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
Joseph,
i just need to know where to search for the function and i will modify...
its causing us a lot of trouble here.
regards,
amer
i just need to know where to search for the function and i will modify...
its causing us a lot of trouble here.
regards,
amer
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
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
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
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
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
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
Hello Petr,
Did you know that your code might be very important to some and cant live without anymore?
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"
thnx,
amer
Did you know that your code might be very important to some and cant live without anymore?

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"

thnx,
amer
Hello Petr!
Seems am still interested in your code for hiding admin logs .
Did you manage to update it for Moodle 2.x?
I appreciate your help.
thnx,
amer