<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Static pages with template style, was: Template: Global Business</title>
        <description> Ok, after many trials and tribulations, I have finally been able to make this template work on all fronts.  I am slowly but surely figuring this stuff out!  Turns out you can declare the css file in the header and that is what I did along with adjusting the css file in the forum directory. 

Anyways, here&amp;#039;s what it looks like.  I&amp;#039;m thinking it turned out pretty nice.  I even made a few helpful HTML help pages that I linked to in the top which hopefully will make BB-Code easier for my non technical members. 

In making the HTM files I did notice something.  I was unable to &amp;quot;include&amp;quot; the header.tpl and footer.tpl in the HTML pages.  Copying the code from the associated files does nothing, so I had to recreate the header and footer look within each HTML page individually.  That was a pain, and shouldn&amp;#039;t have been necessary and frankly it doesn&amp;#039;t look as good as the header and footer look with the regular php code running.  The formatting is pretty much off.  It looks OK, but I know it can look much better if I can simply call the header and footer from within the HTML.

I have been googling left and right for an answer.  I&amp;#039;ve messed with the .htmaccess file and that didn&amp;#039;t help.  Basically none of the PHP code works on my HTML pages.

Can anyone get me started down the right path for calling the header.tpl and footer.tpl from within these already created pages?  What am I doing wrong?

Hopefully this is the right place to ask this question if not I can recreate it elsewhere.

Thanks,

Joe (rchecka)

[Thread split. Oliver Riesen]</description>
        <link>https://www.phorum.org/support/read.php?61,156057,156057#msg-156057</link>
        <lastBuildDate>Mon, 09 Nov 2026 23:18:03 -0600</lastBuildDate>
        <generator>Phorum 6.0.4</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,156057,156135#msg-156135</guid>
            <title>Re: Template: Global Business</title>
            <link>https://www.phorum.org/support/read.php?61,156057,156135#msg-156135</link>
            <description><![CDATA[ Hi Joe,<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>rchecka</strong><br />This info right here deserves a post of it&#039;s own, this wasn&#039;t easy to find and many would benefit from this.</div></blockquote>
<br />
Done: [<a href="https://github.com/Phorum/Core/commit/30e119d2c6d0d910a86aede4a49a7386fe85c182" target="_blank"  rel="nofollow">github.com</a>]<br />
<br />
Regards<br />
Oliver]]></description>
            <dc:creator>Oliver Riesen-Mallmann</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Mon, 28 Sep 2015 07:50:50 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,156057,156121#msg-156121</guid>
            <title>Re: Template: Global Business</title>
            <link>https://www.phorum.org/support/read.php?61,156057,156121#msg-156121</link>
            <description><![CDATA[ Thanks a million Oliver, you have been extremely helpful and I cannot thank you enough!  <br />
<br />
<b>^^This info right here deserves a post of it&#039;s own, this wasn&#039;t easy to find and many would benefit from this.</b>]]></description>
            <dc:creator>rchecka</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Thu, 24 Sep 2015 12:50:44 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,156057,156120#msg-156120</guid>
            <title>Re: Template: Global Business</title>
            <link>https://www.phorum.org/support/read.php?61,156057,156120#msg-156120</link>
            <description><![CDATA[ Hi rchecka,<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>rchecka</strong><br />
Can I include an alternate location for the stylesheet in the PHP code above the HTML code because I want the style sheet to be in the same location of the regular style sheet but it&#039;s called &quot;global_style_alt&quot;?</div></blockquote>
<br />
The used template depends on the actual forum. If all your forums uses global_style_alt it is used also for your static page.<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>rchecka</strong><br />
Also since these are special pages can I have the PHP inject an alternate meta description?</div></blockquote>
<br />
You can manipulate nearly everything in $PHORUM[&#039;DATA&#039;], like this:<br />
<br />
[code=&quot;php&quot;]<br />
&lt;?php<br />
 <br />
//<br />
// BBCode Help<br />
//<br />
 <br />
define(&#039;phorum_page&#039;,&#039;bbcode-help&#039;);<br />
 <br />
include_once(&#039;./common.php&#039;);<br />
<br />
$PHORUM[&#039;DATA&#039;][&#039;HEADING&#039;] = &#039;BBCode Help - &#039;.(isset($PHORUM[&#039;name&#039;]) ? $PHORUM[&#039;name&#039;] : &#039;&#039;);<br />
$PHORUM[&#039;DATA&#039;][&#039;HTML_DESCRIPTION&#039;]<br />
  = &#039;Some description for this help page.&#039;;<br />
$PHORUM[&#039;DATA&#039;][&#039;BREADCRUMBS&#039;][] = array(<br />
    &#039;URL&#039;  =&gt; &#039;/bbcode-help.php?&#039;.$PHORUM[&#039;forum_id&#039;],<br />
    &#039;TEXT&#039; =&gt; &#039;BBCode Help&#039;<br />
);<br />
 <br />
// set all our URL&#039;s<br />
phorum_build_common_urls();<br />
 <br />
include phorum_get_template(&#039;header&#039;);<br />
phorum_hook(&#039;after_header&#039;);<br />
 <br />
?&gt;<br />
 <br />
  &lt;h1&gt;Chapter&lt;/h1&gt;<br />
  &lt;p&gt;<br />
    some nice help...<br />
  &lt;/p&gt;<br />
 <br />
&lt;?php<br />
 <br />
phorum_hook(&#039;before_footer&#039;);<br />
include phorum_get_template(&#039;footer&#039;);<br />
 <br />
?&gt;<br />
[/code]<br />
<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>rchecka</strong><br />
I can put whatever HTML I want in the code you gave me</div></blockquote>
<br />
Yes, why not? I&#039;m using this kind of pages in multiple cases: <a href="http://forum.langzeittest.de/abonnement.php?180" target="_blank"  rel="nofollow">order forms for our mailing list</a> (content of this page depends on the actual forum), <a href="http://forum.langzeittest.de/bestellung-aufkleber.php?180" target="_blank"  rel="nofollow">order form for our adhesive label</a>, <a href="http://forum.langzeittest.de/nutzungsbedingungen.php" target="_blank"  rel="nofollow">showing the terms of service</a>.<br />
<br />
Regards<br />
Oliver]]></description>
            <dc:creator>Oliver Riesen-Mallmann</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Thu, 24 Sep 2015 09:18:32 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,156057,156115#msg-156115</guid>
            <title>Re: Template: Global Business</title>
            <link>https://www.phorum.org/support/read.php?61,156057,156115#msg-156115</link>
            <description><![CDATA[ <span style="font-size:large"><b>AWESOME OLIVER, THANK YOU!!!</b></span><br />
<br />
Last question I promise!  <br />
<br />
Can I include an alternate location for the stylesheet in the PHP code above the HTML code because I want the style sheet to be in the same location of the regular style sheet but it&#039;s called &quot;global_style_alt&quot;?<br />
<br />
Also since these are special pages can I have the PHP inject an alternate meta description?  <br />
<br />
I can put whatever HTML I want in the code you gave me but I can&#039;t override the stylesheet in that section and I can&#039;t override the meta description?  <br />
<br />
If I can do something like an alt style sheet and alt meta descriptions in the PHP code before it gets to the HTML code it will be perfect!]]></description>
            <dc:creator>rchecka</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Mon, 21 Sep 2015 15:38:26 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,156057,156114#msg-156114</guid>
            <title>Re: Template: Global Business</title>
            <link>https://www.phorum.org/support/read.php?61,156057,156114#msg-156114</link>
            <description><![CDATA[ Hi rchecka,<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>rchecka</strong><br />
In making the HTM files I did notice something.  I was unable to &quot;include&quot; the header.tpl and footer.tpl in the HTML pages.  Copying the code from the associated files does nothing, so I had to recreate the header and footer look within each HTML page individually.</div></blockquote>
<br />
Here is some example for such a static page for your BBCode help:<br />
<br />
[code=&quot;php&quot;]<br />
&lt;?php<br />
<br />
//<br />
// BBCode Help<br />
//<br />
<br />
define(&#039;phorum_page&#039;,&#039;bbcode-help&#039;);<br />
<br />
include_once(&#039;./common.php&#039;);<br />
<br />
// set all our URL&#039;s<br />
phorum_build_common_urls();<br />
<br />
include phorum_get_template(&#039;header&#039;);<br />
phorum_hook(&#039;after_header&#039;);<br />
<br />
?&gt;<br />
<br />
  &lt;h1&gt;Chapter&lt;/h1&gt;<br />
  &lt;p&gt;<br />
    some nice help...<br />
  &lt;/p&gt;<br />
<br />
&lt;?php<br />
<br />
phorum_hook(&#039;before_footer&#039;);<br />
include phorum_get_template(&#039;footer&#039;);<br />
<br />
?&gt;<br />
[/code]<br />
<br />
Put the file in the root folder of your forum, for example bbcode-help.php.<br />
<br />
Regards<br />
Oliver<br />
<br />
P.S. You can also find an example of such a page in the <a href="http://www.phorum.org/phorum5/read.php?62,129366,129366#msg-129366" target="_blank" >Terms of Service Module</a>.]]></description>
            <dc:creator>Oliver Riesen-Mallmann</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Mon, 21 Sep 2015 04:32:20 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,156057,156098#msg-156098</guid>
            <title>Re: Template: Global Business</title>
            <link>https://www.phorum.org/support/read.php?61,156057,156098#msg-156098</link>
            <description><![CDATA[ Checking now...]]></description>
            <dc:creator>rchecka</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Thu, 17 Sep 2015 16:07:38 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,156057,156096#msg-156096</guid>
            <title>Re: Template: Global Business</title>
            <link>https://www.phorum.org/support/read.php?61,156057,156096#msg-156096</link>
            <description><![CDATA[ From common (there are some notes in this file)<br />
[code=&quot;php&quot;]<br />
<br />
include phorum_get_template(&quot;footer&quot;);<br />
<br />
<br />
// Load all constants from ./include/constants.php<br />
require_once( &quot;./include/constants.php&quot; );<br />
<br />
// Load the API code that is required for all pages.<br />
require_once(&quot;./include/api/base.php&quot;);<br />
require_once(&quot;./include/api/user.php&quot;);<br />
[/code]<br />
<br />
<br />
<br />
From Index<br />
[code=&quot;php&quot;]<br />
include_once( &quot;./common.php&quot; );<br />
<br />
include_once( &quot;./include/format_functions.php&quot; );<br />
[/code]]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Thu, 17 Sep 2015 12:29:05 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,156057,156073#msg-156073</guid>
            <title>Re: Template: Global Business</title>
            <link>https://www.phorum.org/support/read.php?61,156057,156073#msg-156073</link>
            <description><![CDATA[ Perhaps you have a look at the emerald template included in the Phorum core to understand the template system?]]></description>
            <dc:creator>Oliver Riesen-Mallmann</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Thu, 17 Sep 2015 04:51:38 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,156057,156069#msg-156069</guid>
            <title>Re: Template: Global Business</title>
            <link>https://www.phorum.org/support/read.php?61,156057,156069#msg-156069</link>
            <description><![CDATA[ This isn&#039;t any easier at all.  I wasted another day effing around with php when my html works just fine except for the header.<br />
<br />
Once I add the php tags in the beginning and end it bombs out.  The only time I can get the include to work, it does a damn redirect to the 404 not found page!  <br />
<br />
PLEASE WTF is the answer so I can move on with my life??  Can someone give me the actual syntax because I have read and reread your documentation here for developers 100x and not one place does it tell you how to include the header or footer.]]></description>
            <dc:creator>rchecka</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Wed, 16 Sep 2015 14:42:06 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,156057,156068#msg-156068</guid>
            <title>Re: Template: Global Business</title>
            <link>https://www.phorum.org/support/read.php?61,156057,156068#msg-156068</link>
            <description><![CDATA[ ^Awesome, that&#039;s way easier, I&#039;ll do that.  <br />
<br />
But I must be doing something wrong with my include statement.  Can you tell me what file specifically calls the header that I can look at the syntax?]]></description>
            <dc:creator>rchecka</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Wed, 16 Sep 2015 11:53:58 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,156057,156058#msg-156058</guid>
            <title>Re: Template: Global Business</title>
            <link>https://www.phorum.org/support/read.php?61,156057,156058#msg-156058</link>
            <description><![CDATA[ Simplified...<br />
<br />
Rename your .html to .php.<br />
Insert php tags at the top and bottom of the file and ...<br />
Include the header / footer like phorum does.]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Mon, 14 Sep 2015 18:28:25 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,156057,156057#msg-156057</guid>
            <title>Static pages with template style, was: Template: Global Business</title>
            <link>https://www.phorum.org/support/read.php?61,156057,156057#msg-156057</link>
            <description><![CDATA[ Ok, after many trials and tribulations, I have finally been able to make <a href="http://www.phorum.org/phorum5/read.php?63,155469" target="_blank" >this template</a> work on all fronts.  I am slowly but surely figuring this stuff out!  Turns out you can declare the css file in the header and that is what I did along with adjusting the css file in the forum directory. <br />
<br />
Anyways, <a href="http://cratedigging.co/" target="_blank"  rel="nofollow">here&#039;s what it looks like</a>.  I&#039;m thinking it turned out pretty nice.  I even made a few helpful HTML help pages that I linked to in the top which hopefully will make BB-Code easier for my non technical members. <br />
<br />
In making the HTM files I did notice something.  I was unable to &quot;include&quot; the header.tpl and footer.tpl in the HTML pages.  Copying the code from the associated files does nothing, so I had to recreate the header and footer look within each HTML page individually.  That was a pain, and shouldn&#039;t have been necessary and frankly it doesn&#039;t look as good as the header and footer look with the regular php code running.  The formatting is pretty much off.  It looks OK, but I know it can look much better if I can simply call the header and footer from within the HTML.<br />
<br />
I have been googling left and right for an answer.  I&#039;ve messed with the .htmaccess file and that didn&#039;t help.  Basically none of the PHP code works on my HTML pages.<br />
<br />
Can anyone get me started down the right path for calling the header.tpl and footer.tpl from within these already created pages?  What am I doing wrong?<br />
<br />
Hopefully this is the right place to ask this question if not I can recreate it elsewhere.<br />
<br />
Thanks,<br />
<br />
Joe (rchecka)<br />
<br />
[Thread split. Oliver Riesen]]]></description>
            <dc:creator>rchecka</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Mon, 14 Sep 2015 14:44:07 -0500</pubDate>
        </item>
    </channel>
</rss>
