PDA

View Full Version : Get it work some variables and conditionals in header or navbar


Scanu
05 Sep 2011, 14:18
Hi all i'm looking to get it work this variables


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


and this conditionals


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


in the header or navbar how do i? someone can help me? :)

Lynne
05 Sep 2011, 16:04
In order to use a variable in a template, first you need to make sure the variable is actually defined. My guess is, you don't mean "$post['field6']" but instead mean "$bbuserinfo['field6']" And username is actually bbuserinfo.username, same with musername.

Scanu
05 Sep 2011, 20:57
Sorry username is ok but i really mean "<vb:if condition="$post['field6']">" i see this variables in postbit i want tho show something who fill this custom filed but in header don't work..
Thank you for your help

Lynne
05 Sep 2011, 23:08
And as I said, I believe you want to use the variable $bbuserinfo instead of $post. $post is not defined on many (any?) other pages except the showthread page.

Scanu
06 Sep 2011, 09:37
ok but


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Is right?

--------------- Added 1315313327 at 1315313327 ---------------

ok thank you for your help I did it :)