The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I see a lot of posts here asking how to remove redirection after someone replies to a post. I am looking for something a little different, almost the reverse.
I want the ability to redirect a user after successfully adding to a post to another URL that I pass in the URL to vBulletin. Anyone seen anything like this or can tell me where to look? Let me answer my own question. I was adding a url to return to after making a reply to post. Here are the steps I took: 1. I first needed to accept the passed in variable, in this case "returnurl" in "newreply.php" down in "do=newreply": Code:
$vbulletin->input->clean_gpc('g', 'returnurl', TYPE_NOHTML); if ($vbulletin->GPC['returnurl']) { $returnurl = $vbulletin->GPC['returnurl']; } Code:
<input type="hidden" name="returnurl" value="$returnurl" /> Code:
$returnurl =& $vbulletin->input->clean_gpc('r', 'returnurl', TYPE_NOHTML); Code:
if ($returnurl) { $forceredirect = false; $vbulletin->url = '/index.php?' . $returnurl; } else if ($newpost['visible'] OR can_moderate($foruminfo['forumid'], 'canmoderateposts')) ![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|