Giter VIP home page Giter VIP logo

gallery's Introduction

(Simple, web-based) Gallery

I created this gallery because all the other galleries seem way too complicated.

What you'll need:

  • PHP 5.2+ (with gd or imagemagick)
  • Apache (or other web server)

How to install:

  • Grab a copy:
    • clone the repo: git clone git://github.com/tasuk/gallery.git
    • update submodules: git submodule init && git submodule update
  • Set up with web server; instructions for Apache:
    • Copy .htaccess.template to .htaccess
    • Edit .htaccess and change RewriteBase if necessary.
    • These directories need to be writable by the server:
      • gallery/
      • application/cache/
      • application/logs/
  • Rename application/config/application.php.template to application.php and edit it:
    • Set base_url same as web server base.

How to use:

  • Upload your intended directory structure with picture files to upload/
  • Visit admin/update url (currently everyone can do that, but it's harmless)
  • Verify the gallery shows up as expected.
  • Optionally, delete the original pics (which could take up a lot of space) from upload/ - if you want to delete the photos from the gallery, delete them from gallery/

How to customize:

Gallery uses Kohana's cascading filesystem with a series of modules. These are configured in the above mentioned application.php config. The default is the gallery_v1 style, which is loaded like so:

'templates' => array(
	'gallery_v1',
),

If you'd like to align the thumbnails using jQuery Masonry, then use the following:

'templates' => array(
	'gallery_masonry',
	'gallery_v1',
),

It's likely you'll want to make some customizations, eg. set your own title. In that case, please create your own module. Let's call it my_style:

'templates' => array(
	'my_style',
	'gallery_masonry',
	'gallery_v1',
),

Copy modules/gallery_v1/messages/global.php to modules/my_style/messages/global.php and perform your changes there. If you take versioning seriously, you should make the modules/mystyle/ directory a submodule of the original repo. Browse through the modules/gallery_v1/ and modules/gallery_masonry/ directories to see what can be customized.

If you have any questions/remarks, feel free to contact me or create an issue on github!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.