Ok, I've got my login set up and working (finally). Unfortunately WYSIWYG only allows for what 14 fields and I need a bunch more than that.
So I created another table and the userID is the same between the two tables so I can just pull from both. I need an alternate solution because when I try to add php in WYSIWYG I get some strange results and would rather just code outside WYSIWYG for these couple of pages.
My question is how do I get the current logged in userID from the WYSIWYG log in? Is it stored in a cookie, a session?
Then end result would be the user logging in and seeing all their personal information (30 fields at this point - maybe more) based on their login credentials.
MySQL/PHP to get login ID
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: MySQL/PHP to get login ID
What makes you think there is a limit? I am not ware of such a limitation.Unfortunately WYSIWYG only allows for what 14 fields and I need a bunch more than that.
If you want more control over the layout of the form then you can convert it to a standard form.
I doubt that this has anything to do with WWB. Maybe there is an error or conflict tin your code?i need an alternate solution because when I try to add php in WYSIWYG I get some strange results
The ID is not stored in a session, only the username. But you can modify the code of the login form to also store the ID is a session variable.My question is how do I get the current logged in userID from the WYSIWYG log in?
-
-
- Posts: 7
- Joined: Wed Sep 06, 2017 3:08 pm
Re: MySQL/PHP to get login ID
In the help it shows 5 extra fields and I thought that it said "The following SQL query generates a table with THE 5 extra custom profile fields:" my bad. But I can't change the names of the fields but it's good to know I can add as many as I want.
It's php and WYSIWYG and my provider that I'm having a problem with. I keep getting extra code at the beginning of my pages that stops php from working. That's why I prefer to just code these pages directly. But thanks for pointing out the convert to standard form. I sorta knew it was there but hadn't looked into it.
THANKS!!! I'll check out modifying the login form code.
It's php and WYSIWYG and my provider that I'm having a problem with. I keep getting extra code at the beginning of my pages that stops php from working. That's why I prefer to just code these pages directly. But thanks for pointing out the convert to standard form. I sorta knew it was there but hadn't looked into it.
THANKS!!! I'll check out modifying the login form code.
Re: MySQL/PHP to get login ID
This either means that PHP is not supported or the page extension is not set to PHP.I keep getting extra code at the beginning of my pages that stops php from working.