ModMaker - Define the module fields

Data fields

First, the data fields for the desired module must be defined. Assign a name for your field, the name of the database field and select the field type.

Possible field types

Date field:
Creates a field for selecting a calendar date.

User name:
Stores at a visitor entering the ID of the user who posted this message and are visiting the site the user name.

Single-line text field:
Creates a single-line text field (input type=text).

Multiline text field:
Creates a multiline text field (textarea).

HTML editor:
Creates an editor to enter HTML source code (CKEditor). In this field entries are not filtered! For Visitors entries, the BBCode editor should be used.

BBCode editor:
Creates an editor for BBCode format input (CKEditor).

Number field:
Creates an input field for numbers.

File upload:
Creates a field for uploading files. In the administration of the module the file types can be limited. The visitor will see a download link to the file and a download counter. !!! When videos are uploaded to be played in flv player, the template variable $db_data['link_of__DB_FIELD_NAME_'] has to be encoded: rawurlencode($db_data['link_of__DB_FIELD_NAME_']).

Image upload:
Creates an upload field for a single image. An image is stored in 3 different sizes. Size for the list view, size of the data set size for the view, and Lightbox. The scaling information can later in the file /data/config.php of the created module are changed.

Multiple image upload:
Creates fields for simultaneous upload multiple images. The same applies as for a single-image upload for image sizes.

Selection field:
Produced in the administration and visitor input forms a selection field (select). The options in the selection field are defined in the Administration of the module. The visitor is shown the saved selection. Value and text can be language defines. Defines need to be set in the /view/lang directory.

Checkboxes:
Produced in the administration and visitor input forms check boxes (input type=checkbox). The values ​​of the check boxes are defined in the Administration of the module. The visitor is shown the saved selection. Value and text can be language defines, the name does not. The name may only consist of the characters A-Z, a-z, 0-9, tying dashes, underscores, and points exist. Defines need to be set in the /view/lang directory.

Hidden field:
Produced in the administration, a single-line text field for entering and visitor input forms a hidden field (input type=hidden). The visitor is shown the stored content. This field could for example store the IP of the user.

Status field:
Produced in the administration a simple checkbox to 0 or 1 stores in the database. So you can, for example, manipulate the output of data.