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
Switch to threaded view of this topic Create a new topic Submit Reply
how can i build a page with fudforum's header and footer? [message #5754] Wed, 18 September 2002 07:45 Go to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

Rolling Eyes
===============
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #5775 is a reply to message #5760] Thu, 19 September 2002 01:06 Go to previous messageGo to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

thanks! i will try it.
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 next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
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}
====================================
Re: how can i build a page with fudforum's header and footer? [message #12062 is a reply to message #5781] Sun, 27 July 2003 16:08 Go to previous messageGo to next message
Nightshade is currently offline  Nightshade   United States
Messages: 9
Registered: July 2003
Karma: 0
Junior Member
Help?

Where would you put this code?
Re: how can i build a page with fudforum's header and footer? [message #12074 is a reply to message #12062] Mon, 28 July 2003 02:56 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
This code is two files, the .php.t file containing the PHP code goes into the src directory and the template file .tmpl goes into the tmpl/ directory.

FUDforum Core Developer
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 Go to previous messageGo to next message
Nightshade is currently offline  Nightshade   United States
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

Re: how can i build a page with fudforum's header and footer? [message #12085 is a reply to message #12076] Mon, 28 July 2003 12:52 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
After making the files you need run rebuild the theme via the theme manager. The result would be a creation of test.php inside theme/default/.

FUDforum Core Developer
Re: how can i build a page with fudforum's header and footer? [message #12115 is a reply to message #12085] Mon, 28 July 2003 22:37 Go to previous message
Nightshade is currently offline  Nightshade   United States
Messages: 9
Registered: July 2003
Karma: 0
Junior Member
Yes, I got that. But shouldn't any edits of the test.php file show changes on the forum page?
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Nov 06 22:15:16 GMT 2024

Total time taken to generate the page: 0.02698 seconds