3
Hi Alex,
You can create your own basic module in which you include the external file.
In this module make sure you have the following files (add the php opening and closing tags as well).
index.php:
Quote:
include "../../mainfile.php";
include "../../header.php";
include "yourfile.php";
include("../../footer.php");
xoops_version.php:
Quote:
$modversion['name'] = "yourname";
$modversion['version'] = 1.00;
$modversion['description'] = _MI_YOURNAME_DESC;
$modversion['credits'] = "xxxx";
$modversion['author'] = "";
$modversion['help'] = "top.html";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 1;
$modversion['image'] = "yourname_slogo.png";
$modversion['dirname'] = "yourname";
//Admin things
$modversion['hasAdmin'] = 0;
$modversion['adminmenu'] = "";
// Menu
$modversion['hasMain'] = 1;
mainfile.php:
Quote:
include "../../mainfile.php";
yourfile.php:
Quote:
Change the external website name in the above to the site you desire.
Also in the subfolder language\english add a file modinfo.php:
Quote:
define("_MI_YOURNAME_NAME","Name of your module");
define("_MI_YOURNAME_DESC","Your description of the module");
After you have prepared the files and the logo for the module, upload them as a new module and install the module using the admin section. Make the module visible for the groups you desire in the edit groups section.
Good luck!
Martijn