UberGallery - The simple PHP photo gallery
==========================================
Created by, [Chris Kankiewicz](http://www.ChrisKankiewicz.com)
Introduction
------------
UberGallery is an easy to use, simple to manage, web photo gallery written in PHP and distributed
under the [MIT License](http://www.opensource.org/licenses/mit-license.php). UberGallery
**does not** require a database and supports JPEG, GIF and PNG file types. Simply upload your images
and UberGallery will automatically generate thumbnails and output standards compliant XHTML markup
on the fly.
Features
--------
* Simple first time installation
* Database-less configuration
* Include galleries within pre-existing sites
* Create multiple galleries with a single installation
* Easily customize your gallery styles via CSS
* Install and update the gallery easily wth Git (optional)
Requirements
------------
UberGallery requires PHP 5.2+ and the PHP-GD image library to work properly. For more information on
PHP and the PHP-GD image library, please visit [http://php.net](http://php.net).
Simple Installation
-------------------
1. Copy `resources/sample.galleryConfig.ini` to `resources/galleryConfig.ini` and modify the settings
to your liking.
2. Upload `index.php`, `resources/` and `gallery-images/` to your web server.
3. Upload images to the `gallery-images/` directory.
4. Make the `resources/cache/` directory writable by the web server:
```
chmod 777 /path/to/resources/cache
```
5. Open your web browser and load the page where you installed UberGallery.
Custom Installation
-------------------
1. Copy `resources/sample.galleryConfig.ini` to `resources/galleryConfig.ini` and modify the settings
to your liking.
2. Upload the `resources/` folder to your web server.
3. Insert the following code into the PHP page where you would like the gallery to be displayed
(be sure to change the include and image folder path to match your configuration):
```php
<?php include_once('path/to/resources/UberGallery.php'); $gallery = UberGallery::init()->createGallery('path/to/images-folder'); ?>
```
4. Include the UberGallery and desired ColorBox style sheet in your page header:
```html
<link rel="stylesheet" type="text/css" href="path/to/resources/UberGallery.css" />
<link rel="stylesheet" type="text/css" href="path/to/resources/colorbox/1/colorbox.css" />
```
**NOTE:** You can replace the `1` with a value between 1 and 5 for different ColorBox themes.
5. Include the jQuery and ColorBox javascript files in your page header:
```html
<script type="text/javascript" src="://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<script type="text/javascript" src="path/to/resources/colorbox/jquery.colorbox.js"></script>
```
6. Include the ColorBox jquery call in your header:
```html
<script type="text/javascript">
$(document).ready(function(){
$("a[rel='colorbox']").colorbox({maxWidth: "90%", maxHeight: "90%", opacity: ".5"});
});
</script>
```
7. Upload images to your images directory.
8. Make the `resources/cache/` directory writable by the web server.
```
chmod 777 /path/to/resources/cache
```
9. Open your web browser and load the page where you installed UberGallery.
Install with Git
----------------
1. SSH into the your server and clone the UberGallery repository and submodules:
```
git clone --recursive git://github.com/UberGallery/UberGallery.git /path/to/gallery-directory
```
2. CD to your UberGallery installation:
```
cd /path/to/gallery-directory
```
3. Copy `resources/sample.galleryConfig.ini` to `resources/galleryConfig.ini` and modify the settings
```
cp resource/sample.galleryConfig.ini resources/galleryConfig.ini
nano resources/galleryConfig.ini
```
4. Make the `resources/cache/` directory writable by the web server.
```
chmod 777 resources/cache
```
5. Upload images to the `gallery-images/` folder within your gallery directory.
6. Open your web browser and load the page where you installed UberGallery.
**NOTE:** When using this method to install UberGallery, you may update your installation by running
the following commands:
cd /path/to/gallery-directory
git pull origin master
git submodule update
Troubleshooting
---------------
If you're having issues with UberGallery here are a few troubleshooting tips:
* Verify that you have PHP 5.2 or later installed. You can verify your PHP version by running:
```
php --version
```
* Make sure you have the latest version of UberGallery installed. You can always find the latest
version at <http://www.ubergallery.net/#download>
* Replace your `galleryConfig.ini` with `sample.galleryConfig.ini` to ensure proper configuration:
```
rm resources/galleryConfig.ini
cp resource/sample.galleryConfig.ini resources/galleryConfig.ini
```
* Clear your cache and make sure the directory is writable by the web server:
```
rm -f resources/cache/*
chmod 777 resources/cache
```
* Enable debugging by setting the `enable_debugging` option in `resources/galleryConfig.ini` to
`true`, try loading your gallery in a web browser then inspect the debug.log file in your cache
directory for any errors.
If you continue to have issues, please email me at: <Chris@ChrisKankiewicz.com>
News & Updates
--------------
UberGallery updates and news can be found on our [blog](http://news.ubergallery.net) or by
following [@UberGallery](http://twitter.com/ubergallery) on Twitter.
Please report bugs to the [Github issue tracker](http://github.com/UberGallery/ubergallery/issues).
License
-------
UberGallery is distributed under the terms of the
[MIT License](http://www.opensource.org/licenses/mit-license.php).
Copyright © 2013 [Chris Kankiewicz](http://www.chriskankiewicz.com)

JonSco
- 粉丝: 97
- 资源: 1万+
最新资源
- 基于Spring Boot和SSM框架的ERP进销存管理系统源码:单据流转、精细化的物流信息管理,前端细节设计,权限管理,透明背景与关联单据优化,基于Spring Boot与SSM框架的ERP进销存管
- 燃料电池与超级电容复合能量管理策略:Simulink仿真模型研究及其在混合储能系统中的应用,燃料电池与超级电容复合能量管理策略:Simulink仿真模型研究及其在混合储能系统中的应用,燃料电池电池超级
- 西门子PLC1500控制Fanuc机器人汽车焊装生产线自动化:Profinet通讯与多种模块集成应用,西门子PLC1500大型程序掌控汽车焊装生产线:涵盖Fanuc机器人、触摸屏、Profinet通讯
- 基于MATLAB的综合能源系统优化调度:结合需求响应与碳交易机制研究,综合能源系统优化调度:Matlab程序制定与碳交易机制下的综合需求响应应用,matlab程序制定,综合能源系统优化调度,综合需求响
- 电力市场出清程序:基于IEEE 14节点输电阻塞分析的机组与节点边际电价求解,利用拉格朗日乘子计算最优发电成本,采用MATLAB linprog函数实现,具备广泛参考价值 ,电力市场出清程序:基于IE
- 永磁同步电机双矢量模型预测控制仿真研究:MATLAB下的PMSM控制策略探索,永磁同步电机双矢量模型预测控制仿真研究:基于MATLAB平台的PMSM控制策略探索,永磁同步电机双矢量模型预测控制仿真PM
- 【毕业设计】Python的Django-html开放领域事件抽取系统源码(完整前后端+mysql+说明文档+LW+PPT).zip
- 【毕业设计】Python的Django-html旅游城市关键词分析系统源码(完整前后端+mysql+说明文档+LW+PPT).zip
- 【毕业设计】Python的Django-html旅游景点方面级别情感分析语料库与模型源码(完整前后端+mysql+说明文档+LW+PPT).zip
- LabVIEW利用DLL接口操作结构体指针:获取嵌套指针与混合类型数据处理策略,LabVIEW利用DLL获取结构体指针内嵌套指针元素及多种类型数据的实践方法,LabVIEW通过dll获取结构体指针中的
- 【毕业设计】Python的Django-html某大学学生影响力分析系统源码(完整前后端+mysql+说明文档+LW+PPT).zip
- 【毕业设计】Python的Django-html棉花数据平台建设与可视化系统源码(完整前后端+mysql+说明文档+LW+PPT).zip
- 【毕业设计】Python的Django-html小波变换的数字水印研究系统源码(完整前后端+mysql+说明文档+LW+PPT).zip
- 【毕业设计】Python的Django-html语音识别的智能垃圾分类系统源码(完整前后端+mysql+说明文档+LW+PPT).zip
- 基于蒙特卡洛模拟的分布式电源(风光)概率潮流Matlab仿真研究:IEEE 33节点系统的分析与应用(包括牛拉法潮流计算与电压特性前后对比),基于蒙特卡洛方法的分布式电源(风光)概率潮流计算Matla
- 【毕业设计】Python的Django-html知识图谱的百科知识问答平台源码(完整前后端+mysql+说明文档+LW+PPT).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


