Page 1 of 1
Home screen or register form for non-logged in users
Posted: Mon Oct 17, 2022 4:38 pm
by mjd300
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)
Re: Home screen or register form for non-logged in users
Posted: Mon Oct 17, 2022 5:15 pm
by gerese
Hi , read
here, it may help you .
Re: Home screen or register form for non-logged in users
Posted: Mon Oct 17, 2022 7:24 pm
by mjd300
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)
Re: Home screen or register form for non-logged in users
Posted: Mon Oct 17, 2022 8:54 pm
by miasoft
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)
I did so:
viewtopic.php?p=25072#p25072
User get password on your email after self-registration
Re: Home screen or register form for non-logged in users
Posted: Mon Oct 17, 2022 9:29 pm
by mjd300
Thanks miasoft. That looks great.
Where did you put that AddUserFunction() function and input?
Re: Home screen or register form for non-logged in users
Posted: Mon Oct 17, 2022 10:03 pm
by miasoft
mjd300 wrote: ↑Mon Oct 17, 2022 9:29 pm
Thanks miasoft. That looks great.
Where did you put that AddUserFunction() function and input?
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>
";
/* */
Re: Home screen or register form for non-logged in users
Posted: Mon Oct 17, 2022 10:45 pm
by mjd300
Thanks, appreciate the help. I will try this