Welcome to Geeklog, Anonymous Sunday, March 16 2025 @ 10:20 pm EDT
Geeklog Forums
Geeklog + my html
AlbertLewis
Anonymous
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.
16
13
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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"
; // optional - will wrap your page in a block
?>
<!-- your HTML stuff here -->
<?php
echo COM_endBlock(); // again, optional
echo COM_siteFooter();
>?
bye, Dirk

8
12
Quote
Anonymous
Anonymous
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?
11
10
Quote
All times are EDT. The time is now 10:20 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content