Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 06 Jul 2013, 12:08
Seductor Seductor is offline
 
Join Date: May 2011
Best way to register a variable.

Hi there,

I want to pass two variables to the Forumhome template. I'm doing a Youtube Slider:
http://pastebin.com/pCA6MpAx

My variables are two arrays, $youtubeimg and $youtubelink. I have created a plugin hooked to the Forumhome template already.

Which would be the better way to pass this variables then? I have tried this in my plugin, for example:

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

But it didn't work. How could do it?

Regards.
Reply With Quote
  #2  
Old 06 Jul 2013, 15:03
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
That should have worked, if your variables are set when you make that call. Which hook did you use for your plugin, and what did you put in the template?
Reply With Quote
  #3  
Old 06 Jul 2013, 16:41
Seductor Seductor is offline
 
Join Date: May 2011
I tried to use forumhome_start and parse_templates and I had in the template the following code:

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

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 07:27.

Layout Options | Width: Wide Color: