The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I am writing some of my own pages and have a simple question regarding the interaction of the script and the templates.
i have this on test.php PHP Code:
HTML Code:
<tr> <td>$row[field1]</td> <td>$row[field2]</td> </tr> Thanks, eric |
#2
|
|||
|
|||
![]()
Thats the variable you want to use for your template inside a "main" template....so for instance I would have a template called
hack_main PHP Code:
then you would have another hack for named hack_bits... hack_bits PHP Code:
eval('$hackbits .= "' . fetch_template('hack_bits') . '";'); To make it it show in the hack_main template... So, when the script is finished the html would be parsed as... <html> <body> <table> <tr> <td> <tr> <td>$row[field1]</td> <td>$row[field2]</td> </tr> </td> </tr> </table> </body> </html> sorry if this is confusing. I am still learning, so I hope im explaining it right.. |
#3
|
||||
|
||||
![]()
ok, that makes sense. i am totally missing the bits part. back to the admincp for me...
thanks eric |
#4
|
||||
|
||||
![]()
It's just a name.
The code used to parse the template PHP Code:
|
#5
|
||||
|
||||
![]()
cool, thanks!
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|