Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 04:50 pm EST
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
// 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");
?>
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");
?>
11
12
Quote
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
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
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
9
11
Quote
Status: offline
eyecravedvd
Forum User
Full Member
Registered: 06/09/03
Posts: 152
why not just embed it yourself?!?
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.
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
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
29
11
Quote
Auspexian
Anonymous
That what I am looking for.
Tks
John
Tks
John
12
9
Quote
Status: offline
Xmystic
Forum User
Newbie
Registered: 09/25/05
Posts: 7
Quote by eyecravedvd: why not just embed it yourself?!?
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.
echo COM_endBlock();
echo COM_siteFooter(true);
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)
But I can live without the page title being changed if I have too.
11
11
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)
( 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
12
11
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.
11
11
Quote
All times are EST. The time is now 04:50 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