FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » how can i build a page with fudforum's header and footer?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: how can i build a page with fudforum's header and footer? [message #5781 is a reply to message #5760] Thu, 19 September 2002 06:24 Go to previous messageGo to previous message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma:
Senior Member

prottoss wrote on Wed, 18 September 2002 20:05

Hmm... this is actually not very easy todo, unless you use FUDforum's templating system to build the page. The reason being that the compiled header/footer are not stored in seperate files anywhere.

So, what you need to do, is build a template that would generate you a compiled file containing a header and another compiled file containing the footer.
Then, simply include those 2 files into your page.



i has got it!

test.inc.t
==========================
<?
{PRE_HTML_PHP}
{POST_HTML_PHP}
$section_data='{TEMPLATE: content}';
{POST_PAGE_PHP_CODE}
?>
{TEMPLATE: TEST}
===========================
test.tmpl
========================
{PHP_FILE: input: test.inc.t; output: test.php;}
{REF: security.tmpl}
{REF: header.tmpl}
{REF: footer.tmpl}
{REF: usercp.tmpl}
{REF: curtime.tmpl}
{PAGE: TEST}
{TEMPLATE: header}
{TEMPLATE: usercp}
{TEMPLATE-DATA: section_data}
{TEMPLATE: curtime}
{TEMPLATE: footer}
{PAGE: END}
{SECTION: content}
<center>CONTENT</center>
{SECTION: END}
====================================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Postings - need to turn off posting count for one user
Next Topic: Add searchable field to message?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 21:24:05 GMT 2024

Total time taken to generate the page: 0.04392 seconds