1
Feneex
How to wrap couple of PHP pages into xoops? tryed C-HTML - no luck..
  • 2005/11/14 16:36

  • Feneex

  • Just popping in

  • Posts: 98

  • Since: 2004/12/25


Hi everyone,

does anyone know how to wrap some PHP pages (PHP code in general)?
have tryed C-HTML - no luck

it is working great and simple adding php block, but need the whole page.

xoops v2.2.x
________________________________________
Naslenas.com - how personal blog is born... sorry, but Drupal :/
Some free Xoops themes to download

2
dickinsd
Re: How to wrap couple of PHP pages into xoops? tryed C-HTML - no luck..
  • 2005/11/14 19:59

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Are these pages static?

I.e. are you going to be able to create them and leave them or are you going to have to keep editing the page?

If they are static in that you won't need to edit them regularly you can try the following:

<?php
include("/mainfile.php");
include(
XOOPS_ROOT_PATH."/header.php");

[
b]THE REST OF YOUR CODE HERE[/b]

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


This calls the header, footer and any other information from the mainfile i.e. user info, permissions etc

I use this code to wrap HTML pages, but I see no reason why it would not wrap PHP pages.

Example with HTML:

<?php
include("/mainfile.php");
include(
XOOPS_ROOT_PATH."/header.php");
?>
<HTML>
[b]THE REST OF YOUR CODE HERE[/b]
</HTML>
<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>


Dave

3
Feneex
Re: How to wrap couple of PHP pages into xoops? tryed C-HTML - no luck..
  • 2005/11/14 22:49

  • Feneex

  • Just popping in

  • Posts: 98

  • Since: 2004/12/25


thanx, it seems, that I do not have much of choice.
________________________________________
Naslenas.com - how personal blog is born... sorry, but Drupal :/
Some free Xoops themes to download

4
Watdehek
Re: How to wrap couple of PHP pages into xoops? tryed C-HTML - no luck..
  • 2005/11/14 23:04

  • Watdehek

  • Friend of XOOPS

  • Posts: 130

  • Since: 2005/2/21


Another trick is to use TinyContent and use an iframe for your script.

Login

Who's Online

159 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 159


more...

Donat-O-Meter

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

Latest GitHub Commits