1
shansta22
html
  • 2005/3/17 4:37

  • shansta22

  • Just popping in

  • Posts: 38

  • Since: 2005/2/13


Hello, for my html pages I am using a blank.php with my in between the 2 php tags like so, (arrows are back the front in the ?php coz i didnt know how to add them otherwise)


>?php
include("mainfile.php");
include("header.php");
$xoopsOption['show_rblock'] = 1; //0 for no right block
?>

MYHTML

>?php
include("footer.php");
?>


but the thing i have to add the php files into my main directory for them to work, what I am wanting to do is have a folder named php so i can have all my html/php custom files organised into one folder. So when people go to my html pages it will look something like mysite.com/php/terms.php, I have tried adding in to the "footer.php" my site like so, "http://mysite.com/php/footer.php" but it just comes up with errors:


Warning: main(XOOPS_ROOT_PATH/class/xoopsblock.php): failed to open stream: No such file or directory in /home/sportsfo/public_html/header.php on line 41

Warning: main(): Failed opening 'XOOPS_ROOT_PATH/class/xoopsblock.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sportsfo/public_html/header.php on line 41

Warning: main(XOOPS_ROOT_PATH/class/template.php): failed to open stream: No such file or directory in /home/sportsfo/public_html/header.php on line 76

Fatal error: main(): Failed opening required 'XOOPS_ROOT_PATH/class/template.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sportsfo/public_html/header.php on line 76


so i was just wondering if it's possible?

thanks,
shan

2
Bassman
Re: html
  • 2005/3/17 5:20

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


1) Create your pages with the normal includes.

2) Create and download your own Xoopermod module.
3) Put your php files in the new module directory, upload & install

4) Use a menu module or custom block to link to your files.

Easy!

3
shansta22
Re: html
  • 2005/3/17 10:36

  • shansta22

  • Just popping in

  • Posts: 38

  • Since: 2005/2/13


thanks, what a great umm module creator/website..

cheers,
shan

4
shansta22
Re: html
  • 2005/3/17 10:51

  • shansta22

  • Just popping in

  • Posts: 38

  • Since: 2005/2/13


its good just got work out how to wrap the header and footer around the html

5
samwell
Re: html
  • 2005/3/17 11:36

  • samwell

  • Just popping in

  • Posts: 19

  • Since: 2005/1/16


why would you go through all of that trouble?

Try This:
<?php
include("../mainfile.php");
include(
"../header.php");
$xoopsOption['show_rblock'] = 1//0 for no right block
?>

MYHTML

<?php
include("../footer.php");
?>


There's no need for a "module." For every subdir, add a "../"

Login

Who's Online

223 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 223


more...

Donat-O-Meter

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

Latest GitHub Commits