Page Top

Outline anchor.png Edit

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)

Page Top

Preparation anchor.png Edit

Create your account on this site and login with it.
Attention! : Your created account is automatically approved. No confirmation mail is send.

Page Top

Steps anchor.png Edit

Page Top

Add your module anchor.png Edit

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.

tubsonp_create_01.png

Page Top

Add tables to your module anchor.png Edit

After add a module, you see such screen.

tubsonp_create_02.png

Next, click "Add a New Table".

tubsonp_create_03.png

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.)

Page Top

Add fields to your module anchor.png Edit

After add a table, you see such screen.

tubsonp_create_04.png

Next, click "Add a New Field".

tubsonp_create_05.png

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.

Page Top

Create Module File anchor.png Edit

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 !
tubsonp_create_06.png

Page Top

Install and Access anchor.png Edit

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.


Front page   Edit Freeze Diff Backup Upload Copy Rename ReloadPrint View   New Page Page list Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom) Powered by xpWiki
Counter: 921, today: 5, yesterday: 3
Last-modified: 2010-02-18 (Thu) 23:41:58 (JST) (199d) by admin