Log in

View Full Version : standard_redirects not working


Nullifi3d
02-03-2006, 02:18 AM
I don't understand why my standard redirects stopped working. they were working fine when I created them.
$vbulletin->url = 'banners.php?' . $vbulletin->session->vars['sessionurl'] . "do=statistics";
if ($vbulletin->options['banner_require_activation'] == 1) {
eval(print_standard_redirect('redirect_update_acti vation', true, $show['bannerforceredirect']));
} else {
eval(print_standard_redirect('redirect_update_comp leted', true, $show['bannerforceredirect']));
}This just prints out either "Could not find phrase 'update_activation'." or "Could not find phrase 'update_completed'."

My phrases are prefixed with redirect. Their varnames are redirect_update_activation & redirect_update_completed. They're in the Master Language, Front-End Redirect Messages & my Product.

Marco van Herwaarden
02-03-2006, 07:40 AM
I think (more like guessing now) that the redirect messages where move to the Error message Phrasegroup.

Nullifi3d
02-03-2006, 02:25 PM
Are you saying I need to recreate them in the redirect message phrasegroup or that I should move them to the error message phrase group? If I have to move them to the error message phrasegroup do I need to rename them prefixed with error and not redirect?

Marco van Herwaarden
02-03-2006, 06:43 PM
You could try moving them. The prefix is not really important (although it is good custom to use an unique prefix in any hack, so it can not be confused with var's used by another hack or future vB versions).

Nullifi3d
02-03-2006, 07:35 PM
moving it did not work. I didn't think it would as they were working fine before I did code adjustments throughout the document.

Andreas
02-03-2006, 07:41 PM
The phrases

update_completed
update_activation

have to be in phrasegroup Front-End Redirect Messages.

Nullifi3d
02-03-2006, 08:01 PM
Thanks Andreas. Perhaps https://vborg.vbsupport.ru/showthread.php?t=98009 should be updated.