Welcome to Geeklog, Anonymous Monday, December 05 2022 @ 07:11 pm EST

Geeklog Forums

Porting old content


Status: offline

Kelvin

Forum User
Chatty
Registered: 10/08/02
Posts: 50
I'm about to Geeklog one of my sites, but before I go live I need to port some of the old content. Is there a simple way I could integrate my old php-content into the Geeklog framework? It's nothing complex; I have a few php functions for generating repetitive html-content which would be nice to have access to during the transition period. Neither "Story editor" nor "Static pages" appear to allow php content.
 Quote

Status: offline

Dirk

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

There's an extended version of the static pages plugin that allows the use of PHP (notice the postings about version 1.2 below).

Or you could simply wrap your PHP code in the Geeklog framework like this:

Text Formatted Code
require_once('lib-common.php');

$display = COM_siteHeader('menu');
$display .= COM_startBlock("Some Headline");

$display .= YourFunctionHere();

$display .= COM_endBlock();
$display .= COM_siteFooter();

echo $display;
 
bye, Dirk
 Quote

All times are EST. The time is now 07:11 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