images not shown (J4)

Phoca PDF - creating PDF documents in Joomla! CMS
ndatenda
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 14 Aug 2022, 02:08

images not shown (J4)

Post by ndatenda »

after not being able to see neither into nor fulltext-image
I did the following change around lines 119 to 121
in plugins/phocapdf/content/content.php

if ($display_image_fulltext == 1 && isset($images['image_fulltext']) && $images['image_fulltext'] != '') {
$outputBefore .= '<div style="text-align:center;">' . '<img style="'.$widthCSS.'" src="'. Juri::root() . substr($images["image_fulltext"],0,strpos($images["image_fulltext"],"#")) . '" /></div>';
}


before it was:

if ($display_image_fulltext == 1 && isset($images['image_fulltext']) && $images['image_fulltext'] != '') {
$outputBefore .= '<div style="text-align:center"><img style="'.$widthCSS.'" src="'. Juri::root() . '' .$images['image_fulltext'].'" /></div>';
}

the string deliverd by $images['image_fulltext'] was far too long.
oh, i forgot: obviously the lines for intro-image need the same change...

if somebody has a better idea: you are welcome!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: images not shown (J4)

Post by Jan »

Hi, thank you for this info.

Jan
If you find Phoca extensions useful, please support the project
Post Reply