This topic is locked

After user registration to edit

12/3/2005 12:37:48 PM
PHPRunner General questions
K
ke5rs author

First off, this software is great and the support as well...

I would like to know if it would be possible to change the order from going to the login page and go direct to the user edit page after they first register.

I would like the user to fill in more information after they register.

I was trying to avoid having many fields at the registration page.

John

<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=2162&image=1&table=forumtopics' class='bbc_emoticon' alt=':)' />

Sergey Kornilov admin 12/5/2005

Hi,
you can modify the registration page to redirect user to appropriate Edit page.
To perform login you should fill the following session variables:

$_SESSION["UserID"] - with username

$_SESSION["OwnerID"] - with owner ID value if you use Advanced security.

O
omegix 12/6/2005

Hi,

you can modify the registration page to redirect user to appropriate Edit page.
To perform login you should fill the following session variables:

$_SESSION["UserID"] - with username

$_SESSION["OwnerID"] - with owner ID value if you use Advanced security.


Are these lines that we will need to place in the registration.php file?

I'm not sure how to implement this.

K
ke5rs author 12/6/2005



Are these lines that we will need to place in the registration.php file?

I'm not sure how to implement this.


Hi again

I tried the lines above in various places (without the following comments) in the code on the registration page. I changed the part "UserID" to the variable I have for user id. I do not think that I am using owner id. I have "Each user can see other users data, can edit own data only" with the "Add admin user that can see and edit all users data" and no guests checked.

In addition, No users groups added
Am I on the right track?

Thank you.
John
<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=6985&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />

Sergey Kornilov admin 12/7/2005

John,
since you use "Each user can see other users data, can edit own data only" security mode you do need OwnerID. You can see your selected OwnerID field.

Users table: OwnerID field on Advanced dialog on Security tab in PHPRunner.
You shouldn't change session variable names.
You should fill them with the actual values of Username and OwnerID fields.

I.e. if you registered a user with name Bob, then you should put "Bob" into $_SESSION["UserID"] variable.

The same applies to $_SESSION["OwnerID"] variable.
omegix,
you should fill this variables to perform autologin in your custom code.

I don't have a ready to go solution for this.