Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-1975

Guests reach a lot of dead ends in Moodle

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Forum
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      As I was hacking my Moodle to make it easier for non-registered site users to sign up for my site news, I realized that if someone happens to get to your site as a guest (eg via Google), they are often presented with a lot of dead ends. For example, if they try to post a message to a forum, they get the message Guests are not allowed to post. However, they are not explicitly presented with an option at that point to login or register. I wrote a hack for when people try to subscribe to a forum while logged in as guest, which I will paste below. I think it would be useful if something like this were implemented sitewide to replace the dead ends that guests might encounter. In forum/subscribe.php, I changed the line that starts with if (isguest()) to:

      if (isguest())

      { error(<center>You are currently logged in as a guest. Guests must register before they can subscribe to forums on this site. You may <a href=\/login/signup.php?\>register for a free account</a> now. If you are already registered, you can <a href=\/login/index.php\>log in</a>. If you simply wish to continue browsing the site without registering or logging in, click 'Continue' below.</center>, $_SERVER[HTTP_REFERER]); }

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: