1
Could anyone please write a basic blank module for me that works?
I have loads of services that I would like to put onto seperate modules but I don't have the savvy to write one that works!
Basic needs seems to be:
header.php
index.php
xoops_version.php
plus "images" folder with slogo.gif
I don't have a problem with index.php, I don't have a problem with slogo.gif as I have Photoshop, but I certainly seem to have a problem with xoops_version.php because I can't seem to get XOOPS admin to recognise the module after install.
I have a PHP editor as well as several text editors but still I can't write a simple bit of code that works!
Examples:
xoops_version.php
$modversion['name'] = Reciprocal;
$modversion['version'] = 1.00;
$modversion['description'] = Reciprocal;
$modversion['credits'] = "www.e-publishing.org.uk";
$modversion['author'] = "Robin";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 0;
$modversion['image'] = "images/slogo.gif";
$modversion['dirname'] = "Reciprocal";
$modversion['hasAdmin'] = 0;
$modversion['adminmenu'] = '';
$modversion['hasMain'] = 1;
?>
index.php definitely works because I tried to include it in this posting and it printed url.
header.php
include "../../mainfile.php";
?>
Any help appreciated.
Many thanks,
Robin.