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 :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
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 03:45 Go to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user

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 03: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 08: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
add to buddy list
ignore all messages by this user
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] Wed, 18 September 2002 21: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
add to buddy list
ignore all messages by this user

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 02: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
add to buddy list
ignore all messages by this user

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 12:08 Go to previous messageGo to next message
Nightshade is currently offline  Nightshade   United States
Messages: 9
Registered: July 2003
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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] Sun, 27 July 2003 22: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
add to buddy list
ignore all messages by this user
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 01:00 Go to previous messageGo to next message
Nightshade is currently offline  Nightshade   United States
Messages: 9
Registered: July 2003
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 01: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 08: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
add to buddy list
ignore all messages by this user
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 18:37 Go to previous message
Nightshade is currently offline  Nightshade   United States
Messages: 9
Registered: July 2003
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Yes, I got that. But shouldn't any edits of the test.php file show changes on the forum page?
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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 Dec 12 01:36:14 EST 2017

Total time taken to generate the page: 0.00709 seconds