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)
局外狗
- 粉丝: 83
- 资源: 1万+
最新资源
- VMware虚拟机安装、备份与恢复全攻略
- 昆仑通态MCGS与3台英威腾GD变频器通讯 器件:昆仑通态触摸屏,3台英威腾GD系列变频器,附送接线说明和设置说明 功能:实现频率设定,启停控制,实际频率读取等,状态指示
- 机会约束最优潮流:不确定性下的风险感知网络控制 python源代码,代码按照高水平文章复现,保证正确 当不可控制的资源波动时,电力行业通常使用最优潮流(OPF)在输电网络的控制区域重新调度每小时可控的
- 最优控制电池储能模型 蓄电池储能模型的最优控制python源代码,代码按照高水平文章复现 包含五个python脚本,它从data .csv读取价格、负载和温度数据 然后用本文中描述的决策变量、目标和
- 项目管理表格,用来管理项目进度以及把控项目过程
- 一种分布式鲁棒优化的微电网单元分配方法 python源代码,代码按照高水平文章复现,保证正确 针对电网负荷和电力市场价格不确定的情况,提出了一种分布式鲁棒单元承诺方法 提出的关键推力的方法是利用Ku
- 不同操作系统下Node.js安装与环境配置教程:涵盖Windows、macOS和Linux系统
- VMware虚拟机安装与备份恢复全解析:覆盖下载、安装、配置到高级数据保护策略
- 变压器励磁模型 Matlab simulink 质量过硬 可用于模拟电压暂降等电能质量问题,适配于本家的IEEE 33节点模型
- 微信小程序开发全流程解析:从账号注册到API调用与发布
- 利用插电式电动汽车提高电网暂态稳定性 python联合PSS E源代码,代码按照高水平文章复现,保证正确 插电式电动汽车(pev)在放电模式下可以作为分布式能源和电力资源,作为车到网(V2G)设备运行
- 基于自适应在线学习的概率负荷预测python联合matlab源代码 负荷预测对于多种能源管理任务是至关重要的,例如调度发电能力,规划供应和需求,最小化能源交易成本 近年来,由于可再生能源、电动汽车和
- 示例:在 Python 中定义链表
- 平台采用小米1代扫地机 目前只有32端代码能实现延边避障防跌 落充电等功能 适合需要学习项目与代码规范的工程师 硬件驱动包含 陀螺仪姿态传感器bmi160、电源管理bq24733等 软件驱
- 电网经济和频率控制的多层,多时间尺度模型方法 Julia源代码,代码按照高水平文章复现,保证正确,可先发您文章看是否满足您的要求 由于分散的可再生能源和存储的不断增加,电力系统受到根本性变化的影响
- java将八进制转换为十进制的自定义方法
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈