• Hi all:
    I’m desperate for a quick and easy solution to photos in my blog. As everyone else, I just want an easy, integrated way to illustrate a post.
    Image uploading, as of 1.2 (Mingus) works great, if one has a properly configured PHP installation (**in Linux check the –with-jpeg-dir= config option, and also check to have libjpeg AND libjpeg-devel installed**)
    I’ve added two lines in admin-functions.php to show the image you’re uploading, and if a thumbnail was created, tho show both the URL and the image itself.
    Place right after the first ocurrence of $piece_of_code:
    <;code>
    $piece_of_code .= ‘
    <img src=”‘.get_settings(‘fileupload_url’).’/’.$img1_name.'”\
    alt=”‘.$imgdesc.'” />’;
    $piece_of_code .= ($result == 1) ? ‘
    And it\’s thumbnail (if any):
    <img src="'.get_settings('fileupload_url').'/thumb-'.$img1_name.'" alt="'.$imgdesc.'" />

    <img src="'.get_settings('fileupload_url').'/thumb-'.$img1_name.'" alt="'.$imgdesc.'" />':'';

    So this works to show you what’s being uploaded <i>right now</i>, but how to know what’s been uploadede before?. A gallery is needed to show the contents of the upload dir.
    In <b>upload.php</php> there’s this include():

    <?php // include('mini-gallery.php'); ?>

    Which hints me to a small (smart, eh? ?? ) gallery that didn’t make it to the 1.2 release. Can someone comment on this? is tis mini gallery available?
    Best
    Ruben

Viewing 2 replies - 1 through 2 (of 2 total)
  • The mini-gallery is actually called “Insert Image” plugin and you can find it right here.
    At the moment the image browser is really mini, but I will improve it over the time. Automatic detection of Thumbnails as well as a solution for large amounts of images in the upload dir is on my todo-list.

    Thread Starter umquat

    (@umquat)

    I tried to get it working, but failed :-(. I’m using 1.2
    It complains a lot about failing to include(), but after fixing that, the plugin headers are all wrong, so it won’t show up properly in the plugin control page.
    After fixing that, my PHP started to complain about parse errors on a perfectly formed line. (line 27, the title)
    any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘photos / mini-gallery.php’ is closed to new replies.