Jerry Lau hozzászólásai

hello everyone.

moodle 3.6.8 on redhat 7.8 64 bit and mysql 7.7 and php 7.2.x

I am trying to learning moodle and one of the simple things I wish to learn is to how check if a user has already logged in to page I have built (a simple hello world string) and only those that have moodle administrative role are able to view that page.

For example my page, called test.php is located at https://ourmoodle.url.com/whatever/ folder

if a user tries to go to https://ourmoodle.url.com/whatever/test.php, it should first check to see if they have logged in and if not, they are redirected to the login page.

If they are logged in already, it checks to see if they are part of administrative group.

How do I accomplish that in my test.php page?

thanks

Jerry






Értékelések átlaga: -

Hello.

Just wanted to confirm that if users were enrolled via database enrolment, there is no way to manually unenrol sudents or participants we choose or selectively  on the participants page, correct? 

We wish to have the same options to unenrol participants the same way as those added manually but were added through database enrolment originally.

If this is not  available, how and where do we write to request this feature in moodle?

Btw, I can it via sql hack manually but prefer  to it using a moodle feature, plugin instead.

Thanks!


Értékelések átlaga: -

Just wanted to confirm that if users were enrolled via database enrolment, there is no way to manually unenrol sudents or participants we choose or selectively  on the participants page, correct? 

We wish to have the same options to unenrol participants the same way as those added manually but were added through database enrolment originally.

If this is not  available, how and where do we write to request this feature in moodle?

Btw, I can it via sql hack manually but prefer  to it using a moodle feature, plugin instead.

Thanks!



Értékelések átlaga: -
I think its a bug in the system... when teachers add them manually to a course before database enrolment, the participant's page for that course shows 2 enrolment types (makes sense) but now teachers cannot manually unenrol users to their course.
Just to add to this.. the teacher added the users manually before the auto database enrolment and thus they have 2 enrolment types now when they see their participants list

dual enrolments in participant page