Sublime directory Surf the web anonymous Pagerank Monitor


Suggesting a Feature.....

PHPNewbie-KY
Tue 9 October 2007, 08:36 pm GMT +0200
I have been using your AccessUser_Class for ages & I love it.   ;D

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.   8)

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!

olaf
Tue 9 October 2007, 09:02 pm GMT +0200
just store the file (location) in the user (profile record) and use this address for this var:
$obj->main_page = 'the page';

PHPNewbie-KY
Tue 9 October 2007, 09:15 pm GMT +0200
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....

olaf
Tue 9 October 2007, 09:33 pm GMT +0200
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)

PHPNewbie-KY
Tue 9 October 2007, 09:38 pm GMT +0200
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?

olaf
Tue 9 October 2007, 09:45 pm GMT +0200


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)

PHPNewbie-KY
Tue 9 October 2007, 09:52 pm GMT +0200
What should go into 'the page', how do I tell it to pull from the correct part of the db?

olaf
Wed 10 October 2007, 06:56 am GMT +0200
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

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional