how can i build a page with fudforum's header and footer? [message #5754] |
Wed, 18 September 2002 07:45 |
|
===============
it look like this
F.A.Q. Profile Logout [ ezdb ] Home
Private Messaging Members Search
forumhome>>newpage
content
Current Time: Wed Sep 18 15:41:31 CST 2002
Total time taken to generate the page: 0.050565958023071 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 2.3.1
Copyright ©2001,2002 Advanced Internet Designs Inc.
[Updated on: Wed, 18 September 2002 07:46] Report message to a moderator
|
|
|
Re: how can i build a page with fudforum's header and footer? [message #5760 is a reply to message #5754] |
Wed, 18 September 2002 12:05 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
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.
FUDforum Core Developer
|
|
|
|
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 |
|
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}
====================================
|
|
|
|
|
Re: how can i build a page with fudforum's header and footer? [message #12076 is a reply to message #12062] |
Mon, 28 July 2003 05:00 |
Nightshade
Messages: 9 Registered: July 2003
Karma: 0
|
Junior Member |
|
|
Ok, I got it that far. But when I edit that test.php file and save it, nothing happens, as in no changes to my page.
I can just edit the template files in the editor now that I synched my current template with the default (now that i found the template files and did alot of copying and pasting).
I would also love to be able to put a space between my catagories. Is there any way to do this? My thought is an extra table with no background, no text, and no border.
[Updated on: Mon, 28 July 2003 05:26] Report message to a moderator
|
|
|
|
|