Yes, you could just copy the code that's under the hook location into a plugin so you can change it. In other words, make a new plugin using hook location newthread_post_complete with this code:
PHP Code:
if ($newpost['postpoll']) // user selected poll
{
$vbulletin->url = 'poll.php?' . $vbulletin->session->vars['sessionurl'] . "t=$newpost[threadid]&polloptions=$newpost[polloptions]";
if ($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads'])
{
eval(print_standard_redirect('redirect_postthanks', true, true));
}
else
{
eval(print_standard_redirect('redirect_postthanks_nopermission', true, true));
}
}
else if ($newpost['visible']) // normal submit
{
if ($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads'])
{
// user has permission to see thread (this is probably the "normal" case)
$vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "p=$newpost[postid]#post$newpost[postid]";
eval(print_standard_redirect('redirect_postthanks'));
}
else
{
// user can't see thread
$vbulletin->url = 'forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$foruminfo[forumid]";
eval(print_standard_redirect('redirect_postthanks_nopermission', true, true));
}
}
else
{
// Thread waiting for moderation
$vbulletin->url = 'forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$foruminfo[forumid]";
eval(print_standard_redirect('redirect_postthanks_moderate', true, true));
}
Then change the "$vbulletin->url =" lines as needed. You probably don't want to change the redirect to poll.php, so if the user is adding a poll you'd have to do something more complicated to get it to redirect after adding the poll. But you could change the other 3 $vbulletin->url lines to get it to redirect somewhere else, for instance:
Code:
$vbulletin->url = "http://www.foo.com";
I hope that makes sense. I guess it would be nice to have acp options to set the url, but this will work.