The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
php calls from template - multiple
My goal is to create a section of information and maps which I would like to edit independantly ( ie: only work on "Automotive" php file rather than the entire template )
I also prefer cutting down webpages into smaller subsections/files to keep things cleaner & easier to edit. So each section will have its own .php file containing its tables and contents but needs to be called by the main table and organized in organized fashion. Its nothing too technical but after reading some posts about including php includes calls via the template it looks like I'm going about it all wrong. Here's the page as it sits being called completely from the template: http://flaforum.com/resources.php and this is how I would like to call the code: Code:
<table width="100%" border="0" cellspacing="4" cellpadding="0"> <tr> <td> <? require ("resources/florida.php");?> </td> <td><? require ("resources/beaches.php");?></td> <td><? require("resources/parks.php");?></td> </tr> <tr> <td><? require("resources/automotive.php");?></td> <td><? require("resources/motorcycle.php");?></td> <td><? require("resources/kart.php");?></td> </tr> <tr> <td><? require("resources/firearm.php");?></td> <td><? require("resources/sports.php");?></td> <td><? require("resources/misc.php");?></td> </tr> </table> |
#2
|
||||
|
||||
You can't use PHP in templates. Read this. http://www.vbulletin.com/docs/html/m..._externalfiles
|
#3
|
|||
|
|||
Ok I believe I have an idea of what to do now. Thanks for that page Analog
|
#4
|
||||
|
||||
No problem.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|