I cannot find any reference in docs or forum regarding a non-user registration form or page, or a page available to non-logged in users.
I have searched every way I can think of. The relevant youtube videos I have found refer only to adding users manually. Maybe I have missed something here.
My first project aim was a new user registration form / page so users could register themselves (and be given a set access level)
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Home screen or register form for non-logged in users Topic is solved
Re: Home screen or register form for non-logged in users
Thanks for the link. It is great info regarding login for existing users, but it doesn't cover registration / sign up (and I couldn't find anything in the help docs)
-
- Posts: 156
- Joined: Wed Dec 23, 2020 12:28 pm
- Location: Russia, Volgograd
- Has thanked: 32 times
- Been thanked: 7 times
- Contact:
Re: Home screen or register form for non-logged in users
I did so:mjd300 wrote: ↑Mon Oct 17, 2022 4:38 pm I cannot find any reference in docs or forum regarding a non-user registration form or page, or a page available to non-logged in users.
I have searched every way I can think of. The relevant youtube videos I have found refer only to adding users manually. Maybe I have missed something here.
My first project aim was a new user registration form / page so users could register themselves (and be given a set access level)
viewtopic.php?p=25072#p25072
User get password on your email after self-registration
Wbr, miasoft.
Re: Home screen or register form for non-logged in users
Thanks miasoft. That looks great.
Where did you put that AddUserFunction() function and input?
Where did you put that AddUserFunction() function and input?
-
- Posts: 156
- Joined: Wed Dec 23, 2020 12:28 pm
- Location: Russia, Volgograd
- Has thanked: 32 times
- Been thanked: 7 times
- Contact:
Re: Home screen or register form for non-logged in users
I put AddUserFunction() in Setup->Header
and custmise login form in nuconfig.php
Code: Select all
// Uncomment this block to customise the login form:
/* */
$nuWelcomeBodyInnerHTML = "
<div id='outer' style='width:100%'>
<form id='nuLoginForm' action='#' method='post' onsubmit='return false' >
<div id='login' class='nuLogin' style='height:55%; background-color:#FCFABA'>
<a target='_blank' rel='noopener noreferrer' href='http://www.miasoft.h1n.ru'><img src='libs/graphics/MIAlogo.png' alt='MIASOFT' width='45' height='45'></a
<table style='height: 425px; width: 352px; width=452 cellspacing=5'>
<tr>
<td align='left' style='padding:0px 0px 0px 3px; width=45%;>
>
</td>
</tr>
<tr>
<td align='left' style='padding:0px 0px 0px 33px; text-align:center'>
<a target='_blank' rel='noopener noreferrer' href='http://www.xxx.xx'><img src='libs/graphics/vmk_a.gif' alt='VMK'></a>
</td>
</tr>
<tr>
<td style='text-align:center';margin-bottom: 25px; colspan='1'> <br><br>
<h3>Предварительная заявка на первичную специализированную аккредитацию (СПО)</h3>
</td>
</tr>
<tr>
<td style='text-align:center';margin-bottom: 25px; colspan='1'>
<input id='submit' style='width:180px;height:50px; cursor:pointer;' type='submit' class='nuButton' onClick='AddUserFunction()' value='Первичная регистрация'/>
</td>
</tr>
<tr>
<td> <br> <br>
<div style='width:350px;text-align:center; margin-bottom: 15px;'>Для входа в ЛК (если уже получили логин и пароль)</div>
</td>
</tr>
<tr>
<td><div style='width:50px; margin-bottom: 5px;'>Логин</div><input class='nuLoginInput' id='nuusername' autocomplete='off' /><br><br></td>
</tr>
<tr>
<td><div style='width:50px; margin-bottom: 5px;'>Пароль</div><input class='nuLoginInput' id='nupassword' type='password' autocomplete='off' onkeypress='nuSubmit(event)'/><br></td>
</tr>
<tr>
<td style='text-align:center' colspan='1'>
<input id='submit' style='width:180px;height:50px; cursor:pointer;' type='submit' class='nuButton' onclick='nuLoginRequest()' value='Вход в личн. кабинет'/>
</td>
</tr>
<td style='text-align:center' colspan='1'>
<input type='checkbox' onclick='myFunction()'/>Показать пароль
</td>
</tr>
</table>
</div>
</form>
</div>
";
/* */
Wbr, miasoft.
Re: Home screen or register form for non-logged in users
Thanks, appreciate the help. I will try this