vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Moving Variables to another Template (https://vborg.vbsupport.ru/showthread.php?t=171079)

GameWizard 02-21-2008 04:10 AM

Moving Variables to another Template
 
I recently asked a similar question here:
https://vborg.vbsupport.ru/showthread.php?t=170042

However this time I am moving the following variables.

$block_data[picturecount]
$block_data[albumcount]


I moved these from the memberinfo_block_statistics template into the memberinfo_block_ministats template to no avail.

Nothing shows up, even when changing the variable name to every conceivable combination I could come up with including $userinfo[picturecount], $albuminfo[picturecount], and so forth.

I hope someone can shed light on this for me.

Guest190829 02-21-2008 06:24 AM

These variables do not have scope in the template you want to move them too. The idea of variable scope is integral to programming - the only way you are going to be able to move the variables is actually alter the PHP code with hooks/or file edits.

GameWizard 02-21-2008 07:09 AM

Understood, could you point me in the right direction as to which files need to be changed, or how to create an appropriate plugin to achieve this?


All times are GMT. The time now is 09:32 AM.

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.01434 seconds
  • Memory Usage 1,709KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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