1
Jacobjac
integrating HTML pages
  • 2005/6/17 2:56

  • Jacobjac

  • Just popping in

  • Posts: 7

  • Since: 2005/5/21


I'm wanting to create HTML pages, but have it look like the XOOPS pages.. basically I want it to look like my theme but blank in the middle for text to go to.

I tried this:

<?php
include("path/to/mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
?>
The content of your original html file goes here!!
<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>


But it didn't work.

The link is: http://www.root32labs.com/lol.php

As you can see, it's giving errors.

It may be due to me not knowing exactly where to put these tags... eg; is it:

include("http://www.root32labs.com/mainfile.php") (which is where it is located)? is that the format I place it in?

where the commas are is confusing me.

I'm trying like this:

<?php
include("http://www.root32labs.com/mainfile.php");
include(http://www.root32labs.com."/header.php");
?>
The content of your original html file goes here!!
<?php
include(http://www.root32labs.com."/footer.php");
?>

I'm using the 4thefort theme.

Cheers.

2
broadcircle
Re: integrating HTML pages

I may not understand what your asking but why don't just make a custom block for your text?

3
wcrwcr
Re: integrating HTML pages
  • 2005/6/17 6:14

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Jacobjac

You?re a bit confused with the "path" thing.

PLease take a look on this thread:

https://xoops.org/modules/smartfaq/faq.php?faqid=280

Tell us if you got it

Cheers

4
maumed
Re: integrating HTML pages
  • 2005/6/17 6:27

  • maumed

  • Just popping in

  • Posts: 50

  • Since: 2004/10/18


in the code you post:

<?php
include("path/to/mainfile.php");
include(
XOOPS_ROOT_PATH."/header.php");
?>
The content of your original html file goes here!!
<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>


change path/to/mainfile.php to the *real* path (in server, something like /home/youruser/public_html, not your url)...

[]s
Mauricio

5
Jacobjac
Re: integrating HTML pages
  • 2005/6/17 11:47

  • Jacobjac

  • Just popping in

  • Posts: 7

  • Since: 2005/5/21


Quote:

maumed wrote:
in the code you post:

<?php
include("path/to/mainfile.php");
include(
XOOPS_ROOT_PATH."/header.php");
?>
The content of your original html file goes here!!
<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>


change path/to/mainfile.php to the *real* path (in server, something like /home/youruser/public_html, not your url)...

[]s
Mauricio


That did it.

Thanks!

Login

Username:
Password:

Lost Password? Register now!

Who's Online

81 user(s) are online (34 user(s) are browsing Support Forums)


Members: 1


Guests: 80


heyula,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jan 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits