Welcome to Geeklog, Anonymous Friday, March 24 2023 @ 05:30 am EDT
Geeklog Forums
Wrapping a page
bdub
Anonymous
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.
Thanks in advance to anyone that has some input.
4
3
Quote
bdub
Anonymous
Vinny, you rock.

6
4
Quote
Status: offline
zaurav
Forum User
Chatty
Registered: 01/07/06
Posts: 57
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
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'
Text Formatted Code
<?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
3
5
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by zaurav: Things dont seem to work out this way.
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
2
6
Quote
winnerdk
Anonymous
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
www.panama-guide.com
Thanks
6
7
Quote
Status: offline
DTrumbower
Forum User
Moderator
Registered: 01/08/03
Posts: 507
I would check the Amazon code and make sure you have matching table tags.
4
7
Quote
All times are EDT. The time is now 05:30 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