The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
using PHP in templates
ok I have been out of the scene for a LONG time, I'm working on a new product, and im just having a huge brain fart.
Im trying to use php in a template I have created what I want to convert to a product in PHP, an example of my source is PHP Code:
Im brain farting so hard. Global Plugin: PHP Code:
HTML Code:
<div class="blah"> $var <div class="thing"> <span class="stuff">$var2</span> </div> $var3 </div> |
#2
|
|||
|
|||
That would only work if the variables were evaluated to PHP code, but they are not.
In vBulletin, they would loop in a PHP script and then call the template that would contain: Code:
<div class="thing"> <span class="stuff"><?php echo number_format($row['stuff']);?></span> </div> |
#3
|
||||
|
||||
scratch this, my brain un farted lol. Im going about this wrong, i need to create a plugin with this PHP/HTML in it, and give that the variable, then use that variable in the template..... if that makes sence
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|