Basic photo gallery CMS - php

I know there are lots of gallery scripts out there, but I don't know if any of them will fit my needs. I'm looking for something extremely simple that I can seamlessly incorporate into an existing website to replace the old manually updating every page method. There are 4 categories and an archive, and I'd like to be able to give a title and description to each photo, and search within the 4 categories, or the archive.. The current gallery works with a list of 8-10 thumbnails per page and when you hover over them, a large preview shows up in the empty space at the right. The title and description for each photo is added in photoshop to each image, which is a big reason to update this (this was done by the original web designer, not me).
The server runs linux with PHP and MySQL.
Does anyone know of something that fits my needs, or is simple enough for me to modify to meet my requirements?
Thanks
Edit: Thanks for the replies, but these aren't really what I'm looking for; sorry for not making it clearer. I want a CMS type system where I can easily add the photos through an admin panel and then have the front-end a bit more up to me.

My personal fave, not so known but very stylish and easy to use:
http://www.pirolab.it/pirobox/
One of the most widespread and very easy to setup is Lightbox 2:
http://www.huddletogether.com/projects/lightbox2/
There are a ton of others, you can google for "lightbox script"
and find something that maybe fits your taste more.
But for these 2 I can say from personal experience that are
stable, work nicely and easy to use.

I set up something for my wife to link work samples during a job search. I used smoothgallery ( http://smoothgallery.jondesign.net/ ) which is very lightweight. It is just the gallery UI essentially, and basically rewrites the DOM for a specially tagged unordered list if I remember correctly. So the gallery organization is up to you, but its as easy as a little php + mysql to output the list.

Related

Impress Pages Themes

I am using Impress Pages and currently using the theme "Air." At the top of the page, how do I move the picture to the center of the page. Secondly, below the picture, I have added text; how do I increase the font size? Thirdly, is there a way to change the white color in the center box to another color?
Everything you can modify in templates existing CSS file or you can create new one and include it in template header.
Before anyone else down votes your question, I have some suggestions which I hope you'll take seriously. First of all, as I understand from your questions, you have very limited knowledge about HTML, CSS and probably none about JavaScript. Follow these links (many people may disagree with my suggestion on w3schools, but that site is the best place for beginner - as I began my journey with that site - in my opinion. Feel free to suggest more) and have some study first. It'll take some days considering how much time you'll invest on that study. Then you'll have a general understanding of how things work and will be able to ask specific questions about your problems.
Building web sites may at first seems an easy work. But as you begin learning stuff you'll realize that to create some serious stuff, takes many years of practise. So, after following those links and having some general idea about how html and css works, you can go install a Wordpress or Joomla site and use some free stuff which are even used by the experienced developers to save time on development simple sites with simple requirements.
Also, using StackOverflow, you have some rules / recommendations to follow. If you take a moment and follow them, your questions will be much appreciated and you'll be able to benefit from other people's experiences.
I am just trying to help here, as I was (and everyone in this community) a beginner once.
Good luck on your journey!
Down and dirty method in the admin panel (while figuring out later how to modify code in ImpressPages):
Drag the image icon to the content area, and insert the image.
Drag another image icon to the left of the new image, but do not insert an image. Drag a second one to the right of the new image...using both of these as placeholders. ImpressPages automatically divides the available space, leaving the image centered.

Choosing between open source php photo gallery and-or cms

Im in the beginning of developing three different web applications with the classic php/mysql technologies. These applications would all have photo galleries (with different requirements in sizing).
I think the best choice is to choose an open source solution rather than developing from scratch. However, even though Im an experianced php programmer I have no experiance in open source cms/photo galleries.
So, questions:
what are the best choices for an open source php photo gallery considering that I will surely have mess up with their code and extend it (ive seen plogger and zenphoto, not impressed)?
Is it wise to choose an open source php photo gallery or go with a cms (eg wordpress, joomla, typeo3 etc)?
If anyone has experiance in using and extending php open source apps please share some knowledge.
If your site mainly on photo gallery highlighted, better to choose Photo gallery open source software which are available instead of Joomla like CMS.
www.plogger.org
You can try:
Gallery
Coppermine
Both are well known PHP Photo Gallery open source software (GPL License). Also both are under active development and have a big community of users, so you can probably get help when you will need it.
Also both have some, kind of integration with the most known open source CMS.
I recommend to search a good gallery plugin that suits your requirements from wordpress plugin directory. http://wordpress.org/extend/plugins/
I actually use Gallery, but not in the sense that most people do. I install it in a directory that only the admin will see. I link it up through my CMS with an icon, and tie the authentication system to match my CMS's. It exists only for the admin to get photos in.
From there, I do queries on the front-end with php into Gallery's database to get the photos that I want. It's certainly not rocket science once you figure out which tables and which directories are required to get what you need.
Could I use something canned? Sure. But my clients demand more than that. Because I'm just too busy to get something completely custom finished that includes resizing, javascript cropping, folder traversing, etc in addition to the crazy front end transitions and presentation I already write, this has been a great solution. And it works, every time. I can focus my time on making the front-end really unique and perfect for that particular application.
I've been using Xoogallery, which is a responsive php photo gallery. It's open source
They offer a developer license so you can us it on your client's websites.
Try it http://xooscripts.com/product/html5-php-photo-gallery.html

How to improve this wallpaper gallery?

Gallery - http://schnell.dreamhosters.com/wallpapers.php
The purpose of this gallery is simple - store a lot of wallpapers and sort them by resolution and/or aspect ratio for people to browse and download as they like. There's a few features I've wanted to work in, but I'm not quite sure how best to do them or how to do them at all. The presentation is in HTML 4, CSS, Javascript and jQuery + plugins. The work behind the scenes is done in PHP.
1 - Make the images downloadable without 'Save Image As...'. Right now I'm using a contrivance whereby clicking the Download link in the bottom-right of each image's box opens a new box with instructions telling the user to 'Right Click. Save Image As...'. I'd like to avoid this entirely if possible.
2 - Make the searching and sorting faster and more efficient. Right now all the images are stored in a folder on my webspace and I use a shell command and a lot of fancy filtering in PHP to get the images I want based on the filters (the page number I'm on and the aspect ratio or resolution I chose). I thought of maybe doing something with MySQL, but I haven't quite figured out yet how I'd do that and maintain the structure my page has.
3 - Make the images load faster. There's probably no easy coding solution to this, so this one is more of a 'I wish' than a 'I want to'.
4 - Improve the layout. This one is more subjective and 'artsy' I suppose, but any suggestions would be nice.
5 - An upload system. Give the ability to upload your own wallpapers and maybe include a short description or some tags. I have absolutely no idea how to handle this as I've never worked with uploading of files before. And this also leads to...
6 - A tagging system or some other type of user-made sorting system. Again, no experience here.
Any insight on any of these issues would be great, and feel free to throw in any suggestions of your own.
Send the files with the MIME type "application/octet-stream" to make a browser download rather than display them
It would definitely be better to store information about the images in a database rather than exploring the filesystem
The images really aren't loading slowly for me, so I can't really suggest anything here. If your site gets larger (much larger) you might want to look into CDNs
The layout is OK but it needs some design, it's incredibly plain at the moment. It would also be nice to see more information on the images - what they are of, where they're from, who made them, etc (don't forget: correct copyright attribution)
You probably want to read the PHP handbook section on handling file uploads. To handle description and tags, you'll definitely want a database of some sort.
Also not hard if you have a correctly formed database. If you've never designed a schema before you probably want to learn a little about normalisation and many-to-many relationships to do the tags.
Lastly you didn't ask for it, but it'd be nice if it were possible to have the same image in multiple resolutions (quite common on image sites - think Flickr, Deviantart, etc).

photo album for website

I want to have a photo album on my website such as this:
http://www.yelp.com/biz_photos/B9S9wNChMFRz6IAL_0n6pA?select=ADeqFE2Tj2s7eM8WuQibbQ
I'm looking for something where the photo that is displayed is also highlighted as thumbnail below that so that users can select photos rather than having to click next.
Also, I want to be able to have multiple photo albums so each set of thumbnails is different. Perhaps something where the whole page doesn't have to reload, but just the photo itself and the highlighted thumbnail?
I've done some research but I'm unsure of which type is best ie- PHP, javascript, etc...
I only have experience in HTML, CSS, and basic javascript and limited PHP.
I'm hoping somebody can point me in the write direction as to what to look for.
Thanks
Learn jQuery.
http://www.jquery.com
Rejoice!
http://blueprintds.com/2009/01/20/top-14-jquery-photo-slideshow-gallery-plugins/ <-- take your pick.
The jquery cycle plugin is fantastic and super easy to set up:
http://jquery.malsup.com/cycle/
and specifically it has the ability to do auto-thumbnailing as navigation:
http://jquery.malsup.com/cycle/pager2.html
If you know CSS you can take it from there.
As I myself am not the best (but still trying to get better!) when it comes to the more UI related technologies (CSS, JS, HTML etc), I have found using popular libraries such as JQuery Tools to be quite helpful and very easy to use. I believe the widget below matches up with what you are looking to do, and it also comes with a tutorial and helpful customization examples:
http://flowplayer.org/tools/demos/scrollable/gallery.html
Best of all I think JQuery Tools and Flowplayer are open source, so that means once you get the widget working, you can also delve into the code to try to gain a better understanding and hopefully one day take your own crack at a similar solution.
Good luck!

What are best practices for determining if I should create a new Drupal module?

I'm using Drupal for the first time for a project at work. I'm finally getting my head wrapped around some of the core concepts, but when it comes to customizing output I'm unsure of how to proceed.
I have to build a fairly specialized image gallery. I've managed to cobble something workable together using Views2, but it's not quite where it needs to be. I'd like to write it from scratch, using SQL and actual PHP, rather than working through this web UI.
I figure I'll put this functionality in a new module. Is that right? Or is that an abomination to the Drupal world?
Edit:
Here's what I've got so far. I've created Image Gallery and Image content types with CCK. Images can be assigned to multiple galleries, via nodereference. I've got imagecache creating two sizes for each uploaded image - a thumbnail size and a gallery size.
Two gallery formats are required, but let's assume I'm going to have a carousel style for now, with some custom JQuery and CSS to match the rest of the site's look and feel. Clicking a thumb in the carousel-style navigator will load the full sized image above it.
Now, assuming such a thing does not exist, what is the recommended approach for creating it? Not how to code it, but where would this code live within the Drupal system?
It seems like views will do the job of creating the data you need - a list of all the images for the galleries, based on whatever criteria you need (taxonomy,author or whatever) and that the carousel part - adding the jquery and css could be done by using drupal's themeing system to change the output.
So as ar as 'where would the code live' I would say in your theme, rather than a module.
The views theming system is pretty comprehensive, if possibly a little overwhelming at first.
This looks like a good starting reference: http://www.group42.ca/theming_views_2_the_basics
You can do this. Views is great but will often only get you 90% of what you need out of the box.
You can do views theming, which can take you further, and you can write extentions to the views functionality (but that is not always easy).
There is nothing wrong with writing your own module in stead of views, in some cases it can increase performance. One tip if you are doing this is that you can see use the query that views creates in your custom module, this can save you having to work it out and write it yourself.
Yep, I'd put this in a module. I often wind up writing custom ones for specialised use cases.
Well since it is free software you are free to do (almost) whatever you want with it.
A good practice to decide if you should do it is:
Will the benefits that I will get from
a custom module divided by the time
I'm going to invest in it. Outweigh
the benefits / over time of a solution
that isn't ideal?
Or if you prefer to look it this way:
Custom Development Benefits Not 'ideal' solution benefits
--------------------------- > -----------------------------------
Development Time Time to install and adapt
Since normally the Time to install and adapt normally is smaller than the time to develop something from scratch, the common conclusion is to just use what is already there.
But by all means if you want to develop your own thing and have enough time, go ahead.

Categories