vb.org Archive

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

rogersnm 08-13-2006 04:53 PM

Template Variables
 
I have set up a some variables in foruhome_start that go trhough a bbcode parser:
PHP Code:

include_once(DIR '/includes/class_bbcode.php');
global 
$vbulletin;

$parser =& new vB_BbCodeParser($vbulletinfetch_tag_list());

$nick_title $parser->do_parse($vbulletin->options[nick_announce_title], truetruetruetruetruefalse);

$nick_contents $parser->do_parse($vbulletin->options[nick_announce_conents], truetruetruetruetruefalse); 

When i put $nick_contents or $nick_title in a template it doesn't work but if i put
PHP Code:

echo $nick_contents

at the bottom of the forumhome_start plugin code then it echo's it out as it should. Any Ideas?

Paul M 08-13-2006 05:12 PM

1. Are you sure the option is called nick_announce_conents ?

2. You don't say which template you are putting them in.

rogersnm 08-13-2006 05:13 PM

1. yes
2. i am putting them into a custom template - nick_announce - which is variablised and called in the FORUHOME template

Paul M 08-13-2006 05:21 PM

Called how exactly ?

rogersnm 08-13-2006 05:24 PM

I mean the variable is defined to fetch the template and then you put the variable in another template.

rogersnm 08-15-2006 06:28 AM

bump

Paul M 08-15-2006 06:35 AM

You last reply made no sense to me.

rogersnm 08-16-2006 02:39 PM

Oh well, It made sense to other people who managed to help me.

Paul M 08-16-2006 06:20 PM

Good for them, pity they felt no need to post in here .....

rogersnm 08-16-2006 06:22 PM

Well Zero Tolerance didn't say it he more hinted towards it. I had set it to add the variable to the template using str replace in the hook global_start and then used bbcodalized it in forumhome_start so it had blank variables.


All times are GMT. The time now is 05:14 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.01074 seconds
  • Memory Usage 1,726KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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