Online Photo Album & Webbuilder 17.1.1

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
Det
 
 
Posts: 3
Joined: Sun Jan 02, 2022 6:22 pm

Online Photo Album & Webbuilder 17.1.1

Post by Det »

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

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"; } ?>  
Any suggestion ? Thanks
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Online Photo Album & Webbuilder 17.1.1

Post by Pablo »

Did you set the page extension to PHP?
Det
 
 
Posts: 3
Joined: Sun Jan 02, 2022 6:22 pm

Re: Online Photo Album & Webbuilder 17.1.1

Post by Det »

No, haven't done. But now it works. Thanks.

Other question : I've done the rename via FTP-client and the integration in the menu via external-adress. Is there a more elegant way directly in WBB ?
alan_sh
 
 
Posts: 1754
Joined: Tue Jan 01, 2019 5:50 pm

Re: Online Photo Album & Webbuilder 17.1.1

Post by alan_sh »

Det wrote: Mon Jan 03, 2022 4:55 pm No, haven't done. But now it works. Thanks.

Other question : I've done the rename via FTP-client and the integration in the menu via external-adress. Is there a more elegant way directly in WBB ?
Yes, in page properties, change the file extension to php.
Det
 
 
Posts: 3
Joined: Sun Jan 02, 2022 6:22 pm

Re: Online Photo Album & Webbuilder 17.1.1

Post by Det »

Thanks a lot
User avatar
dnlyko
 
 
Posts: 141
Joined: Tue Mar 05, 2019 12:55 pm
Location: Toronto - Canada

Re: Online Photo Album & Webbuilder 17.1.1

Post by dnlyko »

Hey Det, any chance your site is live. I would like to look at it. I am thinking of using the 'Online Album' as well
Post Reply