vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   standard_redirects not working (https://vborg.vbsupport.ru/showthread.php?t=107031)

Nullifi3d 02-03-2006 02:18 AM

standard_redirects not working
 
I don't understand why my standard redirects stopped working. they were working fine when I created them.
PHP Code:

$vbulletin->url 'banners.php?' $vbulletin->session->vars['sessionurl'] . "do=statistics";
if (
$vbulletin->options['banner_require_activation'] == 1) {
    eval(
print_standard_redirect('redirect_update_activation'true$show['bannerforceredirect']));
} else {
    eval(
print_standard_redirect('redirect_update_completed'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.


All times are GMT. The time now is 04:09 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01121 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete