Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Wednesday, May 22 2013 @ 07:16 PM EDT


 Forum Index > Support > General Geeklog Support New Topic Post Reply
 Geeklog + my html
   
AlbertLewis
 05/24/02 07:20PM (Read 809 times)  
+----
Newbie

Status: offline


Registered: 05/23/02
Posts: 3
How would i make a .php file that would include the header, fooder, and blocks, but leave the middle area open for me to do what ever i please with?

I have seen staticpages, but they wont work because they only allow some HTML and also hae strange urls.

 
Profile Email
 Quote
Dirk
 05/25/02 03:29AM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
Hmm, at the bottom of the static pages editor, it says "all HTML allowed" - which tags give you problems there?

Anway, you could make your own pages wrapped into Geeklog like this:

<?php
require_once ('lib-common.php');

echo COM_siteHeader ('menu');
echo COM_startBlock ("Some title"Wink; // optional - will wrap your page in a block
?>

<!-- your HTML stuff here -->

<?php
echo COM_endBlock(); // again, optional
echo COM_siteFooter();
>?

bye, Dirk

 
Profile Email Website
 Quote
Anonymous: Anonymous
 05/25/02 12:43PM  



Alright, thanks alot. one more question.

echo COM_siteHeader ('menu');

That is what puts the header file in right?

if i make a header file called header2.thml how can i include it?

 
 Quote
Dirk
 05/26/02 01:52AM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027

That, I'm afraid, is not so easy ...

If you want to do that, you would need to clone the function COM_siteHeader() from lib-common.php.

bye, Dirk


 
Profile Email Website
 Quote
Content generated in: 1.20 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content