|
If the description of an image contains an apostrope such as L'altro it ends up being displayed as L\'altro. This is not very difficult to fix. MGM calls a core function of Joomla "htmlspecialcharacters" that adds the \ escape to ' and this appears in the database as \' The MGM mambot reads this back as a literal. By calling the PHP function "stripslashes", the \ is removed and only the ' is displayed. To patch the mambot code it will be necessary to edit the file found in this path relative to your web site root directory: mambots/content/imggallery.inc At line 276 (or very near) should be a comment marker: //put imgtag in place Below this is a conditional "if" statement. The first condition is for a static template and the second condition is for a dynamic template. The static condition uses the database string for the description with this statement: $tabla = str_replace ('$description['. $staticpos . ']',$desclist[$entryname]->iim_description,$tabla); You may see this broken into three separate lines, that is okay. Edit this statement to look like this: $tabla = str_replace ('$description['. $staticpos . ']', (stripslashes( $desclist[$entryname]->iim_description )),$tabla); The dynamic template condition, a little further down, uses the database string with a similar statement: $cell = str_replace ('$description',$desclist[$entryname]->iim_description,$cell); You may see this broken into two separate lines. Edit this statement to look like this: $cell = str_replace ('$description', (stripslashes( $desclist[$entryname]->iim_description )),$cell); Save the changes to this file and the problem will be resolved. There will be a small side effect to this that can be ignored or patched in a similar manner. MGM stores a backup copy of imggallery.inc under the following path: administrator/components/com_mgm/mambot/imggallery.inc The built-in diagnostics of MGM compares these two files and will now report the mambot is "Outdated." This can be safely ignored, or, the same edits can be made to the backup file. One additional word of caution, the file ownership will be that of apache and will likely require root access to edit this. This patch may be incorporated into an installable patch in the near future and will be incorporated into MGM v0.97 upon it's release.
|
|
|