![]() |
How can I access a new variable within a template?
I've used this tutorial to make a simple page. The goal is to create a movie viewer. I need to have access to a new variable inside of a template file so I can use conditionals on my new variable to make something happen.
For example here is my ideal template: HTML Code:
<div> |
That's correct, you may want to add a value to it, such as
HTML Code:
<if condition="$my_new_variable == 1">. PHP Code:
|
Thanks
I'm not really sure why my variable wouldn't work before. All kosher now, thanks! |
I have the same Problem:
I want to use a variable $tight_editor in my editor_toolbar_on template which i declared in my profile.php on the first hook which is called profile_start unfortunately in my editor i can't echo the variable any ideas |
Quote:
|
Hello,
I battled with a similar issue for quite some time and noticed the following: Lets say I want to display a debug variable in the header template like: HTML Code:
<div>$debugMsg</div> PHP Code:
This is great if you want your code to be in global_start, but what if you need it later? Does anyone know a simple way to change the already processed templates? |
All times are GMT. The time now is 11:21 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|