Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 17 Jan 2010, 18:51
masterross's Avatar
masterross masterross is offline
 
Join Date: Dec 2005
Question templates sending variables (eval)

Hi guys,

Can you help me to upgrade old way to send data to templates?

this is the vB3 code


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

How should be look in vB4 ?

thx in advance!
__________________
Need more ports on your laptop? Port Replicator will help you.
And don't be wired to your PC! Use Bluetooth Keyboard and Mouse.
Reply With Quote
  #2  
Old 17 Jan 2010, 18:59
GiveMeABreak GiveMeABreak is offline
 
Join Date: Aug 2009
$my_variable = in_array(THIS_SCRIPT, array(misc,' forum '));
$templater->register('my_variable', $my_variable);

in template {vb:raw my_variable}
Reply With Quote
  #3  
Old 17 Jan 2010, 23:07
masterross's Avatar
masterross masterross is offline
 
Join Date: Dec 2005
thx mate!
__________________
Need more ports on your laptop? Port Replicator will help you.
And don't be wired to your PC! Use Bluetooth Keyboard and Mouse.
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 06:58.

Layout Options | Width: Wide Color: