4
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
// 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;
?>
All you have to do is add you html content in this area.
|
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
// 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 :)