Quote:
Originally Posted by kh99
You could use the vbulletin function print_standard_redirect():
Code:
// #############################################################################
/**
* Returns eval()-able code to initiate a standard redirect
*
* The global variable $url should contain the URL target for the redirect
*
* @param string Name of redirect phrase
* @param boolean If false, use the name of redirect phrase as the phrase text itself
* @param boolean Whether or not to force a redirect message to be shown
* @param integer Language ID to fetch the phrase from (-1 uses the page-wide default)
*
* @return string
*/
function print_standard_redirect($redir_phrase, $doquery = true, $forceredirect = false, $languageid = -1)
{
|
so the $redir_phrase its self will become the URL ?
if so, all i need to do is register the variable as follows
PHP Code:
$redir_phrase = $vbulletin->options['myredirect'];
would this be what i need to do ?