Outline
TubsonP is XOOPS Cube Legacy Module Generator.
You can create your modules in five minute on this site.
You should make three settings to create your module.
- module
- Set your module name.
- table
- Set database table name in your module. You can add more than one table in your module.
- field
- Set field name in the database table. Generally speaking, each table contains several fields like id, title, description, posttime, etc.
This is the settings for sample module "tnews".
&ref(tubsonp_module.png)
Preparation
Create your account on this site and login with it.
Attention! : Your created account is automatically approved. No confirmation mail is send.
Add your module
From the top page of TubsonP, click a link "Add a new Module" and input your module name.
The module name is alphabet and number only.

Add tables to your module
After add a module, you see such screen.

Next, click "Add a New Table".

The table name is alphabet and number only.
If your module contains more than one tables, repeat this step.
(You can't add the same table name in one module.)
Add fields to your module
After add a table, you see such screen.

Next, click "Add a New Field".

To add a field has some rules.
- primary key
- Each table must have ONE Primary Key field. Generally, the field is named as "xxx_id". ex. "new_id". This field must be Field Type of "int".
- field name duplication
- Field name must be different each other in a table.
If the table contains more than one field(it is common), repeat this step.
Create Module File
After finishing add tables and fields, return your module view page.
You will find "Create Module File" link and click it.
In few seconds, you will find "Download File" link at right hand of "Create Module File" link.
Then, click the link to download your module file !

Install and Access
Install the downloaded module then access {XOOPS_URL}/modules/{modulename}/index.php?action={Tablename}List.
For example,
http://xoopsdev.com/modules/tnews/index.php?action=NewsList , in case modulename Tnews and Table name News, installed in xoopsdev.com.
Attach file:
| Page Info | |
|---|---|
| Page Name : | guide/module/tubsonp |
| Page aliases : | None |
| Page owner : | admin |
| Can Read | |
| Groups : | All visitors |
| Users : | All visitors |
| Can Edit | |
| Groups : | All visitors |
| Users : | All visitors |