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.10.2/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/ubergallery
```
2. 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
```
3. Upload images to the `gallery-images/` folder within your gallery 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.
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
**NOTE:** If you are installing UberGallery via git into an existing git repository, you will need
to add it as a submodule.
git submodule add git://github.com/UberGallery/UberGallery.git path/to/ubergallery
git submodule update --init --recursive path/to/ubergallery
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)
毕业_设计
- 粉丝: 1997
- 资源: 1万+
最新资源
- 小红书爆款模板 一天轻松引流几十创业粉.mp4
- 小红书笔记带货与直播流程超详细拆解分析设计.mp4
- 小红书店铺实战运营起店开店认知+实操课程.mp4
- 小红薯电商实操课小红书开店实操必学课.mp4
- 小红书零食共创新手开个店铺发发笔记賺钱.mp4
- 小米SU7Ultra订单生成器.mp4
- 小猫咪抽奖系统1.11(有卡密功能).mp4
- AEB距离模型 考虑前车不同运动状态的AEB距离模型 AEB-simulink距离模型 版本:prescan8.5 Matlab版本可以降 内容: 1、考虑了前车不同运动状态、驾驶员反应时间、制动器响
- 小悟空1.5 ppt生成 小说创作 视频脚本等.mp4
- 融合天文导航与INS的定位示例
- 校园点餐订餐外卖跑腿Java源码.mp4
- 小猿口算v3.97.3高级会员版-口算作业拍题解析.mp4
- cruise软件模型,串联混动ECMS,cruise增程混动仿真模型,A-ECMS控制策略,Cruise混动仿真模型,串联混动汽车动力性经济性仿真 关于模型 1.本模型是基于增程混动架构搭建的cru
- 笑话全集app 心情不好不妨看看笑话吧.mp4
- 基于faster-RCNN的PCB元器件缺陷检测源代码+数据集+模型权重文件
- 新苹果影视盒子v1.5.50内置源版点播+直播.mp4
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈