Welcome to Geeklog, Anonymous Thursday, May 16 2024 @ 03:36 pm EDT

Geeklog Forums

Embed HTML/PHP into Geeklog


Auspexian

Anonymous
Nuke has this PHP program to embed HTML and PHP files into NUKE. Is there something similar?
I can embed with IFram, but I don't want to use Iframe.

Tks

Text Formatted Code


// includes the mainfile functions and the header junk
if (!isset($mainfile)) { include("mainfile.php"); }
include("header.php");
?>
<html>
// add here your html code //
</html>

<?php
include("footer.php");
?>


 
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
the external pages plugin should do what you want.
don't know the link off hand. I think it is tom willett's, but not sure.

otherwise, the staticpages php enabled function should also accomplish what you want in a fairly limited fashion.

edit: here it is -- at gplugs
 Quote

Auspexian

Anonymous
Thanks.

I have tried static page, it is good.
But I am thinking of a simple template for PHP
that will include the header, the footer, etc..

Tks
John
 Quote

Status: offline

eyecravedvd

Forum User
Full Member
Registered: 06/09/03
Posts: 152
why not just embed it yourself?!?

Text Formatted Code

require_once('../lib-common.php');
$_CONF["pagetitle"] = (whatever you want);
echo COM_siteHeader();
echo COM_startBlock(); // if you want it in a block


your code here

 


and finish it with this.
Text Formatted Code

echo COM_endBlock();
echo COM_siteFooter(true);

 


You can also use the external pages plugin to use GL's security features.

Shane | www.EyeCraveDVD.com
 Quote

Auspexian

Anonymous
That what I am looking for.

Tks

John
 Quote

Status: offline

Xmystic

Forum User
Newbie
Registered: 09/25/05
Posts: 7
Quote by eyecravedvd: why not just embed it yourself?!?

Text Formatted Code

require_once('../lib-common.php');
$_CONF["pagetitle"] = (whatever you want);
echo COM_siteHeader();
echo COM_startBlock(); // if you want it in a block


your code here


 


and finish it with this.
Text Formatted Code

echo COM_endBlock();
echo COM_siteFooter(true);


 



This worked great.

The only problem was this line:
Text Formatted Code
$_CONF["pagetitle"] = (whatever you want);
 


It kept giving me parse errors.
( I tried it with and without the parenthesis) Razz

But I can live without the page title being changed if I have too. Wink
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Xmystic: It kept giving me parse errors.
( I tried it with and without the parenthesis)

It should be a proper string, i.e. either the contents of a variable or some text enclosed in quotes.

But that is an old hack anyway. At least since 1.3.10, COM_siteHeader takes the title as the second parameter:

Text Formatted Code
echo COM_siteHeader ('menu', "Your title here");
 


bye, Dirk
 Quote

Status: offline

Xmystic

Forum User
Newbie
Registered: 09/25/05
Posts: 7
Quote by Dirk:
Text Formatted Code
echo COM_siteHeader ('menu', "Your title here");


 


So this works for me now.

Text Formatted Code

<?
require_once('lib-common.php'); //scripts are in root
echo COM_siteHeader ('menu', "Your title here");
echo COM_startBlock(); // if you want it in a block

<your code here>

echo COM_endBlock();
echo COM_siteFooter(true);
?>

 


Had to take out the old header line with the newer COM_siteHeader code there.
 Quote

All times are EDT. The time is now 03:36 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