Topic: Suggesting a Feature..... (Read 1080 times)
World Wide Whale
Gender:
Posts: 154
1052 credits Members referred : 0
« on: Oct 09, 2007, 09:36:56 PM »
I have been using your AccessUser_Class for ages & I love it.
It would be really great if you added a feature (or explained how to add the feature) that would send a user after log-in to a specific page just for them. I have been researching how to do it for a while, but haven't found anything yet.
For example when 'charles' logs in it will take him directly to "root/charles/index.htm" or something like that.
I of course would have to set the code where I had to activate the users account, then add their directory to the database, so it would know where to send them, but I could add that in inside my MySQL Admin, so it wouldn't have to be added to the admin page.
Thanks!
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6557
40174 credits Members referred : 374
It's time to use PHP5!
« Reply #1 on: Oct 09, 2007, 10:02:31 PM »
just store the file (location) in the user (profile record) and use this address for this var: $obj->main_page = 'the page';
just store the file (location) in the user (profile record) and use this address for this var: $obj->main_page = 'the page';
OK, so I should store the location in the users table (I am guessing with in a new field?!)
Then I put 'var: $obj->main_page = 'the page';' where exactly....
I am sorry, I don't know if I am catching on....
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6557
40174 credits Members referred : 374
It's time to use PHP5!
« Reply #3 on: Oct 09, 2007, 10:33:47 PM »
yes do it this way, maybe you can use the users Id or name as a key for the target page (this way the page is always the same and you don't need to add some new db field)
World Wide Whale
Gender:
Posts: 154
1052 credits Members referred : 0
« Reply #4 on: Oct 09, 2007, 10:38:28 PM »
I think I will use 'extra info' now that I think about it. I don't need it to keep up with when they logged in last. What is the tmp_mail column for?
Where do I need to put the "var: $obj->main_page = 'the page';" at? and will it be just like it is here, or will I need to replace generics with specifics?
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6557
40174 credits Members referred : 374
Where do I need to put the "var: $obj->main_page = 'the page';" at? and will it be just like it is here, or will I need to replace generics with specifics?
after you create the object on the login page (obj is the object name)