So if I rearrange it so that the active field is number five, that should resolve things?
I do still have active as 5, though starting with 0 that probably means it is really 6
This is my amended coding:
$values = explode('|', trim($line));
$values[0] = $_POST['login'];
if (!empty($_POST['password']))
{
$values[1] = md5($_POST['password']);
}
$values[2] = $_POST['email'];
$values[3] = $_POST['firstname'];
$values[4] = $_POST['surname'];
$values[5] = $_POST['active'];
With corresponding amendment elsewhere.
Would simply moving the active field work so that, for example, I have (1) User name,(2) First name, (3) Surname, (4) Email, (5) Active with the hidden password field for the sixth one?
You have asked which version I have, but where is that shown? As I have said I downloaded it on 4th June, but these files were already in existence then. When I look at the About tab it just has Version 14 (May 7 2018), as here.
Anyway, these files were produced in an earlier version.
"Not active" in Login Admin file allowing access
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/login_basics.html
http://www.wysiwygwebbuilder.com/login_tools.html
TIP:
A lot of information about the login tools can be found in the help/manual.
Also checkout the demo template that is include with the software.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/login_basics.html
http://www.wysiwygwebbuilder.com/login_tools.html
TIP:
A lot of information about the login tools can be found in the help/manual.
Also checkout the demo template that is include with the software.
Re: "Not active" in Login Admin file allowing access
CorrectSo if I rearrange it so that the active field is number five, that should resolve things?
All standard fields need to be in their original position, extra fields should be added at the end of the line.Would simply moving the active field work so that, for example, I have (1) User name,(2) First name, (3) Surname, (4) Email, (5) Active with the hidden password field for the sixth one?
This is not the most recent version. Please install the latest update.When I look at the About tab it just has Version 14 (May 7 2018), as here.
https://www.wysiwygwebbuilder.com/forum ... um.php?f=1
Re: "Not active" in Login Admin file allowing access
Well, it is what I downloaded this very week!This is not the most recent version
Re: "Not active" in Login Admin file allowing access
Is this 14.0.4 an update or a new paid-for program? It's only just over two months since I last paid you for an upgrade!
Re: "Not active" in Login Admin file allowing access
If you have a license for version 14.x then all updates for this version are free.
Re: "Not active" in Login Admin file allowing access
I have, thank goodness!
Edit problem in Login Admin file
Now I have another problem! Using v14.0.4 and writing completely new files without any additional field added the program works alright as far as signing-up and using the admin page are concerned, also the active/not active function. But when I click on edit I can see that a new sign-up is denoted as an Administrator. Changing that to 'Member' or 'Guest' and saving doesn't, in fact, have any effect as when checking the edit box again it is still showing 'Administrator'.
Re: "Not active" in Login Admin file allowing access
User roles and avatars in WWB14 only work with MySQL database. This functionality was not designed to be used with flat database.
Re: "Not active" in Login Admin file allowing access
Ah, right, well ... I don't really require the roles so that's not a problem for me. Thanks.
Better have a look at MySQL when I have a moment though.
Better have a look at MySQL when I have a moment though.