1
HairyArse200
How do I create a simple static HTML only module?

The title says it all really. I just want to create a few static HTML module pages, how can I do this in xoops? It's really bugging me.

Any help would be gratefully appreciated.

2
Speed
Re: How do I create a simple static HTML only module?
  • 2004/9/7 22:18

  • Speed

  • Quite a regular

  • Posts: 310

  • Since: 2004/5/18


I used the Tiny Content module myself.

http://dev.xoops.org/modules/xfmod/project/?group_id=1056

I made the html pages then used that module to format them in the XOOPS fashion. What was really nice is that I could use the XOOPS css which helped keep things consistent.

There are several other modules that can "wrap" html or php pages into Xoops. I tried the new Tiny Content first and was extremely pleased with it so I haven't looked further.

3
tl
Re: How do I create a simple static HTML only module?
  • 2004/9/7 22:47

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23



4
T-Tech
Re: How do I create a simple static HTML only module?
  • 2004/9/8 0:05

  • T-Tech

  • Just popping in

  • Posts: 62

  • Since: 2004/3/3 1


My easy suggestion make a module, it is not that hard to do and I will prove it by posting a simple template to follow.

1. Make a folder named MyModule(You may name this whatever you'd like)

This will be your modules index.php
<?php
// Miss Danni of http://www.stcdesignz.com
include("../../mainfile.php");
include(
"../../header.php");
$xoopsOption['show_rblock'] = 1;
$xoopsOption['show_lblock'] = 1;
$module_name basename(dirname(__FILE__));
$index 1;
?>

<table>
<tr>
<td>
All you have to do is add you html content in this area.
</td>
<tr>
</table>

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


Ok now you need to make xoops_version.php if this is a simple html module you should only need the following modversions

<?php
// Module version 1.0

// Modules Name
$modversion['name'] = "My Module Name";

// Modules Version
$modversion['version'] = 1.00;

// Modules Description
$modversion['description'] = "My Module's Description";

// Modules Author
$modversion['author'] = "Me";

// Modules Credits - Include a site link if you wish
$modversion['credits'] = "This module was made by Me";

// 1 for yes and 0 for no
$modversion['official'] = 1;

//Note this must be the modules exact folder name
$modversion['dirname'] = "MyModule"

// Modules image
$modversion['image'] = "moduleimage.gif";

// Do we have an admin area 0 for no 1 for yes
$modversion['hasAdmin'] = 0;

// Do we want this in the main menu 0 for no 1 for yes
$modversion['hasMain'] = 1;
?>


Now you have made your very own module named "MyModule" within the MyModule folder you will have the two files you just created index.php and xoops_version.php If you like you can make a cute small image 92x52px for your module that will appear in your module manager.

FTP the folder MyModule to your sites modules folder and activate it in the system admin.

Simple as that :)

Login

Who's Online

215 user(s) are online (141 user(s) are browsing Support Forums)


Members: 0


Guests: 215


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