add register button

Re: add register button

by Mary Evans -
Number of replies: 2
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi MQ

You can convert the PHP part of the code to your Moodle site's URL

Also if you are using a Bootstrap based theme you can use this HTML instead:

<a class="btn btn-primary" href="http://yoursite.com/login/signup.php"><i class="fa fa-sign-in"> Register</i></a>

so that it looks like this...

Average of ratings: Useful (1)
In reply to Mary Evans

Re: add register button

by m question -

thank you so much

but I still don't know where to add it (which  php file)

I tried the HTML block suggestion but it keeps appearing in front page after login , and if user click on it, it gives error that you can't create account while you log in 

"Confirm: You cannot create a new account because you are already logged in as Admin User."

before login, the block won't show

also, I want the register button to be next to the log in button in the header (in adaptable theme for example) 

how to do that

log in button in theme

thanks again

In reply to m question

Re: add register button

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
try this...
<a id="signup-link" class="btn btn-primary" href="http://yoursite.com/login/signup.php"><i class="fa fa-sign-in"> Register</i></a>

Then add this to the Custom CSS box in Adaptable settings in ..

Administration >  Site Administration > Themes > Adaptable > General settings or one of the many listed for Adaptable.

#signup-link { display: none;}
.notloggedin #signup-link { display: block;}

Then save the settings.

Actually there is nothing stopping you adding this to the Frontpage summary block

then move it to top right of the page. 

Hope this helps?

Mary

EDIT: I've just edited this to fix some typos.

Average of ratings: Useful (1)