PDA

View Full Version : Login/News Question



Ragnero
21 Oct 2007, 12:26 PM
On the website I am currently working on, I want to have a sections for me, or other administators to login in, and be able to post in a news section. Does anyone have any ideas on how to do this?

1849
21 Oct 2007, 01:26 PM
Are you by chance using a CMS program such as Joomla? Joomla handles this extremely well.

If you're not using a CMS program, what are you coding in? PHP? MySQL? or ???

If you're not using CMS then you'll have to code the solution yourself and here is the basic outline of what needs to be done:

1. Your database will need fields to support users logging in (I don't know if you have a database yet). You will need fields such as:

user
password
account_type (regular, admin, super_admin, etc)

2. When a user successfully logs in you can check their account_type to see if they are Admins to be able to log into that area and update the news, etc. You should set a global flag for the user so as they move around your site you can control what web pages they have access to.