FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
Include php file
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=161782&th=119113#msg_161782
For example, I have navbar.php that I want included on the forums (domain.com/forums) so it displays the same information as the homepage (domain.com) and I will only have to edit the navbar.php to edit both the homepage and forums.
Is this possible? I have tried creating a tmpl for it, but it does not work. And yes, I have rebuilt the forum several times..]]>btweedy2010-02-05T19:17:57-00:00Re: Include php file
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=161783&th=119113#msg_161783
I have a php file (navbar.php) that I am including on my home page (domain.com/index.php).
I want to be able to include this in the forum's header (header.tmpl) so when domain.com/forum (and all pages in the forum) will display this same navbar.php.
The problem I am having is in the header.tmpl, the nav bar is displaying where I have the {REF: navbar.tmpl} statement instead of where I have the {TEMPLATE: navbar}
Right now I have navbar.inc.t in the src folder that provides the include statement.
I then have navbar.tmpl file in the tmpl for the respected forum that takes this .inc.t file. Inside this tmpl file I have the following:
The nav variable is defined in the navbar.inc.t and is set to the include statement.
Now, when I put the {REF: navbar.tmpl} statement in the header.tmpl, it displays the navbar instead of where the {TEMPLATE: navbar} statement is.]]>btweedy2010-02-05T21:29:33-00:00Re: Include php file
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=161785&th=119113#msg_161785
Maybe <?php include 'navbar.php'; ?> ?
]]>naudefj2010-02-06T06:24:04-00:00