Let's assume that we have this html code Code: | <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>New Page 1</title> </head> <body> <p align="center"><font size="7">XOOPS Web Tools</font></p> <p align="center">based on PHP-Nuke Tools by<a href="http://www.disipal.net/"><font size="7">Disipal site</font></a></p> </body> </html> | Remove this Code: |
<html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>New Page 1</title> </head> <body> </body> </html> | And now the code looks like this Code: | <p align="center"><font size="7">XOOPS Web Tools</font></p> <p align="center">based on PHP-Nuke Tools by<a href="http://www.disipal.net/"><font size="7">Disipal site</font></a></p> | To make the module, we copy and paste it in the xoops module creator top block We click on “Create Module” and as a result we have Code: | <?php include("../../mainfile.php"); include(XOOPS_ROOT_PATH."/header.php"); OpenTable(); echo"<p align=\"center\"><font size=\"7\">XOOPS Web Tools</font></p>" . "<p align=\"center\">based on PHP-Nuke Tools by<a href=\"http://www.disipal.net/\"><font size=\"7\">Disipal site</font></a></p>"; CloseTable(); include(XOOPS_ROOT_PATH."/footer.php"); ?> | Now open notepad and paste the code given in the XOOPS Module Creator bottom block, and save it as index.php Create a folder in the /modules called “whatever” and inside copy index.php Note : You need to add the module's information file (xoops_version.php) and create logo for your module, download here sample module and sample admin icon. For more details how to build xoops module, please download ModuleBuilding.pdf and visit Building a simple module. And you are ready!! Install the module from yoursite/modules/system/admin.php?fct=modulesadmin |