14, February 2012

Suggesting a Feature..... - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Suggesting a Feature.....
« previous next »
Pages: [1] Print

Author Topic: Suggesting a Feature.....  (Read 2155 times)
World Wide Whale
***
Gender: Female
Posts: 154
1052 credits
Members referred : 0



« on: Oct 09, 2007, 08:36:56 pm »

I have been using your AccessUser_Class for ages & I love it.   Grin

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.   Cool

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: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Oct 09, 2007, 09: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';


Last blog : A new Wordpress theme for our blog
World Wide Whale
***
Gender: Female
Posts: 154
1052 credits
Members referred : 0



« Reply #2 on: Oct 09, 2007, 09:15:58 pm »

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: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Oct 09, 2007, 09: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)


Last blog : A new Wordpress theme for our blog
World Wide Whale
***
Gender: Female
Posts: 154
1052 credits
Members referred : 0



« Reply #4 on: Oct 09, 2007, 09: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: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Oct 09, 2007, 09:45:10 pm »



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)


Last blog : A new Wordpress theme for our blog
World Wide Whale
***
Gender: Female
Posts: 154
1052 credits
Members referred : 0



« Reply #6 on: Oct 09, 2007, 09:52:26 pm »

What should go into 'the page', how do I tell it to pull from the correct part of the db?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Oct 10, 2007, 06:56:10 am »

What should go into 'the page', how do I tell it to pull from the correct part of the db?

sorry? please check the examples first, what you asking is not special


Last blog : A new Wordpress theme for our blog
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7211
Tags : access user class Log In redirect to specific page Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Suggesting a Feature.....
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Feb 14, 2012, 07:18:35 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.