Hello,
I have already sent these questions to the How To team for the video meeting. If I can’t be helped there, I’ll do it again here.
I have the following questions: (I use a wamp server)
1. How can I forward the user to your area after logging in.
And only show them their own content.
I have 4 user groups (role)
- Admin
- Clients
- Freelancers
- Locations
Of course, they should not have access to the content of other users.
Only admins can access all content.
For the login process I followed this tutorial:
Here Brian works with two tables for users and roles.
In this tutorial on the subject of “restricted access” just one user table inc. role is in use.
I followed this tutorial for the redirection.
To get the role I use an innerjoin
I try with or without an alias.
Unfortunately that doesn’t work.
I am always redirected to the client page.
My forwarding
loginform.data.userdetails[0].user_role==‘a’?‘admin/index.php’:‘clients/index.php’
Whether I use “a” or “admin” doesn’t matter.
And only two possible roles are processed here, but I need 4 roles.
2. I need a solution for a log system.
All changes should be recorded here.
Example:
[User] on [date - time] changed billing address from [original content] to [new content].
How can i implement that?
3. And maybe you can help me here too.
I run a Wordpress site: www.cg-events.de
Here I would like to write directly into my project table with the contact forms.
How can I use Wappler forms in Wordpress?
Best regards
Chris
Last updated: