MyBB Community Forums

Full Version: How to redirect users to another custom page after logging in?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I want that my users get redirected to a custom page after just logging in where they will be given 2 options : to click on an ad & to return to the index page, or maybe automatically return to the index page after 5 seconds or so.
How to do this?
If you search in member.php, around line 1075, you will find the redirect area of when a user logs in. You will have to manually change the $mybb->input['url'] and "index.php" just a few lines lower to point to a custom PHP page that shows an advert, the redirects to somewhere else.

Not sure if there's a plugin for this or not to be honest...