Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • porpeller Friend
    #149984

    the ja news frontpage doesn’t show the image class (in this case ‘caption’)

    Saguaros Moderator
    #338557

    Dear porpeller!

    The ja news fp module ‘ll remove class inside the img, so that you must to make changes of php :

    1) pls open the file modules/mod_janews_fp/helper.php and find codes:
    [PHP]
    if ($autoresize && function_exists ( ‘imagecreatetruecolor’ ) && ($image1 = modJANewsHelperFP::processImage ( $image, $width, $height ))) {
    $image = “<img src=”” . $image1 . “” alt=”{$row->title}” $align />”;
    } else {
    $width = $width ? “width=”$width”” : “”;
    $height = $height ? “height=”$height”” : “”;
    $image = “<img src=”” . $image . “” alt=”{$row->title}” $width $height $align />”;
    }
    [/PHP]

    you replace:
    [PHP]

    if ($autoresize && function_exists ( ‘imagecreatetruecolor’ ) && ($image1 = modJANewsHelperFP::processImage ( $image, $width, $height ))) {
    $image = “<img class=”caption” src=”” . $image1 . “” alt=”{$row->title}” $align />”;
    } else {
    $width = $width ? “width=”$width”” : “”;
    $height = $height ? “height=”$height”” : “”;
    $image = “<img class=”caption” src=”” . $image . “” alt=”{$row->title}” $width $height $align />”;
    }
    [/PHP]

    Good luck

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Saguaros 14 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum