Reply
Login/User Managment
Old 10-15-2003, 07:00 PM Login/User Managment
Skilled Talker

Posts: 67
Location: Erin, NY
Okay I want a user management script, one that uses mysql database. I want to be able to set access levels. Like I would have 100 (superadmin) meaning I have full site access, and say I give another user like 80 (admin) meaning he can do most things but not all. And say like dlb members would get 50 (for clanmember) and say 25 for general members (like outside people that want to sign up to be able to post comments. I want to have the login form on every html page either top right or top left. And when the user is logged in I would like it to say logged in as blah blah, last logged in blah… and I want users be able to sign up and have them have to verify by email like most places do. And I want the admin part of it to be able to set access levels and the such, be able to mass email certain user groups info ect.. okay that is sorta how I want it to work. But I’m gonna have an admin page with a spot with certain tools for dlb members ect. I want to have links on that page to be dynamic, say if they are superadmin they see all links but if they are just a member just show certain links. You follow me to this point? Oh and I only want to to have to log in once per period of time. Well theres that don’t know if you can make anything outa it but kinda hard to explain.

PS. is there a way to have the links only visable to certain people, like if i set a person an access level. say i have 5 links to different admin pages of certain things. and say i set me 100 user level and i would be able to see all the links and say another peron of 50 and he would only be able to see 2 or 3 of the links ect...
ltcjohnson is offline
Reply With Quote
View Public Profile Visit ltcjohnson's homepage!
 
When You Register, These Ads Go Away!
Old 10-16-2003, 01:10 AM
Skilled Talker

Posts: 67
Location: Erin, NY
Oh, and also while logged it i want it to show up at the top of the page if the have new email in there inbox. want it to look something like this.

This is how i want it to look when they have no new emails but with email that has been already read in the box

Mail (4), New (0)

I want this to be a link to take them to there webmail account.


This is what i want it to look like when they have new mail

Mail (5), New (1)
ltcjohnson is offline
Reply With Quote
View Public Profile Visit ltcjohnson's homepage!
 
Old 10-17-2003, 06:33 AM
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
Thats a very big script you are looking for! I'm not aware of any existing systems that would do all of that, although you might be able to edit something like PHPNuke.

Probably the best way to get it to work how you want is to write it yourself. You can find PHP and Mysql tutorials at:
http://www.freewebmasterhelp.com/tutorials/php/
http://www.freewebmasterhelp.com/tutorials/phpmysql/

Just a few pointeres from what you have put so far.

You should have a users table with at least the following in it:
username, password, realname, e-mail, level

Encrypt the user's password using md5.
Set the default level to 25

On your site pages, include a login script (there is a good article on Sitepoint about how to do this), and simply echo the realname to the user if they are logged in.

For mail, assuming this is a PM-style system and not external mail, store each message in a table:
id, user, subject, from, body, read
and set read to 0 by default. When the user opens the message set read to 1. Now you can simply:
select id from emails where read = 0 and user='username'
to get the number of new e-mails and
select id from emails where user='username'
to get the total.

For permissions for links, if there are a lot of links put them in a database with a 'minimumuserlevel' field, if not simply use if statements:
PHP Code:
if userlevel>80 {
display the link

For signup verification by e-mail, add a field to your users database called confirm.
When a user signs up, generate a random number (or string) and store it in this field. Then e-mail the same string to the user. When they get the e-mail there should be a link pointing them to a page where they enter the string and their e-mail (or username). Simply authenticate this against the users table and if they match, update it to have confirm as blank. Only let users log in if the confirm field is blank.

If you have any other questions, don't hesitate to ask.
__________________
Free Webmaster Help - Everything a webmaster needs - for free
Free-Webhosting.info - Free web hosts reviewed and rated
Web Hosting Hunt - Impartial hosting directory - Add your host today for FREE
david is offline
Reply With Quote
View Public Profile Visit david's homepage!
 
Old 10-17-2003, 06:48 AM
Skilled Talker

Posts: 67
Location: Erin, NY
o wow, thanks man. yeah i've searched and searched for a readymade script but had no luck. and this should help me a bunch. i dont know crap about php or mysql just enough to know how to get ready made scripts to log on to the database. as for the email thing. My host is using cpanel and they are pop accounts, just wanted to add a thing for the users to be able to access there pop accout from any computer via the site. it has 3 webmail clients installed. i want to beable to have the user to select what webmail client they want to use and it be saved to the db. and the url for the webmail are weird. like this.

http://xxx.xxx.xxx.xxxort/mailid+domain.com/ x's = ip and port
and once you enter that url a password box pops up for username and pass. I dont want them to have to login to the email again so basically i guess i would have to have them add there email name and password to the database
ltcjohnson is offline
Reply With Quote
View Public Profile Visit ltcjohnson's homepage!
 
Old 10-17-2003, 09:06 AM
Skilled Talker

Posts: 67
Location: Erin, NY
oh and for this

Quote:
if userlevel>80 {
display the link
}
how would i get that to check that against the database?
ltcjohnson is offline
Reply With Quote
View Public Profile Visit ltcjohnson's homepage!
 
Reply     « Reply to Login/User Managment
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15256 seconds with 12 queries