General developer forum

changing the standard Signup URL into a specific URL

 
Picture of Franky Just
changing the standard Signup URL into a specific URL
 

In backend of Moodle there is a field to change the Login URL, but I found no field to change the standard Signup url (login/signup.php). I've muddled through the core code and changed in several files temporarily the standard URL into a specific URL.  But sure this is not a fine solution. Is there a smart way to do this with e.g. an override, or with a small auth-plugin?

 
Average of ratings: -
Picture of Darko Miletić
Re: changing the standard Signup URL into a specific URL
Core developersParticularly helpful Moodlers

You can not change the URL using standard methods available in moodle. What you can change is behavior and presentation.

Signup form is implemented in lib/authlib.php in method signup_form(). To override this you would need to create new auth plugin that overrides this method and enables user signup. See auth_email for example of implementing user signup.


 
Average of ratings: Useful (1)
Picture of Franky Just
Re: changing the standard Signup URL into a specific URL
 

There is a solution by using Customscripts, this works now. The specific case is Block coupon. Possibly a new auth plugin - in or not in conjunction with the block coupon - would also work, but that is the question. See remarks from developer of Block coupon.

 
Average of ratings: -