How to get rid of the klick on "Guest login" for visitors?

How to get rid of the klick on "Guest login" for visitors?

by Visvanath Ratnaweera -
Number of replies: 5
Picture of Particularly helpful Moodlers Picture of Translators
I want visitors (with no account) be able to browse a particular course, without having to click on a "Login as guest" button. It is perfectly OK that they can not participate in any activities.

I have tried a couple of combinations. The one below sounds the most logical to me. But it doesn't work the way I expected:

- Site administration > Users > Permissions > User policies
-- Role for visitors (notloggedinroleid) = Guest
-- Role for guest (guestroleid) = Guest

- Site administration > Plugins > Authentication > Manage authentication
-- Guest login button (guestloginbutton) = Hide

- Site administration > Plugins > Enrolments > Guest access
-- Require guest access password (enrol_guest | requirepassword) not set
-- Allow guest access (enrol_guest | status) = Yes

- Course > Enrolment methods > Guest access
-- Password (empty)

When somebody else enters the course URL, he is shown the log in screen (without the Guest login button). How can I make him enter the course instead?

Moodle version 3.5.1.
Average of ratings: -
In reply to Visvanath Ratnaweera

Re: How to get rid of the klick on "Guest login" for visitors?

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Have you tried "auto-log in guests"  in Administration > Site administration > Users > Permissions > User policies.? Does that help?

In reply to Mary Cooch

Re: How to get rid of the klick on "Guest login" for visitors?

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi Mary

I omitted that setting. In the earlier setup:
- Site administration > Users > Permissions > User policies
-- Auto-login guests (autologinguests) is checked.

In reply to Visvanath Ratnaweera

Re: How to get rid of the klick on "Guest login" for visitors?

by Floyd Saner -

Documentation for Mary's request is at https://docs.moodle.org/35/en/Guest_access#Auto-login_guests

Average of ratings: Useful (1)
In reply to Floyd Saner

Re: How to get rid of the klick on "Guest login" for visitors?

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi

Thanks. It says:

In Administration > Site administration > Users > Permissions > User policies, you can tick the box so that visitors are automatically logged in as guests when accessing a course with guest access (i.e. they don't have to click the "login as guest button".

Which is already the case.

In Administration > Site administration > Plugins > Authentication > Manage Authentication, you must have "Guest login button" set to "Show".

I know this works. But then the visitor has to press the "Log in as guest" button. I do not want that. (Apart from that, it is also illogical: If the guest log in is automatic, why the need for this button?) Pl. see my original post.

Does it mean what I want is not available?