photos / mini-gallery.php
-
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
- The topic ‘photos / mini-gallery.php’ is closed to new replies.