SmartFAQ is developed by The SmartFactory (https://www.smartfactory.ca), a division of InBox Solutions (https://www.inboxsolutions.net)

Can I include my own HTML pages in xoops?
Yes you can. There are several ways to do this, either by using dedicated content wrap modules or by following this procedure:

How to show HTML pages inside Xoops

This page describes how to include static HTML pages in your Xoops site.

Most people think you can easily add a link to the Mainmenu block and the linked site will automatically show up in the center area of Xoops. This is wrong! You have to tell Xoops, that it has to build the Xoops layout around that HTML site!

Basically there are two ways to include/wrap HTML pages into your Xoops

* Including 3 basic inlcude statements into your HTML file
* Use a content module to wrap your HTML pages

1. Basic include statements

You have to edit your HTML file and add the following lines above and below your HTML content. The relative path to mainfile.php depends on the folder you saved your HTML file.

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

-----------------------------------------------------

After you have done that, save your file as filename.php and no longer filename.html! The extension is important! Now when you call filename.php it will be perfectly included into your Xoops theme!

2. Using a module

A more common way is to use a content module to include your HTML pages into Xoops. There are a few modules out there which can handle HTML files. You can download the following modules at xoops.org in the Modules/Themes section.

* TinyContent
* CjayContent
* FreeContent
* WF-Sections
* Mypage

My page is detailed in this FAQ HERE

For more information on these modules please read the included README files and search the xoops.org Forum!

Michael van Dam


The comments are owned by the author. We aren't responsible for their content.
user

 What about Mypage?


What about the easiest "wrapper" there is? Mypage by JackJ!

I've built entire sites around Mypage. Not only is it a LOT easier to use than the other modules mentioned, but it also creates search engine friendly URLS
(e.g.: http://mysite.com/modules/mypage/index.php).

 
user

 Re: What about Mypage?


Thanks for the comment: MYPage has already been featured, but not cross-referenced to this FAQ. Both FAQs have now been updated with cross links.

 
user

 Re: What about Mypage?


Thanks Carnuke. I guess I missed the other FAQ post.

 
user

 Wrapping web pages in xoops.


This thread Here about Auth(e) maybe of interest to users wanting to include external pages.

Auth allows you to insert html (or php or cgi) files into the XOOPS environment, without the need to wrap them. Simply place the complete site folder into the auth watch folder and it will be wrapped.

 
user

 Webalizer in Xoops


I wanted to know how to do this to inclue Webalizer output in my XOOPS site. Thanks for the advice, it works great (Now I need to do the add-link-to-main-menu bit).

Here is the tweaks I made to the /etc/webalizer.conf file to make it work:

HTMLExtension php

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

HTMLBody

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


Modify the path to mainfile.php to suit, and voila, Webalizer in Xoops

 
user

 Re: Webalizer in Xoops


Thanks wizarth for that snippet.

 
user

 WF-Channel


For inserting basic HTML pages, WF-Channel is a better choice than WF-Section, which is more for managing groups of categorized articles.

We have made a Perl script that lets you clone WF-Channel (version 1.06, not tested yet on 1.07) so that you can have multiple entries in your main menu for different standalone sections of content using that module. Details here:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=26041

--Julian

 
user

 Re: WF-Channel


I tried the modules mentioned, but how can I display the viewcat section of web links inside a block as content only?
What I would like to see is the equivalent of this:
http://www.mysite.com/xoops/modules/mylinks/viewcat.php

but without the navigation menus, and I don't want to link inside a frame, as I'd like it to flow within my web site.
Thanks!

 
user

 Re: What about Mypage?


This is direct link to MyPage

 
user

 Which one for this functionality?


Which (if any) of these options would be best to use to create a page that would pull in a single News module topic, a selected forum category, and selected blocks?

This may be already posted,but I've been looking at modules and instructions until I'm completely confused about what to try. Any assistance appreciated.

 
user

 Use Multi-Menu and TinyContent together


Here's what I did to allow custom HTML pages or Wysiwig content to be included in a XOOPS site.

2 Cool modules are better than 1!

Set up Multi-Menu with its amazing menu suite and then put "invisible" content (wysiwig editor or HTML pages) into TinyContent.

They make a wicked pair! No editing PHP - the only thing you do to link them is to build links in each Multi-Menu menu.

Then, point the links to link IDs in TinyContent like this:

modules/tinycontent/index.php?id=X

where X is the link ID of your custom tinycontent.

This tip assumes that you know how to control the visibility of TinyContent pages and manipulate the various blocks and modules in both TC and MM.

Now, if you want to change anything about your site, all editing happens in module editing context - no HTML or FTP necessary. This is great for supporting novice users who need to become website editors but need some help.

njoy!
dooder

 
user

 Re: Wrapping web pages in xoops.


I used auth(e) to load the entire original site. Once I'd worked out I had to copy the html pages into the 'sample' dir before uploading and installing, it went perfectly.

All internal and external links and images worked with no alteration in any code at all.

Great little module - and so versatile!

 
user

 Why i can't see Mypage in block administration.....?


I had follow the instruction given for module Mypage. but after i install that module i can't see mypage in block administration? i want mypage view in extreme left position.

Mdani.

 
user

 Re: Why i can't see Mypage in block administration.....


I am having the same problem

 
user

 Basic include statements


When using the basic include statements above to publish an exisitng HTML page, how do I include the original page title and meta data from the original HTML page?

 
user

 Code not working to frame html in xoops


I am using v2.2.3, I want to insert a simple html page within xoops. I have tried the above include code and uploaded the php file. But all I get is my html page without any wrap..

Is there an updated code for 2.2.3

Thanks

Edit: I figured it out, the location of the mainfile must be relative to the host directory.

 
user

 A small problem...


Hello,

i've just implemented method 1 - basic include statements, but i'm having a little difficulty.

The header and footer are included perfectly, but i have no right-hand side bar.

Please take a look at the page for what i'm on about: http://www.hififorum.co.uk/advertising/

Do you know how to get the right side bar to appear as well?

My index.php file looks like this:

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


Thanks in advance!

 
user

 Re: A small problem...


where is mypage now?

 
user

 Thanks jesphoto..


jesphoto.. checked your website http://www.jesphoto.net...

thanks a lot, was wondering how to do this.. as I am kinda new to XOOPS..

Rgds
GRR

Search Engine Optimization for XOOPS

 


Login

Who's Online

415 user(s) are online (3 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 415


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!

Did you know ?

Did you know that the xoops icons are available in a vast range of colours.

Random question

I am not sure if this is in the right Q&A catagory, but here goes.

I have my site set up so that new user accounts have to be activated by an administrator. Once the account has been activated, I would like for some kind of notification email to be sent to the user. Is there a way to have this done automatically, or do I have to manually send a confirmation email to each user?

Thanks in advance,
Justin