PDA

View Full Version : Sending showthread variables to Navbar


Acido
10-30-2013, 05:44 PM
Hello. I was reading a lof of threads, but i cant find the help what i need.

What i need it's send some variables created in showthread, as example $thread['forumid'] to the template navbar to use it there.

can someone give a small light to do this?

Thank you.

--------------- Added 1383172132 at 1383172132 ---------------

I can print this variable on the template navbar:

{vb:raw GLOBALS.thread.myvar}

But how use that var as a template conditional? I'm not getting ressult if i try:

<vb:if condition=$GLOBALS[thread.myvar]>

What it's the correct sintaxis?

--------------- Added 1383184990 at 1383184990 ---------------

Ok, found the correct sintaxis and i hope that it help to others.

It's
<vb:if condition=$GLOBALS[thread][myvar]>

That let me use any fields of the table thread as conditionals in the navbar template.