<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[PunBB Forums — Using PHP in Template...]]></title>
	<link rel="self" href="http://punbb.informer.com/forums/feed/atom/topic/19767/" />
	<updated>2011-01-04T15:22:26Z</updated>
	<generator>PunBB</generator>
	<id>http://punbb.informer.com/forums/topic/19767/using-php-in-template/</id>
		<entry>
			<title type="html"><![CDATA[Re: Using PHP in Template...]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/139037/#p139037" />
			<content type="html"><![CDATA[<p>anyone?</p>]]></content>
			<author>
				<name><![CDATA[colak]]></name>
				<uri>http://punbb.informer.com/forums/user/2783/</uri>
			</author>
			<updated>2011-01-04T15:22:26Z</updated>
			<id>http://punbb.informer.com/forums/post/139037/#p139037</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using PHP in Template...]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/139017/#p139017" />
			<content type="html"><![CDATA[<p>Is there a way to include a script in main.tpl which is outside the user directory?</p><p>I&#039;ve got the forum at <a href="http://forum.domain.tld">http://forum.domain.tld</a> and the site on <a href="http://www.domain.tld">http://www.domain.tld</a>. I also have a php script on <a href="http://www.domain.tld/scripts/myscript1.php">http://www.domain.tld/scripts/myscript1.php</a> which I am&nbsp; trying to include with </p><div class="codebox"><pre><code>&lt;!-- forum_include &quot;http://www.domain.tld/scripts/myscript1.php&quot; --&gt;</code></pre></div><p> but it does not work. Can anyone offer any advise?</p>]]></content>
			<author>
				<name><![CDATA[colak]]></name>
				<uri>http://punbb.informer.com/forums/user/2783/</uri>
			</author>
			<updated>2010-12-30T08:12:14Z</updated>
			<id>http://punbb.informer.com/forums/post/139017/#p139017</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using PHP in Template...]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/135868/#p135868" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>voxberry wrote:</cite><blockquote><p> I have the forum located in /www/website/forum/ <br />and the file i need to include is in /www/website/includes/test.php<br />and this does not work :&lt;!-- forum_include &quot;&lt;../includes/test.php&gt;&quot; --&gt;</p></blockquote></div><p>It is not /include<strong>s</strong> it is /include. <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> </p><p>The line in main.tpl should read<br /><strong>&lt;div &lt;!-- forum_include &quot;test.html&quot; --&gt;&lt;/div&gt;</strong><br />and test.html should be in&nbsp; /<strong>forum/include/user/</strong>.</p>]]></content>
			<author>
				<name><![CDATA[Ole Juul]]></name>
				<uri>http://punbb.informer.com/forums/user/35667/</uri>
			</author>
			<updated>2010-07-01T09:21:42Z</updated>
			<id>http://punbb.informer.com/forums/post/135868/#p135868</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using PHP in Template...]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/135856/#p135856" />
			<content type="html"><![CDATA[<p>hello .<br />I&#039;m also trying to manipulate the template and I need to include an outside file ...<br />I have the forum located in /www/website/forum/ <br />and the file i need to include is in /www/website/includes/test.php<br />and this does not work :&lt;!-- forum_include &quot;&lt;../includes/test.php&gt;&quot; --&gt;</p><p>anybody has any ideea on how to do it ?</p>]]></content>
			<author>
				<name><![CDATA[voxberry]]></name>
				<uri>http://punbb.informer.com/forums/user/48400/</uri>
			</author>
			<updated>2010-06-30T12:19:53Z</updated>
			<id>http://punbb.informer.com/forums/post/135856/#p135856</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using PHP in Template...]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/132173/#p132173" />
			<content type="html"><![CDATA[<p>It seems that problem was solved. I can see the banner at the header.</p>]]></content>
			<author>
				<name><![CDATA[Slavok]]></name>
				<uri>http://punbb.informer.com/forums/user/13265/</uri>
			</author>
			<updated>2009-11-05T09:14:03Z</updated>
			<id>http://punbb.informer.com/forums/post/132173/#p132173</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using PHP in Template...]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/132152/#p132152" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Slavok wrote:</cite><blockquote><p>To include a PHP file in templates use &lt;!-- forum_include &quot;&lt;MY_FILE.php&gt;&quot; --&gt;. &lt;pun_include &quot;*&quot;&gt; was used in PunBB 1.2.</p></blockquote></div><br /><p>I want to include banner on the right side of the forum head which is blank. How can I do it?<br />I&#039;m new in punbb. My forum address is <a href="http://forum.banglalibrary.org">http://forum.banglalibrary.org</a><br />It would be kind enough if you help me.</p>]]></content>
			<author>
				<name><![CDATA[banglalibrary]]></name>
				<uri>http://punbb.informer.com/forums/user/22385/</uri>
			</author>
			<updated>2009-11-03T12:07:03Z</updated>
			<id>http://punbb.informer.com/forums/post/132152/#p132152</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using PHP in Template...]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/117693/#p117693" />
			<content type="html"><![CDATA[<p>You were misinformed i belive...</p><p>1.2.* uses &lt;pun_include &quot;*&quot;&gt;<br />1.3.* uses &lt;!-- forum_include &quot;&lt;MY_FILE.php&gt;&quot; --&gt;</p><p>If your using 1.2 then you use the one from 1.2</p>]]></content>
			<author>
				<name><![CDATA[Utchin]]></name>
				<uri>http://punbb.informer.com/forums/user/9648/</uri>
			</author>
			<updated>2008-09-16T11:12:48Z</updated>
			<id>http://punbb.informer.com/forums/post/117693/#p117693</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using PHP in Template...]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/117690/#p117690" />
			<content type="html"><![CDATA[<p>Still no luck... I&#039;ve even just created a real simple test.php file, all it does is echo out the word &quot;Hello.&quot; Using that syntax I&#039;ve added it into the main.tpl and still get no results.</p><p>&lt;!-- forum_include &quot;&lt;test.php&gt;&quot; --&gt;</p><br /><p>EDIT: Ahh I see... it&#039;s &lt;!-- pun_include &quot;test.php&quot; --&gt;</p><p>Thanks for putting me on the right path! :]</p>]]></content>
			<author>
				<name><![CDATA[jewofcanada]]></name>
				<uri>http://punbb.informer.com/forums/user/13882/</uri>
			</author>
			<updated>2008-09-15T23:31:26Z</updated>
			<id>http://punbb.informer.com/forums/post/117690/#p117690</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using PHP in Template...]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/117671/#p117671" />
			<content type="html"><![CDATA[<p>To include a PHP file in templates use &lt;!-- forum_include &quot;&lt;MY_FILE.php&gt;&quot; --&gt;. &lt;pun_include &quot;*&quot;&gt; was used in PunBB 1.2.</p>]]></content>
			<author>
				<name><![CDATA[Slavok]]></name>
				<uri>http://punbb.informer.com/forums/user/13265/</uri>
			</author>
			<updated>2008-09-15T06:21:16Z</updated>
			<id>http://punbb.informer.com/forums/post/117671/#p117671</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Using PHP in Template...]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/117628/#p117628" />
			<content type="html"><![CDATA[<p>I know this topic has been posted a million times, but all the searching I&#039;ve done doesn&#039;t seem to help my specific situation. I know that to include a PHP file you use the &lt;pun_include &quot;whatever.php&quot;&gt;... but it doesn&#039;t seem to be working for me.</p><p>What I&#039;m doing is integrating the forum into my websites template. I&#039;ve taken a rather simple approach and just built a table around the content in the main.tpl. Right above the forum content, I&#039;ve used &lt;pun_include &quot;boxes.php&quot;&gt;. Boxes.php is a php file that echos out php based features of my site, such as a schedule, calendar, and recent posts. Each feature is placed within one of three boxes atop the page. All of this is done in the boxes.php file, which is uploaded to the forum/includes/user/ directory.</p><p>When I load the forum, nothing appears. It&#039;s as if the file wasn&#039;t even included. There&#039;s no error, no html structure of the boxes, nothing. I&#039;m not sure what I&#039;m doing wrong, but was wondering if perhaps it&#039;s not even possible to do what I&#039;m trying to do.</p><p>It&#039;s 5:15 in the morning so if I&#039;ve left out any information, just post and I&#039;ll be more than happy to provide you with what you need.</p>]]></content>
			<author>
				<name><![CDATA[jewofcanada]]></name>
				<uri>http://punbb.informer.com/forums/user/13882/</uri>
			</author>
			<updated>2008-09-12T09:17:50Z</updated>
			<id>http://punbb.informer.com/forums/post/117628/#p117628</id>
		</entry>
</feed>
