Best practice forum (Archived)

Relocate button "Create new account"

 
Nathan Lewis
Re: Relocate button "Create new account"
de Nathan Lewis - Wednesday, 4 de December de 2013, 12:26
Grupo Totara

Hi Tom.

Email signup is done through a separate module from the login. When you see the login on the left and the email signup on the right, you're basically looking at two separate modules. As such, there's no one place to make a change if you want to change the code that generates the login page.

But I did think of a solution that works most of the time and might be satisfactory. With javascript on the client's computer, you should be able to move the form that contains the register button. I suggest including that js file from somewhere in the register module (I haven't investigated exactly where it is - I'd pretty much have to write the whole thing myself to find that answer, but if your programmer is capable of writing the code then they'll easily be able to figure out where it should go). In the js, locate the form with the button, remove the whole form from where it is now and insert it where you want it (be sure it isn't inserted inside another form or else you'll break things). Using this solution, if the user doesn't have js enabled then the button will remain where it is on the right.

I'm not a js expert, but from what I know I think it shouldn't be a lot of work to do, maybe a couple of hours to implement and test. You should get in contact with your Totara partner and ask them for help.

Nathan