| |
RAF
- To create a new RAF go into the Admin Panet -> RAF -> "Create RAF Table". Enter a numeric ID like 1 and a new RAF Table will be created. You will be redirected to the RAF config:
array
(
'tables' => array(1 => $this->tables[prefix].'rk_cmf_raf1'),
'names' => array(1 => 'Baldurs Gate I mods'),
'tb1' => array(
'form' => '..numbers and letters..',
'field_names' => array(
'lang' =>'Language',
'typ' => 'Installation type',
'komp' => 'Compatibility',
'links' => 'Mod site'),
'field_to_link' => array('links')
)
);
tables - list of available RAF tables ($this->tables[prefix].'rk_cmf_rafID'). names - module names for each table (ID => Name).
The next part is config for selected RAF like tb1 for RAF ID 1, tb2 would be for ID2 etc.
form - HTML code of an form, BASE64_encode'ed
field_names - names of the form fields that will be displayed when someone sees entry in that module like data entered in the "lang" field will be signed as "Language"
field_to_link - optional entry. You can enter here name of fileds wich content will be changed to a link (so you can enter only http://www.site.com)
base64 - In the RAF admin menu tree there is a tab for en/de/coding text in BASE64. You need to use it to encode the HTML code of a form. You can also encode existing one
FORM for RAF:
- no opening tag FORM, no submit buttons etc.
- title filed is always there
- enter value (title field): value="$field_name", for textarea place $field_name between textarea tags.
- for select fields the first option should be: < option >$field_name< /option >
- $field_name stuff is required to see entered data when you edit an entry.
After making the config you can add entries, to see them go to: index.php?mod=raf&act=show
RAF Reviews
Simillar to RAF but it allow users to write reviews and to rate something (poll-like-fileds)
array
(
'tables' => array(1),
'names' => array(1 => 'Baldurs Gate I mods'),
'tb1' => array(
'form' => '...letters and numbers...',
'field_names' => array(
'lang' =>'Language',
'typ' => 'Installation type',
'komp' => 'Compatibility',
'links' => 'Mod site'),
'field_to_link' => array('links'),
'allow_gallery' => true,
'gallery_link' => '[TITLE]',
'stat_fields' => array('komp' => array('low', 'medium', 'high'), 'field_name' => array(1,2,3,4,5,6))
)
);
tables - the same, but no table name.
allow_gallery - true - users will be able to add images (send them via email to admin), false - disable option
gallery_link - You can enter a link to an article or other page - all entries for thar RAF will link "see gallery" to that page. IF you want separate galleries then enter [TITLE] - it will link to an article with the same title as the RAF entry. Some Gmail/Email galleries are in plans.
stat_fields - If you put in a field [STAT] (value="[STAT]") then it will be a poll-like filed - users will be able to vote. In stat_fields you enter values on which they will wote. IF they are non-numeric you will get a normal poll but if they are numeric - CBC like RAFSTAT will use average value of entered votes (like we have wotes: 2, 6 - average value is 4) - this is goot for "user ratings" etc.
More on the web page...
|
| |