Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Server Side Programming
User Name:
Password:
 

Closed Thread
Thread Tools   Display Modes
  View First Unread
 
Old 08-01-2008, 04:20 PM
  #1
jgray805
Chevalier (Level 6)
 
Join Date: Jul 2008
Posts: 60
iTrader: (0)
jgray805 is an unknown quantity at this point
How to create a personal page for each logged in user to my website

Hi,

I am trying to create a personal page for each one of my registered users.

I have already set up a login/logout area on my website, but now i want it so that when users log in, they go to their own specific page.

my website is http://www.mytodostuff.com

i hope my question makes sense... i basically am trying to figure out how i can make it so registered users can log on and view their own personal page that they will get when they register.

if anyone can help me figure this out, it would be greatly appriciated
thanks for taking the time to read this, and thank you even more if you try and help me out.

NOTE: right now i have it so when users login, every user goes to the same page.
thats the only way i know how to do it so far.
jgray805 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it?
Old 08-01-2008, 05:36 PM
  #2
tnowalk
Fighter (Level 4)
 
Join Date: Jul 2008
Location: New York
Posts: 39
iTrader: (0)
tnowalk is an unknown quantity at this point
Arrow

How are you storing the user's data?

One way you could do it is have the user's data stored in a database and when they log in you retrieve the data and display it. By doing it this way you will only need to create 1 page then load the data dynamically for each user.

Trevor
tnowalk is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it?
Old 08-03-2008, 03:50 PM
  #3
jgray805
Chevalier (Level 6)
 
Join Date: Jul 2008
Posts: 60
iTrader: (0)
jgray805 is an unknown quantity at this point
yes, i am using a database to store all the users..

im not really sure how the coding of it works, because i got it from a tutorial but i know its a database, and in my host manager i had to create a database and in my host manager i can view all of the users in that database.
jgray805 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it?
Old 08-19-2008, 04:42 PM
  #4
jgray805
Chevalier (Level 6)
 
Join Date: Jul 2008
Posts: 60
iTrader: (0)
jgray805 is an unknown quantity at this point
tnowalk or anybody else that might know....

in reply to:
Quote:
One way you could do it is have the user's data stored in a database and when they log in you retrieve the data and display it. By doing it this way you will only need to create 1 page then load the data dynamically for each user.
this is what i want to do...
is there any way u can help me figure out how to actually impliment this strategy?
jgray805 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it?
Old 08-23-2008, 12:10 AM
  #5
palme
Novice (Level 1)
 
palme's Avatar
 
Join Date: Oct 2007
Posts: 10
iTrader: (0)
palme is an unknown quantity at this point
Hi
that is depend of how big a user's homepage is.is it only 1 page without pic and etc.
or more complex.
i think in your database shall min. 3 felts with navn forexample username, pass, directoryname and if user login that directoryname dynamically be load.
palme is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it?
Old 08-23-2008, 12:11 PM
  #6
Paul
Super Deity (Level 18)
 
Paul's Avatar
 
Join Date: Mar 2001
Location: 127.0.0.1
Posts: 3,984
iTrader: (0)
Paul has a spectacular aura aboutPaul has a spectacular aura about
You will have to post your entire program to get that kind of help. But it might be better for you to read some more PHP tutorials so that you can at least make an attempt at programming this on your own and then get help as you need it.
__________________

Pawel Kowalski
Albuquerque Web Design

templatesXchange.com - Free Web Templates - Native American Jewelry
Paul is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it?
Old 08-23-2008, 06:16 PM
  #7
jgray805
Chevalier (Level 6)
 
Join Date: Jul 2008
Posts: 60
iTrader: (0)
jgray805 is an unknown quantity at this point
hey palme
for now i just want to get it so each user has their own homepage...
pictures are not necessary right now, but eventually i will want them to be able to add pictures...
right now i mainly want it so their homepage can have a bunch of links to differnt websites.
jgray805 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it?
Old 08-23-2008, 10:16 PM
  #8
jgray805
Chevalier (Level 6)
 
Join Date: Jul 2008
Posts: 60
iTrader: (0)
jgray805 is an unknown quantity at this point
New thought......

I think i thought of a way to explain what i am trying to do easier, and i might be closer to figuring it out than i think..

Right now, whenever anybody logins on my site, every person is directed to sample_page2.php of my site..

i think i just need to add some type of code into where the user is redirected when they login.....

so instead of everyone logging in and going to sample_page2.php,
each person who logs in will go to their own page...

EXAMPLE:
User 1 will be redirected to user1.php when logging in
User 2 will be redirected to user2.php
User 3 will be redirected to user3.php
....etc...

does that help explain what i am trying to do any better?
and am i right about all i need is a small piece of code to make this happen?
jgray805 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it?
Old 08-31-2008, 05:54 PM
  #9
jgray805
Chevalier (Level 6)
 
Join Date: Jul 2008
Posts: 60
iTrader: (0)
jgray805 is an unknown quantity at this point
Can anyone help me?
or would i be just paying someone to do this for me?
im stuck, but i really want to continue my website..
jgray805 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it?
Old 09-01-2008, 07:33 AM
  #10
paul_norman_81
Lord (Level 16)
 
paul_norman_81's Avatar
 
Join Date: Nov 2005
Location: Preston, England, UK
Posts: 511
iTrader: (0)
paul_norman_81 will become famous soon enough
I could be wrong, but it sounds like all you want to do is re-direct people to different pages when they log in... Presumably you check your database and set a session variable when they log in anyway, so you might have something like this:

PHP Code:
<?php

# Login script here....

# Set your session (whatever you set)
$_SESSION['id'] = 42;

# Redirect the user
header('Location: http://www.mytodostuff.com/profile.php');
exit;
You then use the session id variable in the profile.php page to query the database and load the users profile (i.e. their own profile).

When a user views someone elses profile have them pass in a $_GET variable (profile.php?user=42) to override the session id (if one exists). You can neaten this up however you like (read up on apache rewrite rules for ideas).

If someone loads profile.php without being logged in, and without passing a user variable you could then redirect them to the registration page (or wherever you like). The same is true for none registrered users trying to view someone.

Hope this puts you on the right track.

Cheers,

Paul
__________________
"Aut viam inveniam aut faciam" - I'll either find a way or make one

First Tutors | First Tutors: Music
paul_norman_81 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it?
Old 09-01-2008, 07:38 AM
  #11
Horus_Kol
Mod of the Underlay
 
Horus_Kol's Avatar
 
Join Date: Jun 2002
Location: At a desk, hooked up and ready to rock
Posts: 16,348
iTrader: (0)
Horus_Kol is a jewel in the roughHorus_Kol is a jewel in the roughHorus_Kol is a jewel in the roughHorus_Kol is a jewel in the rough
I was reading this thread and thought "this is familiar"...

I just realised that this is the THIRD thread you've started on this JGray...

This is gonna confuse the heck out of people

Please continue at the newer thread
Horus_Kol is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it?
Closed Thread


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  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
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 10:09 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.