Online Photo Album & Webbuilder 17.1.1
Posted: Mon Jan 03, 2022 2:22 pm
Try to use the Online Photo Album extension (because of the image folder) on WWB 17.1.1, but I've got it not running.
I'm using a hosting solution with PHP 7.4 running. The extension is configured to ./images and several pictures are inside.
Phpinfo.php is correctly running and a php-script with scandir ist also correctly running.
But on the html-page with the extention I only get html- or php-code below
Any suggestion ? Thanks
I'm using a hosting solution with PHP 7.4 running. The extension is configured to ./images and several pictures are inside.
Phpinfo.php is correctly running and a php-script with scandir ist also correctly running.
But on the html-page with the extention I only get html- or php-code below
Code: Select all
\r\n"; } else { $images = 0; $current_col = 0; $count = $rows * $columns; $last = $count + $first; echo "\r\n"; $dir = opendir($images_folder); while ($filename = readdir($dir)) { $ext = pathinfo($filename, PATHINFO_EXTENSION); if ($ext == 'gif' || $ext == 'jpeg' || $ext == 'jpg' || $ext == 'png') { if ($images >= $first && $images < $last) { if ($current_col == 0) { echo "\r\n"; } list($width, $height) = getimagesize($images_folder.$filename); $link = ""; $image_ratio = $width/$height; if ($image_ratio > 1) { $thumbnail_width = $thumbnail_size; $thumbnail_height = $thumbnail_size / $image_ratio; } else { $thumbnail_width = $thumbnail_size * $image_ratio; $thumbnail_height = $thumbnail_size; } echo "\r\n"; $current_col++; if ($current_col == $columns) { $current_col = 0; echo "\r\n"; } } $images++; } } $previous = ''; $next = ''; if ($first >= $count) { $previous = ""; } $previous .= "Previous"; if ($first >= $count) { $previous .= ""; } if ($last < $images) { $next = ""; } $next .= "Next"; if ($last < $images) { $next .= ""; } echo "\r\n"; echo "
$link\"\"
$previous | Home | $next
\r\n"; } ?>