I'm trying to find a solution to get a "user" (means NOT admin) to login into the back-end and only be able to "see":
- files
- discussions
- profile
- messages
I don't want them to access the " phpwcms.php?do=articles " page, as I am not a php specialist, how could I get a simple way to do that? (instead of "waiting" for the front end to come out? ...
Thank you if anybody has a clue.
Ok,brans
Joined: 06 Nov 2003
Posts: 310
Location: Zurich
Posted: Sun Dec 19, 2004 18:02 Post subject:
ouhm so simply create a new field in your user-Table and set some rights there... you can figure out a mathematic system to check what category ppl are able to see. In your case you would just need two numbers... (ex. 1 and 2) simply enter a check wether users are from the first or the second group before allowing them to acces the pages and to see the links to those pages...
I'm kinda noob but I got this figured out:
1) In my Mysql table [ phpwcms_user ]
I have a column: [ usr_admin ] , there it says 1 if admin or 0 if user. So I guess there are my "rights".
2) I went to the phpwcms.php page, I guess there I have to write somewhere a line that says something like:
Code: Select all
SELECT * FROM `phpwcms_user` WHERE `usr_admin`In words: I guess here is where I have to say get the user table, check if usr_admin is 1 or 0 and then show or not the section.
Like in line 60 if usr_admin is 1 show:
case "articles" --> blabla
if not, don't show
case "articles" --> blabla
But as I said I am a noob, so I'm stuck here...
Sorry to bother if someone (and I'm sure there are a lot) could take 5 minutes (or is it more complicated than that?) to check this out
10.000 times thanks!
