Posted on: 11/18/04 11:50am
By: Anonymous (bdub)
I was wondering if someone had some good info on how I can wrap a page inside of geeklog. I use staticpages for most things, but lets say I want to use like pjirc on a page. How would I go about doing that?
Thanks in advance to anyone that has some input.
Wrapping a page
Posted on: 11/18/04 12:54pm
By: vinny
<?php
require_once('/path/to/lib-common.php');
$ret = COM_siteHeader();
$ret .= "whatever content you want to wrap goes here";
$ret .= COM_siteFooter();
echo $ret;
?>
-Vinny
Wrapping a page
Posted on: 11/18/04 01:43pm
By: zipstart
I dropped jIRC into a static page...puts the users login as the nick. Works great.
Wrapping a page
Posted on: 11/23/04 03:52pm
By: Anonymous (bdub)
Vinny, you rock.
Wrapping a page
Posted on: 01/31/06 08:26pm
By: zaurav
Ok I have the exact same question cept the difference is Im a noob when it comes to php. I created a static page with
require_once('/path/to/lib-common.php');
$ret = COM_siteHeader();
$ret .= "whatever content you want to wrap goes here";
$ret .= COM_siteFooter();
echo $ret;
?>
and put this inside 'whatever content you want to wrap goes here'
<?php
require_once('/path/to/lib-common.php');
$ret = COM_siteHeader();
$ret .= "<html>
<head>
<title>Chat gar! Chat GAR!</title>
</head>
<body>
<h1>MOOOOOOOOJ Gar</h1><hr>
<applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=800 height=600>
<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">
<param name="nick" value="Anonymous">
<param name="alternatenick" value="Anon???">
<param name="fullname" value="Java User">
<param name="host" value="irc.staticnepal.com">
<param name="gui" value="pixx">
</applet>
<hr></body>
</html>
";
$ret .= COM_siteFooter();
echo $ret;
?>
Things dont seem to work out this way. Is there any way I can integrate my PJIRC chatroom with Geeklog. Like it should register my logged in users with their username and password.
My Pjirc folder is inside Public_html/pjirc. How can I make the files in the code up there point to that folder?
Thanks
Wrapping a page
Posted on: 02/01/06 02:01pm
By: Dirk
[QUOTE BY= zaurav] Things dont seem to work out this way. [/QUOTE]
Meaning...?
For starters, leave out the HTML, HEAD, and BODY tags, as those are already emitted by the COM_siteHeader and COM_siteFooter calls.
bye, Dirk
Wrapping a page
Posted on: 02/20/06 08:27pm
By: Anonymous (winnerdk)
I'm using a centered static page below the content to advertise amazon books, but this made the footer copyright and timing section appear in the right blocks. How can I get it back on the bottom of the page, and below the static page? Take a look...
www.panama-guide.com
Thanks
Wrapping a page
Posted on: 02/21/06 11:17am
By: DTrumbower
I would check the Amazon code and make sure you have matching table tags.