Welcome to Geeklog, Anonymous Saturday, April 13 2024 @ 06:23 pm 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.

 Quote

Status: offline

vinny

Site Admin
Admin
Registered: 06/24/02
Posts: 352
Location:Colorado, USA
Text Formatted Code

<?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
 Quote

Status: offline

zipstart

Forum User
Chatty
Registered: 09/13/04
Posts: 60
I dropped jIRC into a static page...puts the users login as the nick. Works great.
 Quote

bdub

Anonymous
Vinny, you rock.
Very Happy
 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'
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
 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
 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
 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.
 Quote

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