You are viewing the PKP Support Forum | PKP Home Wiki

registration submission

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
What to do if you have a technical problem with OCS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

registration submission

Postby paulmn » Wed Oct 24, 2007 1:23 pm


i need to change the page a user is redirected to after they create a new account. i have searched for the place to change this redirect URL, but can not find it. help?


Posts: 12
Joined: Wed Aug 15, 2007 1:11 pm

Re: registration submission

Postby asmecher » Wed Oct 24, 2007 1:40 pm

Hi Paul,

Look in pages/user/CreateAccountHandler.inc.php in the createAccount function. Near the end, you should see the code responsible for the redirect:
Code: Select all
                        if($source = Request::getUserVar('source'))

                        else Request::redirect(null, null, 'login');
If a user is taken through a redirect process for a particular reason, e.g. they followed the "submit an article" link but weren't logged in, the $source variable should be set and they'll be redirected according to its value. Otherwise -- which is probably the case in your situation -- they'll drop through to the "Request::redirect(null, null, 'login');" call, which is the one you probably want to change.

Alec Smecher
Public Knowledge Project Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: registration submission

Postby paulmn » Tue Oct 30, 2007 7:52 am

Posts: 12
Joined: Wed Aug 15, 2007 1:11 pm

Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 2 guests