Add Register User link at login page
Moderator: Thorsten
Add Register User link at login page
Hi everyone,
How can i add a extra link next to the forget password link that allows for new users to register? when clicking on the link i want to show a form where people can fill in there name, company and email. when sending the admin will receive a email so he can create a user account to login to the secured area of the FAQ.
How can i add a extra link next to the forget password link that allows for new users to register? when clicking on the link i want to show a form where people can fill in there name, company and email. when sending the admin will receive a email so he can create a user account to login to the secured area of the FAQ.
Re: Add Register User link at login page
Hi,
you can add a "normal" HTML link to the page "?action=register":
bye
Thorsten
you can add a "normal" HTML link to the page "?action=register":
Code: Select all
<a href="?action=register">Register here</a>
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Add Register User link at login page
Hi Thorsten you mean add it to the login.tpl?Thorsten wrote:Hi,
you can add a "normal" HTML link to the page "?action=register":
byeCode: Select all
<a href="?action=register">Register here</a>
Thorsten
Re: Add Register User link at login page
Hi,
yes.
bye
Thorsten
yes.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Add Register User link at login page
Will give it a tryThorsten wrote:Hi,
yes.
bye
Thorsten
Re: Add Register User link at login page
Hi Thorsten,
Could you show me where to implement in the login.tpl?
Could you show me where to implement in the login.tpl?
Code: Select all
<section>
<header>
<h2>{loginHeader}</h2>
</header>
[useSslForLogins]
<p>
<a href="{secureloginurl}">{securelogintext}</a>
</p>
[/useSslForLogins]
{loginMessage}
<form class="form-horizontal" action="{writeLoginPath}" method="post" accept-charset="utf-8">
<input type="hidden" name="faqloginaction" value="{faqloginaction}"/>
<div class="control-group">
<label class="control-label" for="faqusername">{username}</label>
<div class="controls">
<input type="text" name="faqusername" id="faqusername" required="required" autofocus="autofocus">
</div>
</div>
<div class="control-group">
<label class="control-label" for="faqpassword">{password}</label>
<div class="controls">
<input type="password" name="faqpassword" id="faqpassword" required="required">
<p class="help-block">{sendPassword}</p>
</div>
</div>
<div class="control-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox" id="faqrememberme" name="faqrememberme" value="rememberMe">
{rememberMe}
</label>
</div>
</div>
<div class="form-actions">
<button class="btn btn-primary" type="submit">
{loginHeader}
</button>
</div>
</form>
</section>
Re: Add Register User link at login page
Hi,
maybe this way:
bye
Thorsten
maybe this way:
Code: Select all
<section>
<header>
<h2>{loginHeader}</h2>
</header>
[useSslForLogins]
<p>
<a href="{secureloginurl}">{securelogintext}</a>
</p>
[/useSslForLogins]
{loginMessage}
<form class="form-horizontal" action="{writeLoginPath}" method="post" accept-charset="utf-8">
<input type="hidden" name="faqloginaction" value="{faqloginaction}"/>
<div class="control-group">
<label class="control-label" for="faqusername">{username}</label>
<div class="controls">
<input type="text" name="faqusername" id="faqusername" required="required" autofocus="autofocus">
</div>
</div>
<div class="control-group">
<label class="control-label" for="faqpassword">{password}</label>
<div class="controls">
<input type="password" name="faqpassword" id="faqpassword" required="required">
<p class="help-block">{sendPassword}</p>
<p class="help-block"><a href="?action=register">Register here</a></p>
</div>
</div>
<div class="control-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox" id="faqrememberme" name="faqrememberme" value="rememberMe">
{rememberMe}
</label>
</div>
</div>
<div class="form-actions">
<button class="btn btn-primary" type="submit">
{loginHeader}
</button>
</div>
</form>
</section>
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Add Register User link at login page
Hi Thorsten, works good.... however it displays the register form in the same page with the header of the login page on top... can i get the register page as a pop-up?Thorsten wrote:Hi,
maybe this way:
byeCode: Select all
<section> <header> <h2>{loginHeader}</h2> </header> [useSslForLogins] <p> <a href="{secureloginurl}">{securelogintext}</a> </p> [/useSslForLogins] {loginMessage} <form class="form-horizontal" action="{writeLoginPath}" method="post" accept-charset="utf-8"> <input type="hidden" name="faqloginaction" value="{faqloginaction}"/> <div class="control-group"> <label class="control-label" for="faqusername">{username}</label> <div class="controls"> <input type="text" name="faqusername" id="faqusername" required="required" autofocus="autofocus"> </div> </div> <div class="control-group"> <label class="control-label" for="faqpassword">{password}</label> <div class="controls"> <input type="password" name="faqpassword" id="faqpassword" required="required"> <p class="help-block">{sendPassword}</p> <p class="help-block"><a href="?action=register">Register here</a></p> </div> </div> <div class="control-group"> <div class="controls"> <label class="checkbox"> <input type="checkbox" id="faqrememberme" name="faqrememberme" value="rememberMe"> {rememberMe} </label> </div> </div> <div class="form-actions"> <button class="btn btn-primary" type="submit"> {loginHeader} </button> </div> </form> </section>
Thorsten
Re: Add Register User link at login page
Hi,
it's not that easy in a popup as we need a stripped down page and layout for that.
bye
Thorsten
it's not that easy in a popup as we need a stripped down page and layout for that.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Add Register User link at login page
Hi Thorsten,
I have a issue with register new users.... when creating a new account it says's you dont have enough permissions..
How can i solve this?
Regards,
Tony.
I have a issue with register new users.... when creating a new account it says's you dont have enough permissions..
How can i solve this?
Regards,
Tony.
Re: Add Register User link at login page
Hi,
where do you get this notification?
bye
Thorsten
where do you get this notification?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Add Register User link at login page
As soon i filled in the register form and click on submit. any idea to solve this?
Re: Add Register User link at login page
Hi,
in frontend or admin backend?
bye
Thorsten
in frontend or admin backend?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Add Register User link at login page
Hi Thorsten,
In the frontend. I have a secured FAQ.. and added the link register to the frontend at the login screen. It rederect me to the register page but as soon i fill in the field and click on submit it give me the error not enough permissions in red.
In the frontend. I have a secured FAQ.. and added the link register to the frontend at the login screen. It rederect me to the register page but as soon i fill in the field and click on submit it give me the error not enough permissions in red.
Re: Add Register User link at login page
Hi,
now I understand. This is a bigger issue with version 2.8. This is fixed in 2.9. I will try to fix that in 2.8, too.
bye
Thorsten
now I understand. This is a bigger issue with version 2.8. This is fixed in 2.9. I will try to fix that in 2.8, too.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist