1
robinwickens
Blank Module

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.

2
zyspec
Re: Blank Module
  • 2006/8/14 1:47

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Look at this article - it gives you easy to follow instructions to create a small module. The article also references the mypage module (and gives you a URL to download it) which is basically the same thing.

3
hervet
Re: Blank Module
  • 2006/8/15 12:23

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


And don't forget, search is your friend

4
Daigoro
Re: Blank Module
  • 2006/8/15 13:24

  • Daigoro

  • Quite a regular

  • Posts: 223

  • Since: 2003/7/3 2


I made a very simple module to insert my own html and php.
It basically does nothing, except allows you to use XOOPS to display your contents.
You can find a description here.
Best regards,
Daigoro

5
robinwickens
Re: Blank Module

Thank you all.

Everything now working well, all I have to do is write a couple of hundred modules!!!

Robin.

Login

Who's Online

363 user(s) are online (263 user(s) are browsing Support Forums)


Members: 0


Guests: 363


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits