Welcome to Geeklog, Anonymous Friday, December 06 2024 @ 06:18 am EST

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.
 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"Wink; // optional - will wrap your page in a block ?> <!-- your HTML stuff here --> <?php echo COM_endBlock(); // again, optional echo COM_siteFooter(); >? bye, Dirk
 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?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany

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

 Quote

All times are EST. The time is now 06:18 am.

  • 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