Quote:
Originally Posted by basketmen
up, please help guys if you have the information
current vbulletin url code are $vbulletin->url
but what is the code for vbulletin url referrer? is this right : $vbulletin->urlreferrer
|
after searching again, i thik i found it, in includes/database_error_message.html file, there is a variable for the referer page, it is $referer
Referrer : $referer
so i tried this in bold
Quote:
if ($vbulletin->referer == 'http://domain.com/forum/profile.php?do=editprofile')
{
if ($_POST['do'] == 'updateprofile')
{
$vbulletin->url = 'http://domain.com/forum/index.php;
standard_redirect();
}
}
|
or this
Quote:
if ($referer == 'http://domain.com/forum/profile.php?do=editprofile')
{
if ($_POST['do'] == 'updateprofile')
{
$vbulletin->url = 'http://domain.com/forum/index.php;
standard_redirect();
}
}
|
the profile are saved, but after the not redirected to
http://domain.com/forum/index.php
please help guys if you know to make in the bold works
why this if condition works
if (
$vbulletin->url == 'http://domain.com/forum/profile.php?do=editprofile')
{
}
but this one not
if (
$vbulletin->referer == 'http://domain.com/forum/profile.php?do=editprofile')
{
}