12
The fixes in this post are the permanent fixes.
However, they will only take effect if you make the changes to the file before you install your XOOPS system. Once you have a running system, you can only get the changes to take effect by making changes to the database.
It's possible to remove all the traces of the umode field and its options from the several database tables, and then update the system module to pick up the changes from the new xoops_version.php file. However, the easiest thing to do here is to directly update the options array in the database as svaha describes.
If you want to make similar changes for the meta_rating options it's probably easier to delete the traces and then update the system module. The places to delete are:
table: xoops_config
row: conf_name = 'meta_rating'
table: xoops_configoption
rows: all rows with '_MD_AM_METAxxxxx' in either confop_name or confop_value
To delete a single row in phpMyAdmin, simply press the red X in the row. To delete multiple rows, check the box next to the row and then click the red X at the bottom of the form (Delete all checked rows).
After the rows are deleted, update the System module and you should see the following somewhere in the update log that displays :
Quote:
Config meta_rating added to the database.
Config option added. Name: _MD_AM_METAOGEN Value: general
Config option added. Name: _MD_AM_METAO14YRS Value: 14 years
Config option added. Name: _MD_AM_METAOREST Value: restricted
Config option added. Name: _MD_AM_METAOMAT Value: mature
Hope this clears things up.