Hi, I have absolute no idea how to solve this problem. I want to have a section My Videos in the Members Part of my Website where I, as Administrator, can post Videos where different users took part in. So my first idea was to Create a button which looks who is logged in and then redirects to the own Videos Site of this user.
My Second Idea was to Create a Private Member Site in which I Write all Names of my members as a Button and only I can see ALL buttons and the logged in members can only see one Button with their Name.
Which idea is possible and how?
Many Thanks!
Already got your solution here?
No, we still haven’t a solution for this Problem.
- This one should be possible…
So my first idea was to Create a button which looks who is logged in and then redirects to the own Videos Site of this user.
Steps to success…
-
User logs in… → user gets his ID
-
You have prepared a BUTTON
-
User clicks the BUTTON
-
Identification of user-ID running → you get user/owner-ID.
-
You surely will have a DATABASE, where all user-data is stored including the user-ID/owner-ID and eventually a corresponding DB-FIELD holding a link to a dynamic page or something like this.
-
Since you know now who is logged in you check your DB for this user.
-
as result you get all data of this user including the link to dynamic page ? a URL or what ever?
-
You got it?
$w.onReady(()=>{
$w('#myButtonIDhere').onClick(async()=>{
let userID = await start_userIdentification();
});
});
function userIdentification() {
//put code here to identify the logged-in user
//getting the user-ID
}
You will have to add a lot more of code, to get this working.
Check the following…
…if you want to do it on frontend…
…or here from backend…
Find the right API you need and try to generate your code.