Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 02:48 pm EST

Geeklog Forums

Media Gallery v0.82 Beta Released


Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Media Gallery is a native plugin for Geeklog that provides a full featured media gallery, including photos and movies. It is available for download at www.ecsnet.org You can also see it in action at the above site too.

Features

Media Gallery attempts to take advantage of many of the features made available through Geeklog. The feature list includes:

  • Multiple Media Types Supported (JPG, GIF, PNG, BMP, ASF, WMV)
  • Multiple graphics package support (ImageMagick, NetPBM, GD)
  • Center Block (featured album)
  • Autotags for including links / images in stories
  • Comments per media item
  • Upload queuing
  • Random Image block
  • Online Photo Printing Services
  • Geeklog Security Model
  • Multiple methods to add media

    • Direct Upload through Admin Interface
    • Batch FTP Uploading
    • Windows XP Publish to Web (experimental)

  • Flexible Geeklog template support
  • Unlimited Album->Sub Album support
  • Full integration with Geeklog search and stats


The goal is to provide a full featured method to allow webmasters to display their photo's and other media items.

This is a different plugin than the Inmemoriam plugin announced here a few weeks ago. Inmemoriam is an excellent plugin and I highly recommend it to all. This Media Gallery is something that I have worked on for a couple of years as a method to provide photos of my family to my extended family. I finally decided to clean it up a bit and give it to the Geeklog community. Each gallery has it's own set of unique features and functions. Now there are simply more options for an true native plugin.

Thanks!
Mark
 Quote

duvide

Anonymous
Thanks for this plugin. I immediately tried to install it because I saw it also integrates the autotag feature.
Installing was no problem but when I try to upload images into the a created album I get a white page after a while and no confirmation that the images have been uploaded. When I go back to mediagallery the images are indeed not there. Also can't I find them when I look at them at the server in the differen media gallery directories.
I also thought it shoulb be possible somehow to upload images to the album from the User Administration menu, not only from the Admin Menu.
Will watermarking be included in the future?
When there is an update I will give it another try.

Frank

PS. I am using gl 1.3.11sr2 and ImageMagick-6.2.3
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Quote by duvide:
Installing was no problem but when I try to upload images into the a created album I get a white page after a while and no confirmation that the images have been uploaded. When I go back to mediagallery the images are indeed not there.


Frank, there are a couple of things you should look at. Are there any messages in your logs/error.log? Second, can you look at your web server error logs and see anything (error messages, etc.). Also, do you have the path properly set to the ImageMagick binaries? One last thing to look at, what is the max_execution_time value set to in your php.ini?

There are a few php.ini variables that can affect whether or not Media Gallery works well:

  • max_execution_time - make sure it is large enough to handle uploading multiple images.
  • file_uploads = On - gotta have that one!
  • upload_max_filesize - make sure it is large enough to handle the files you are uploading.
  • post_max_size - make sure it is large enough to handle multiple files being uploaded at once.
  • register_globals = On - needed for Geeklog as well. But I have found that many hosting companies require you to put a php.ini in each directory where a .php script is being executed.

One of the coming additions will be the ability to upload media from the 'user space'. I'll put an upload / edit link (if the user has the proper permissions) in the gallery viewing space.

Watermarking is something I'll have to look at, should be easy enough to add, I'll have to better understand what is needed first.

If you can, check your logs and let me know if you see anything worth noting in them, if not, maybe a bit more detail about your hosting environment.

Thanks!
Mark
 Quote

duvide

Anonymous
Mon Oct 24 16:18:40 2005 - Succesfully installed the mediagallery Plugin!
Mon Oct 24 16:19:51 2005 - Calling centerblock
Mon Oct 24 16:31:28 2005 - 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY m.media_time ASC' at line 3. SQL in question: SELECT *
FROM gl_mg_media_albums as ma LEFT JOIN gl_mg_media as m ON m.media_id = ma.media_id
WHERE ma.album_id= ORDER BY m.media_time AS

this is part of the error log.

Regarding the php.ino settings I will look at that later, but I run Gallery 1.51 with lots of large images using imagemagick and there is no problem using the same path.

Apache version: Apache/1.3.33 (Unix) mod_ssl/2.8.22 OpenSSL/0.9.7a PHP/4.3.11 mod_perl/1.29 FrontPage/5.0.2.2510

Have to leave now, thanks/Frank
 Quote

Status: offline

kemal

Forum User
Regular Poster
Registered: 04/05/05
Posts: 103
Location:Turkey
tired
this is really very good gallery but i can't run it...


i installed succesfull. But i can not upload any file Rolling Eyes .

May be i dont make configuration.. Because i dont totaly understand..


what is the

imagemagic , netpbm, gd libraries ??

must i install this?? or is it my server's Installed Perl Modules ??

i
_KEMAL_
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
kemal,

Yes, you must have at least one of the graphics packages installed on your server in order to run Media Gallery.

ImageMagick is graphics package that is installed to your Windows/Linux/Unix system. Media Gallery uses the 'convert' binary to make the thumbnails, etc. Check to see if you have convert in your path (use the Un*x command 'which convert' and see if it is there.

NetPBM is another external graphics package. Media Gallery uses the pnm* binaries.

GD is a set of libraries that are compiled into PHP.

If you use ImageMagick or NetPBM, you must specify where they are located on your server in the Media Gallery configuration screen.

Also, if your server is running in safe mode, the external binaries must be in a specific directory on your server.

I would recommend trying GD libraries first. If these are compiled into PHP it should get you going.

Otherwise, not knowing what operating system you are running, I would recommend you check with your hosting service, system admins or consult your OS specific docs on installing one of these packages.

Hope this helps a little.

Thanks!
Mark
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Quote by duvide: Installing was no problem but when I try to upload images into the a created album I get a white page after a while and no confirmation that the images have been uploaded. When I go back to mediagallery the images are indeed not there. Also can't I find them when I look at them at the server in the differen media gallery directories.


Frank, I believe I know what the problem may be. In the file mg_media_upload_functions.php (located in /admin/plugins/mediagallery/), I call exif_read_data() without checking to see if that function has been compiled into PHP. If it isn't, it will cause the program to end and not give any error messages, in the log or on the screen.

Three options:

1. Download version 0.82a from www.ecsnet.org This release contains this fix along with a few more diagnostic messages to help out when there are other issues such as permissions problems or path problems.

2. Comment out that code.

3. check to see if the function exists by using the following code in it's place:

Text Formatted Code
                    if ( function_exists('exif_read_data') ) {
                            COM_errorLog("MG Upload - Attempting to read exif data");
                        $exif = @exif_read_data( $filename, 0, 1, 0);

                        $media_exif = array();
                        if (isset($exif['EXIF']['DateTimeOriginal']) )
                        {
                                $year  = intval(substr($exif['EXIF']['DateTimeOriginal'],0,4));
                                $month = intval(substr($exif['EXIF']['DateTimeOriginal'],5,2));
                                $day   = intval(substr($exif['EXIF']['DateTimeOriginal'],8,2));
                                $hour  = intval(substr($exif['EXIF']['DateTimeOriginal'],11,2));
                                $minute= intval(substr($exif['EXIF']['DateTimeOriginal'],14,2));
                                $second= intval(substr($exif['EXIF']['DateTimeOriginal'],17,2));
                                $media_time = mktime($hour,$minute,$second,$month,$day,$year,-1);
                        }
                        }

 


Let me know if this takes care of the problem.

Thanks!
Mark
 Quote

Status: offline

firebear

Forum User
Newbie
Registered: 04/20/07
Posts: 1
The newest updates work perfectly. Who’s to thank for it? _______________________________________ postcard printing or brochure printing
 Quote

All times are EST. The time is now 02:48 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content