Apparently because ADDIMG_TEXT_TOP is defined as a string, the ternary operator needs to explicitly test for the literal string 'true' instead of the implied true condition.
In /includes/modules/your_template/additional_images.php, line 106, replace
$link = (ADDIMG_TEXT_TOP)?
with
$link = (ADDIMG_TEXT_TOP == 'true')?
PHP Code:
// additional image titles
$add_img_constant = 'ADDIMG_' . strtoupper(ereg_replace('[/\\.-]','_',substr_replace($base_image,'',0,7)));// if any other characters could be used in filepath, add them to list [ ]
if (defined($add_img_constant)) {//add text above or below images
$link = (ADDIMG_TEXT_TOP == 'true')? '<h4 class="addImgTitle">' . constant($add_img_constant) . '</h4>' . $link: $link . '<h4 class="addImgTitle">' . constant($add_img_constant) . '</h4>';
}
// /additional image titles
I have finished upgrading the mod to current ZC submission standards as well as fixing the bugs, and will be submitting it to Free Addons. This sometimes takes considerable time with the devs busy on v2.0, so for now you can fix your own copies with the two simple patches in this thread.
Bookmarks