PDA

View Full Version : Parsing templates for PHP



JonnyQuest
Fri 5th May '00, 6:54am
I would like to include a call to a PHP script on one of my forum pages. I tried adding:
<?
view('scripty')
?>
but it wasn't parsed.
I know there is an option to parse headers and footers for php, however, when I turn it on I get the following error:

Parse error: parse error in global2.php on line 625

when I try to view any part of the forum.

Thanks.

John
Fri 5th May '00, 10:38pm
Once you have turned on PHP headers/footers, the header template must first be changed to look like this:



$header="<p>My header</p><a href=\"http://www.vbulletin.com\">vBulletin</a>";
include("adscript.php");
$header.=viewads($adid);
$header.="<p>Welcome!</p>";


John

bigsoccer tech
Thu 11th May '00, 3:04am
I'm still really confused. LEt's say i have an index.php page for my site, which has vB installed elsewhere.

ON this page i want to call

poll.php
activethreads.php

and maybe add a login to vB on it.

How do i call those .php files and include them in the .php file, whiel still using tempaltes to draw the page?