1
icarey
How to include external content
  • 2004/11/15 10:18

  • icarey

  • Just popping in

  • Posts: 6

  • Since: 2004/11/15


How may I include external code I have written.
I already have a web application written that access a MySQL database and would like to be able to use XOOPS as the look and feel.

I am thinking that I may have to enable a new block and include the code I wish in it. If so then how may this be done.
The code I have written is lenghty and complex.

Thanks,
Ivan

2
JMorris
Re: How to include external content
  • 2004/11/15 13:24

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Under System Admin > Block you can create custom blocks with HTML, php, and Javascript. I've inserted code before that was several hundred lines long with no ill effect.

Alternately, you could use the one page module "Mypage" by JackJ. I've found this to be a very flexible approach.

Link: http://macambridge.com/mypage.zip

Just replace the text marked in bold red bellow with your code, upload the module and install as usuall. The source code is extremely simple and well documented, so you shouldn't have too much trouble figuring out how to have multiple instances of "Mypage".
Quote:
include("mainfile.php");
include("header.php");
$xoopsOption['show_rblock'] = 1; //0 for no right block
?>

Your HTML Code here (Note: Do not include head and body tags)

include("footer.php");

?>


Hope this helps.

JMorris

Login

Who's Online

289 user(s) are online (262 user(s) are browsing Support Forums)


Members: 0


Guests: 289


more...

Donat-O-Meter

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

Latest GitHub Commits