Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 01 Jan 2010, 18:24
xms xms is offline
 
Join Date: Mar 2005
Calling a variable. Simple question...well it used to be.

Hi All,

I have the following variable $foo which is defined in a plugin hooked on to global_start.

$foo is referred to only in the 'header' template using {vb:raw foo}.

But it isnt working. I've read enough stuff about 'registering variables' to make my head spin. But none of what I have read seems to mention where to register the variables (in the plugin, in the template, in a specific hook location????).

Help.

Thanks
Reply With Quote
  #2  
Old 01 Jan 2010, 18:29
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You need to preregister it using a plugin that is parsed *before* the template is rendered.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 18:31.

Layout Options | Width: Wide Color: