Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Can I redirect after logging in and signing up?
Hi,
I have installed Vanilla Forums 2.0.18.2 on my site and I would like to redirect users to a custom page on my site after they log in or sign up? Is there any configuration variable to do this or do I need to create a custom plugin? Can anyone give me some hints on what I would need to have in the plugin if that is necessary?
Thanks!
Tagged:
0
Answers
In case anyone else needs to do the same thing:
After failing many times to make a plugin to do this I discovered that you can pass the page that you want to redirect to after logging in as a GET parameter like so:
/entry/login?Target=http://www.mysite.com/my-custom-page
@gadiandi Can you tell me where we have to change this value?...which php? I am looking for this solution since days. I want to redirect to discussion, the sign in is from the custom page.
You just need to add the Target parameter to the end of the URL whenever you link to the sign in page. For example, you could change where the Vanilla forums sign in page redirects by linking to it like this:
http://vanillaforums.org/entry/signin?Target=www.google.com
@gadiandi I am very new to the php. I have a forum and this is the custom page, http://www.autonomousrobots.net/contact. After sign in from this page, I would like to redirect to discussion. Can you please tell me which file to edit and where, I mean I know there are file like default.master.php, Sigin.php besides the custom page.php. In default.master.php, I can only see addLink but no Url.
Hi nitin29,
It looks like you figured it out. The Sing In link on that page goes to
http://www.autonomousrobots.net/entry/signin?Target=plugin/page/contact
So it should redirect to the contact page after they have logged in.