Authenticated User Message to Self-Enrol in a Course?

Authenticated User Message to Self-Enrol in a Course?

by Gary Marsh -
Number of replies: 4

MOODLE Version: 3.1.5 (Build: 20170313)      Database:  mysql (5.7.20-0ubuntu0.16.04.1)

I would like to have a clearer 'Must Enrol' message for an 'Authenticated User' when they attempt to do something.

Selecting the 'Book module:

  • 'Guest' action;
    • Sent to site login page - This is good!

  • 'Authenticated User' action;
    • Book Msg image 1 - Too vague.

    • Book Msg image 2 - Would be better.

Is there a way to:

  1. Change the message text to something like:
    "You need to enrol in this course to do anything. See the 'Course Administration' block on this page";

    AND/OR

  2. Expand the 'Course Administration' by default.
Attachment Book Image.png
Average of ratings: -
In reply to Gary Marsh

Re: Authenticated User Message to Self-Enrol in a Course?

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

You can edit the language string to change the text.

The block will remember the user's preference - normally they are expanded initially.

In reply to Emma Richardson

Re: Authenticated User Message to Self-Enrol in a Course?

by Gary Marsh -

Thank you Emma;

You've given me hope and another question. Where do I find the language string so that I can edit it?

In reply to Gary Marsh

Re: Authenticated User Message to Self-Enrol in a Course?

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Site admin/language/customization

In reply to Emma Richardson

Re: Authenticated User Message to Self-Enrol in a Course?

by Gary Marsh -

Excellent!     Thank you, once again.

Another Question:     There is a "Continue" button (See attached image) that does nothing when selected.     Is it possible for me to hide the button or program it to jump to another page   i.e. the Front Page or Previous Page?

Also wondering whether that error message will show under a different circumstance and now, the message is too specific.     What do you think?

G

Attachment Enroll Message.png