The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Passing variable custom template - how? (Anyone here?)
vb3.0.3
In my .php file I have this: PHP Code:
PHP Code:
Hope this makes sense... I know this site is quiet but any help would be great. |
#2
|
||||
|
||||
It seems what you did is right.
Just make sure the variable has a value, and then call it in the script using $mypagetitle |
#3
|
||||
|
||||
What I want to do is include $mypagetitle in a *template* in AdminCP not another .php file. I can't work out how you can pass variables to use in the templates. That's my question. Thanks
|
#4
|
||||
|
||||
That's odd, I just tried it again and now it works... ROFL!
In my template I have: Code:
<div align="center"> <div class="page" style="width:100%; text-align:left"> <div style="padding:0px 10px 0px 10px"> <table cellpadding="4" cellspacing="2" border="0" width="100%" align="center"> <thead><tr align="center"> <td class="thead" width="100%" align="left">$custompagetitle</td></tr></thead> <tbody> <tr> <td class="alt1" align="left"> PHP Code:
|
#5
|
||||
|
||||
Exactly, all the $variables that have a value which is set before the call are available, because of the eval() I think.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|