User/Member Management script needed!!!
Posted: Sun May 23, 2004 8:49 pm
Basically I want to have user accounts on my site but restrict individual users to what pages they can see on my site from a selection that I would provide.
The idea on how I thought could would work is, I can create user accounts and one of the fields or tables in the MySQL for the user account would be used to hold/store what I call “restricted page references” These would basically consist of a File Name, Title Name and a “Enable or Disable” (true or false) value.
Depending on this value (true or false) would determine whether or not a link would be displayed to the File Name listed in that reference when they login to there Control Panel.
So for example if have the following 3 restricted page references stored:-
News Article, newarticle.php, true
Mailing List, mailinglist.php, false
Whos Online, whosonline.php, true
Every reference which has a true statement would display a link in there Control Panel when logged in and when clicked would load that page. However when I look at there account all of them would be listed whether it’s a True or False value with an option to change this same value.
This would be called the “User Control” section in the Admin Panel, I would then also need another section called “Page Restrictions”.
This is where I Create, Delete and Edit the restricted page references. For example when I want to create one, I would type in the Title Name, File Name etc this would then be stored/held in a TABLE of some kind in the MySQL and also all the user accounts that currently exist on the system.
I can do all the graphics etc that’s not a problem, I can also create how I want it to look and be layout out, if it makes it easier at all. All I need is the back end, the code, for it all to work.
This is the basic idea, more details on what I need are found below.
USER ACCOUNTS
Fields needed – Full Name, Email Address, Username and Password.
Functions
1. Create, Delete, Edit – user account details.
2. A link called “Page Restrictions”, when clicked this will list all the restricted page references currently held in the system. With the option next to each listing to “Enable / Disable”.
RESTRICTED PAGES
Fields needed - Category, Title Name, File Name, Upload File (tick box) with browse box. Also a select field with the options “Enable” and “Disable” in, titled “global set”
Functions
1. Create, Delete, Edit – restricted page reference.
2. Next to each reference have a link “Who has access”, when clicked all the users who have that reference “Enabled” will be displayed.
When creating a new restricted page reference, I will select a category from a list and then provide the details needed. If I want to upload the file also I would tick the “tick box” as mentioned in FUNCTION (2) above and then browse for a file, where it would then be uploaded when I submit the details.
At a guess I would say each user account needs a Table in the MySQL that is used to hold all the reference pages. Perhaps when a new reference is created it is given an assigned a unique ID number and then that ID number is also stored in the TABLE with a True or False statement.
Thanks for your time,
Email neil [at] kitecentral.co.uk or MSN darkromz [at] hotmail.com
The idea on how I thought could would work is, I can create user accounts and one of the fields or tables in the MySQL for the user account would be used to hold/store what I call “restricted page references” These would basically consist of a File Name, Title Name and a “Enable or Disable” (true or false) value.
Depending on this value (true or false) would determine whether or not a link would be displayed to the File Name listed in that reference when they login to there Control Panel.
So for example if have the following 3 restricted page references stored:-
News Article, newarticle.php, true
Mailing List, mailinglist.php, false
Whos Online, whosonline.php, true
Every reference which has a true statement would display a link in there Control Panel when logged in and when clicked would load that page. However when I look at there account all of them would be listed whether it’s a True or False value with an option to change this same value.
This would be called the “User Control” section in the Admin Panel, I would then also need another section called “Page Restrictions”.
This is where I Create, Delete and Edit the restricted page references. For example when I want to create one, I would type in the Title Name, File Name etc this would then be stored/held in a TABLE of some kind in the MySQL and also all the user accounts that currently exist on the system.
I can do all the graphics etc that’s not a problem, I can also create how I want it to look and be layout out, if it makes it easier at all. All I need is the back end, the code, for it all to work.
This is the basic idea, more details on what I need are found below.
USER ACCOUNTS
Fields needed – Full Name, Email Address, Username and Password.
Functions
1. Create, Delete, Edit – user account details.
2. A link called “Page Restrictions”, when clicked this will list all the restricted page references currently held in the system. With the option next to each listing to “Enable / Disable”.
RESTRICTED PAGES
Fields needed - Category, Title Name, File Name, Upload File (tick box) with browse box. Also a select field with the options “Enable” and “Disable” in, titled “global set”
Functions
1. Create, Delete, Edit – restricted page reference.
2. Next to each reference have a link “Who has access”, when clicked all the users who have that reference “Enabled” will be displayed.
When creating a new restricted page reference, I will select a category from a list and then provide the details needed. If I want to upload the file also I would tick the “tick box” as mentioned in FUNCTION (2) above and then browse for a file, where it would then be uploaded when I submit the details.
At a guess I would say each user account needs a Table in the MySQL that is used to hold all the reference pages. Perhaps when a new reference is created it is given an assigned a unique ID number and then that ID number is also stored in the TABLE with a True or False statement.
Thanks for your time,
Email neil [at] kitecentral.co.uk or MSN darkromz [at] hotmail.com