I made my own redirect option. It is working just fine and redirects to the proper page. I need it to do a little more though and not quite sure how to do it yet.
Code:
if ($redirectoption == "5")
{
$vbulletin->url = '../index.php?' . $vbulletin->session->vars['sessionurl'] . "page=HOME";
eval(print_standard_redirect('redirect_postthanks'));
exit();
}
I tried to play around with the code by adding another "IF...ELSE" statement and that gave me an error. Abe, can you or someone else assist me.
I'm trying to have this do one of two things. If someone provides the correct answer to $answer1, the user will be added to a usergroup with the ID = 14 and then they'll be redirected to the congrats page. If someone provides an incorrect answer, they will be redirected to a "Sorry, try again" page instead.
Thanks for keeping this hack updated. It is definitely one of my favorites.
-Sarcoth