Hey guys, I've been researching this all day. My client wants a simple photo gallery where he can upload his own photos without having to call me every time. I've looked into a few but either couldn't get them to work, themes not simple enough, just wasn't what I'm looking for. I have tried: http://gallery.menalto.com/ (layout too complex, looking for a simple gallery with rows and columns, installed it but said "mysql name or password error... couldn't get past that point) http://davidwalsh.name/generate-photo-gallery (I have no idea how to use this) and many more articles I read online... ANYWAYS, I finally found a gallery that might work: http://getpagemap.com/free-photo-gallery That gallery is very beautiful, and all it needs is the one .php file. Just drop the images into the same folder and it automatically creates thumbnails and you're good to go. Now, I guess I could create an iFrame and throw this page in there. Hopefully I can figure out a way to control how many columns/rows. But the major issue now is creating an upload page where the client can upload his pictures into THAT folder. Once he uploads them into that folder everything will happen automatically. He doesn't know FTP and that's not really his job to go into FTP and do all that. So I was thinking that I could make a password protected html page with a file upload form like this.... http://www.zubrag.com/scripts/file-upload-form.php Well I made that form and uploaded it to the server but it keeps saying "Destination folder does not exist or no permissions to see it." Basically I changed the gallery folder (where the free photo gallery .php is) to 777 and that screwed up the free photo gallery for some reason. So is there any other way to make a form that uploads a pic into that folder? Does anyone know of any simple row-and-column photo gallery that my client can upload pictures into. I really want to put this gallery into an iFrame into the main "photo gallery" page so the design matches with the rest of the site and not open in a new window, but if that's the only way to go then I guess we'd have to do a separate gallery page without the rest of the site's design. Thanks in advance
u will trying this<?php if(isset($_POST['upload'])) { $path="image/"; $path=$path.$_FILES['f_nm']['name']; if($_FILES['f_nm']['size']>0) { move_uploaded_file($_FILES['f_nm']['tmp_name'],$path); echo"The Image ". basename($_FILES['f_nm']['name'])." uploaded"; } } /////////READING IMAGE'S NAME FROM IMAGE DIRECTORY///////// $dp=opendir("image"); while($fn=readdir($dp)) { if($fn!='.'&&$fn!='..'&&$fn!='Thumbs.db') $fnm[]=$fn; } ?> <form action="" method="post" enctype="multipart/form-data"> <table width="640" border="1" align="center"> <tr> <td width="318" height="155"><table width="33%" border="0" align="center" bgcolor="#99CCCC"> <tr> <td height="258"><center> <?php $tot=count($fnm); $no_row=ceil($tot/5); $i=1; echo"<table>"; for($r=1;$r<=$no_row;$r++) { echo "<tr>"; for($c=1;$c<=5&&$i<=$tot;$i++,$c++) { list($k,$v)=each($fnm); echo "<td><a href='photogallery.php?id=$v'><img src='image/$v' height='50' width='50'></a></td>"; } echo "</tr>"; } echo"</table>"; ?> </center></td> </tr> <tr> <td height="68"><table width="312" border="0"> <tr> <td width="81">Upload File </td> <td width="221"><input type="file" name="f_nm" /></td> </tr> <tr> <td><input name="upload" type="submit" id="upload" value="Upload" /></td> <td> </td> </tr> </table></td> </tr> </table></td> <td width="306" bgcolor="#669999"> <?php $img=$_REQUEST['id']; if(isset($img)) echo"<img src='image/$img' height='300' width='300'>"; ?></td> </tr> </table> </form>
I have no idea what that code is and what it does and where to put it. Did not answer any of my questions. Something like that gallery could work but I'd prefer the images open in the same window after clicking the thumbnail. And is there an admin upload section?
If there isn't any gallery like that, then does any one have advice on making the file uploader work? I'm using Front Page 2002... (yeah I know...)
Plogger is the best one to integrate with wordpress with only two line coding. with admin upload facility, sitemap, bulk upload etc.
Thing is I do not need Word Press. I just need a simple standalone gallery. I'm looking into Plogger now. Hopefully I can put the Plogger gallery in an iFrame on the main "photos" so it will blend seamlessly with the site.
Hey guys, just a quick update. Guess what -- I was entering "localhost" for the MySQL database host. No wonder why I couldn't get Plogger or the Menalto gallery to install! Anyways, I have installed Plogger and it is EXACTLY what I'm looking for! I can customize the colors to match the site's color scheme and then I'll just throw it into an iFrame and it's good to go. KlixIndia, thanks for your help! If it wasn't for you I wouldn't have called the host company...