vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   php calls from template - multiple (https://vborg.vbsupport.ru/showthread.php?t=162610)

street tactic 11-13-2007 01:23 PM

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>

Anyone have any ideas ? I would also prefer keeping this information stored in files rather than increase my database size because at some point this will be a substantial amount of information. :confused:

Analogpoint 11-13-2007 03:48 PM

You can't use PHP in templates. Read this. http://www.vbulletin.com/docs/html/m..._externalfiles

street tactic 11-13-2007 04:29 PM

Ok I believe I have an idea of what to do now. Thanks for that page Analog

Analogpoint 11-13-2007 07:09 PM

No problem.


All times are GMT. The time now is 09:19 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
  • Page Generation 0.01047 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete