PDA

View Full Version : Gallery module


CasN
10-10-08, 06:23 PM
Simple gallery module for DP.

fully based upon the files module, creates thumbnails on the fly if they are not present.
It simply select images from the files section so no changes to core DP.
Thumbnail width/height and the thumbnails perrow can be configured.

It can be downloaded @ http://www.nuy.info/apps/owl/browse.php?sess=0&parent=118&expand=1&order=name&curview=0

Have fun..............

zsolarewicz
10-10-08, 07:23 PM
Simple gallery module for DP.

fully based upon the files module, creates thumbnails on the fly if they are not present.
It simply select images from the files section so no changes to core DP.
Thumbnail width/height and the thumbnails perrow can be configured.

It can be downloaded @ http://www.nuy.info/apps/owl/browse.php?sess=0&parent=118&expand=1&order=name&curview=0

Have fun..............

Oooobzzz !

What did i wrong ??:

Warning: imagecreatefromjpeg(C:\wamp\www\dotproject/files/1/9348480357edcbcce) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in C:\wamp\www\dotproject\modules\gallery\gallery.cla ss.php on line 20

Warning: imagecreatefrompng(C:\wamp\www\dotproject/files/1/9348480357edcbcce) [function.imagecreatefrompng]: failed to open stream: No such file or directory in C:\wamp\www\dotproject\modules\gallery\gallery.cla ss.php on line 22

maybe because i got only PDFs ??
can we make it displaying icons from PDFs also??

CasN
12-10-08, 05:59 AM
I had expected most php installations would already have this.
This module does expect php with gd 2.01
Will add this requirement to the readme in the next update.
Please check.

CasN
12-10-08, 07:45 PM
Have posted a new version in download section.:D Really no major changes.
Improved/cleaned the code and also added an option to remove orphaned thumbnails from the filesystem.
Since this gallery is based upon files, cleaning function is required just for those cases that image-files are deleted from DP.

Forgot to mention, for now only support for JPG & PNG files.

Can be downloaded @ the same spot.

zsolarewicz
15-10-08, 11:10 PM
still get however:

Fatal error: Call to undefined function createthumb() in C:\wamp\www\dotproject\modules\gallery\index.php on line 72

could the definition of createthumb function be is the same file as
invoked procedure ??

CasN
16-10-08, 12:11 AM
add in the beginning of index.php the line
include_once("./modules/gallery/gallery.class.php");
Will fix this in the final release due this week.

zsolarewicz
16-10-08, 12:19 AM
add in the beginning of index.php the line
include_once("./modules/gallery/gallery.class.php");
Will fix this in the final release due this week.

Hurray! Images visible, still however:

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in C:\wamp\www\dotproject\modules\gallery\gallery.cla ss.php on line 20

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: 'C:\wamp\www\dotproject/files/10/2440948ef4ea8ca58a' is not a valid JPEG file in C:\wamp\www\dotproject\modules\gallery\gallery.cla ss.php on line 20

CasN
17-10-08, 06:25 AM
Have updated the gallery module to version 1.3.
added some options like:
Online processing is configurable
Clean all thumbnails
Create all thumbnails
Fixed the issue around missing function.
Can be downloaded @ the same spot as mentioned in an earlier posting.

@ zsolarewicz, check your php error log on precise message around Warning: imagecreatefromjpeg, it looks the jpeg file found was not valid.

zsolarewicz
17-10-08, 07:39 PM
@ zsolarewicz, check your php error log on precise message around Warning: imagecreatefromjpeg, it looks the jpeg file found was not valid.

error appeared TWICE and disappeared ! as simply as it is.

would GREAT if PDFs could be also visible....?

CasN
17-10-08, 09:56 PM
PDF will not be supported (is available tyhru the files module anyway) , additions will only be in additional image formats to be supported.

yeowkee
18-10-08, 03:51 AM
Hi, I am getting a this error message (error 403 Forbidden):

Forbidden

You don't have permission to access /dotproject/modules/gallery/fullpic.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Its strange because I was able to get the picture via the Files module. But clicking on the thumbnails in Gallery module gets me the error message

Thanks for any help!

CasN
19-10-08, 01:21 AM
So you do see the picture and while clicking on it, you get this message.
Have you checked the installation, all files are there, rights ok?

yeowkee
19-10-08, 06:46 PM
hi, thanks! after a while, i found Gallery2 and I am using it now. Thanks for the help, as I am not familiar with programming.