PHP photo gallery scripts that are lightweight and do not need a database. I created these gallery scripts because I needed something lightweight and speedy for some of my projects. There are many php gallery scripts out there that are fantastic, however they are either bloated for my needs or have limited commercial licensing, so I came up with these lightweight galleries. Feel free to use them for personal or commercial use.
I have created 2 versions of this gallery:
1) Photo Gallery with Albums:
-
Automatic thumbnail creation (jpg only ).
-
Displays a random thumbnail for each album.
-
Paginates the results automatically.
-
Supports "jpg", "gif", "png" files.
-
Album names are same as album folders.
-
Integrated is lightbox clone FancyBox.
2) One File Photo Gallery:
-
Automatic thumbnail creation (jpg only ).
-
Paginates the results automatically.
-
Supports "jpg", "gif", "png" files.
-
Single file and lightweight.
Just drop the file into your folder containing pictures and point to the folder with your browser.
Notice: Undefined offset: 2 in C:\wamp\www\LuxuRay\album.php on line 127
what is wrong??
When you unzip the archive, it will create a folder called "folio-gallery". Inside this folder you need to create a folder and name it "album". Then create a subfolder in "album" for each of your albums and copy your pictures in them. If you haven't created these folders you will get error. I haven't had time to correct this but I will when I get a change.
After you do the above, there is a demo.php file in the archive, which is the one you should point to with your browser to view your albums.
I don't have wamp installed but tried it with xampp and it works for me.
Fatal error: Call to undefined function: scandir() in /usr/local/pem/vhosts/255776/webspace/httpdocs/folio-gallery/folio-gallery.php on line 66
Am I suppose to change anything else? Anything on the demo.php file? Here is the link also:
http://www.aikenhorsepower.com/folio-gallery/demo.php
I hope you can help me. I love the gallery setup and can't wait to use it.
It is me again. Sorry to bother you, but I got the PHP 5 issue straighten out, but now it comes up blank and there is a folder in albums with photos in it.
http://www.aikenhorsepower.com/folio-gallery/demo.php
Try "./albums" or "/albums" to see if it will work.
I promise this will be my last time bothering you, but this is the message that is showing up:
There are currently no albums.
And there is a folder in there with one photo in it as a test, but its not showing up. What do you suggest I have not set correct?
The script automatically creates a "thumbs" sub-folder inside each album directory and counts photos from there. My guess is that your php is not compiled properly with GD library which is needed for automatic thumbnail creation.
So, manually create a sub-folder in each of your albums folders and name it "thumbs", then make thumbnails of you photos and copy them in the thumbs sub-folder.
Post back if you have problems.
Unfortunately it still says There are currently no albums. I have a folder created with a subfolder called thumbs inside. There is a thumbnail inside the thumbs folder and a full size image in the main folder. I also checked and saw the the GD Library is enabled as well. I am ready to throw my hands up. I need help.
Question, should the folder be named album or albums? I had it as albums but renamed it album, but still no change.
I don't know why your images don't show. If you want, email me your ftp login info and i will take a look when i get a chance.
You had the main album path wrong. Also missing were fancybox files and their path were incorrect.
All paths are relative to folio-gallery folder, so if you download and expand files in folio-gallery folder, everything should work out of the box.
SWEET! You are a genius. One more thing and I will stop bothering you. If I have a page that is named gallery.php and I want to embed the gallery inside that page, what do I need to do?
Oh ok. Wherever I want the gallery to appear, I just do a php include and the name of the file which would be demo.php or foliogallery.php and the gallery will show in that location. Correct?
Guess who? This is Tavares again. Everything is working good, but I have one question. I have been altering the css to match the current website. For the text that is below the thumbnail, for example I have the first gallery titles Spring Fling 2011, I only see Spring Fling below that thumbnail and you only see half the word and it is big that you don't see 2011. Which one do I alter to reduce that size?
If you want to display more characters open folio-gallery.php and find this line: substr($album,0,20) and change 20 to whatever number of characters you want displayed.
In any case I don't think 475 photos in one gallery is a good idea.
link
http://www.foliopages.com/downloads/folio-gallery/folio-gallery.zip is not working :(
Warning: scandir(/albums) [function.scandir]: failed to open dir: No such file or directory in /homepages/12/d284769722/htdocs/folio-gallery/folio-gallery.php on line 66
Warning: scandir() [function.scandir]: (errno 2): No such file or directory in /homepages/12/d284769722/htdocs/folio-gallery/folio-gallery.php on line 66
Warning: Invalid argument supplied for foreach() in /homepages/12/d284769722/htdocs/folio-gallery/folio-gallery.php on line 73
There are currently no albums.
If you have a link to your gallery i will take a look at it.
come to think about it, as you are a programmer ,the case is i made a bar like a horizontal social bar for my website and it works fine appearing at end of the browser screen visible (where it fits ) and following any time i would scroll the page (works in chrome and firefox) but inany internet explorer the bar doesen't appear the same way,it appears at the end of the page and i don't know what to do,is something to do with internet explorer not acepting css is there an extra script i should add?,what happens is that it leaves it at the end of the page.i would appreciate if you can help me please. also regarding php contact form do you know any form php popup form from a click of a button with captucha ,i had one but when at some point the error for not filling details disappeared and when i uploaded it a big error would appear. please help me
Regarding the horizontal bar, check for errors in your html or css. I can't say what could be wrong before seeing it, so if you're still having trouble post a link here to your live web page.
For a popup contact form you can use many of the modal lighbox clones. My preferred ones are colorbox and fancybox. Here's one of my most recent projects that has a popup contact form using colorbox. www.postyourlease.com
For captcha you can check out "recaptcha" or there are many other ones. I personally do not use captcha on contact forms. My preffered method for reducing spam from contact forms is to create a hidden field in your contact form and tell your php script not to submit the contact form if this hidden field is not empty. Most robots cannot tell the difference between hidden or text field, therefore will fill out this hidden field.
I will post a contact form used in a modal window when i get some time.
Post Comment