Discussion Forums  >  Uncategorized

Replies: 1    Views: 147

Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
01/03/12 09:50 AM (14 years ago)

Give certain users access to screens

How would I allow one user that is logged into their account to access a certain page, but another that is logged in to not be able to access the page the other user can, but can see their own page. Like a my account page on Amazon.com.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/03/12 11:38 AM (14 years ago)
You'll need to work this out on your own. I would do this... a) create a login screen and add some users to to your control panel. b) Login protect some screens to you can get an idea of how it works. All users that are logged in will have access to these logged in screens. So far so good. Next, I would create a custom menu for each user. I would do this by creating a Menu screen that was powered by a backend script. A dynamic screen. The data URL for this screen would fetch a script you write on your backend. The data URL would have the users id appended to the URL so you know what user is accessing the menu. Use this userId to output the proper menu items. The Menu Screen is powered by a JSON file when you set the dataURL. This means you'll need to look at the docs or to see how to output the JSON for the menu.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.