vb.org Archive

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

loneranger 06-14-2005 05:03 PM

Phrases
 
PHP Code:

    $url "image_host.php?do=images&$session[sessionurl]";
    eval(
print_standard_redirect('imghost_upload')); 

hi i am using this code below and have the phrase defined in phrase groupid = 2000 but when i run the code it don't redirect or even show the message can some1 please help.

Andreas 06-14-2005 05:10 PM

  1. $session does not exist in vB 3.5
    Use $vbulletin->session->vars['sessionurl']
  2. If you want to see a message, regardless of the setting for removing redirect messages:
    PHP Code:

    eval(print_standard_redirect('imghost_upload'truetrue)); 


loneranger 06-15-2005 01:12 PM

thanks this has help alot

zetetic 06-15-2005 01:46 PM

Quote:

Originally Posted by KirbyDE
$session does not exist in vB 3.5

Just to clarify: It doesn't exist in the code, but it's still used in the templates.

Do you know if they're planning on changing that in the future?

Andreas 06-15-2005 01:56 PM

It's not "really" being used in the Templates ;)
See replace_template_variables() in functions_misc.php

zetetic 06-15-2005 02:10 PM

Ohhhh... sneaky. :D


All times are GMT. The time now is 07:27 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.01675 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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