Need to create a CLIENT AREA for my business site. Please help! Thanks.

They have: 9 posts

Joined: Sep 2003

Hello everybody,

I have been researching a project for my web design company. I have been trying to find a way to accomplish my goals, but to be honest, I have not found any scripts that meet my needs. If you do not mind, please read what I want to accomplish...

Here are my goals:

1) On my business website, I want a "Client Area" just for clients. The area would include special articles, updates, and other such things just for my clients.

2) However, I want each client to have their own page that is dedicated to the current website design project that I am working on for them. Therefore, when they login as "Billy" for instance, they are redirected to their own page that displays the status of "Billy's Website." The page that they are redirected to can be manually created by me with my web design program and it will include a picture of their web design, a progress report, etc.

3) It doesn't have to be automated, I just want the client to be able to login and have access to his own page as well as the other pages too.

4) So here is the final result:
-The client "Billy" would login at mysite.com
-He would then be redirected to mysite.com/billy
-He would also have access to mysite.com/membersarea which would be linked from mysite.com/billy

This seems like a straighforward thing to do and I am sure it is common among website businesses...does anyone know where I can find a script that would enable me to do this? You help would be GREATLY appreciated!

Thanks,
WebMember

He has: 1,758 posts

Joined: Jul 2002

Fairly simple with a bit of PHP.

Use htaccess/htpasswd for the login system, and have index.php as the default page.

In PHP you can read the username var from the login, then simply test for that and redirect to the appropriate page/sub directory for example:

if($_SERVER[PHP_AUTH_USER] == "bob") {

      include("bob/bobs_index.php");

}
'

I'm sure that's not a perfect code example, but it should do the job (i think).

Andy

They have: 93 posts

Joined: Jun 2003

Well andy206uk's method would be a perfect solution for you.

You could also look into using Sessions, so you don't need the .htaccess/.htpasswd/.htgroups stuff. You could use a flat file or a database(recommended).

Im not sure how much your looking to get into,as you wanted to know of a script.

Perhaps check for for scripts at resourceindex.com. Check in PHP is you site supports it, or their CGI library if not.

Search for like Task Management or something along those lines. That should get your scripts or Project management and organization.

[Design Alpha] -Web Services : Design,Hosting,Advertising,Software
Ask about custom pricing on hosting!!
Site Assets: [UltraGaming.com] [Blades of Warcraft]

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.