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? ...
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...
so if I understood I go to the Mysql tables and create rights there.
Mmm, I forgot to say that I'm neither a Mysql specialist but I will try, if I get something ok, I'll post it here.
Thanks again
Last edited by Kosse on Sun 19. Dec 2004, 19:57, edited 1 time in total.
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:
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!
Last edited by Kosse on Sun 19. Dec 2004, 19:56, edited 1 time in total.