UberGallery | An easy to use , simple to manage , web photo gallery | Content Management System library
kandi X-RAY | UberGallery Summary
kandi X-RAY | UberGallery Summary
An easy to use, simple to manage, web photo gallery written in PHP.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Generate paginator array
- Create thumbnail
- Get relative path
- Paginate an array
- Read all files in a directory
- Read gallery images from a directory
- Sorts an array
- PHP Error Handler
- Encode an array
- Recursive array decode
UberGallery Key Features
UberGallery Examples and Code Snippets
Community Discussions
Trending Discussions on UberGallery
QUESTION
I'm using ubergallery
for a picture gallery and I copied a script for a pop-up form, which I turned into a contact-us form pop-up.
When I use both scripts, my ubergallery
doesn't work. Is there a way for both scripts to work together?
the script are in the correct order, according to the instructions i followed. I just don't know which one to delete/alter in order for both functions to work.
...ANSWER
Answered 2017-Sep-05 at 18:22jQuery library and colorbox plugin were loaded twice. That is never good.
Below are the CDNs for them. They will work.
Now you will have to check if your relative path CSS files are correct (not 404 not found, check the console) and loaded in the right order... I just can't tell you this.
Also... I pretty sure that you cannot use a space in the rel
attribute. I removed it from the selectors... Also remove it from your HTML markup.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install UberGallery
Copy resources/sample.galleryConfig.ini to resources/galleryConfig.ini and modify the settings to your liking.
Upload index.php, resources/ and gallery-images/ to your web server.
Upload images to the gallery-images/ directory.
Make the resources/cache/ directory writable by the web server: ``` chmod 777 /path/to/resources/cache ```
Open your web browser and load the page where you installed UberGallery.
Copy resources/sample.galleryConfig.ini to resources/galleryConfig.ini and modify the settings to your liking. Upload the resources/ folder to your web server.
Copy resources/sample.galleryConfig.ini to resources/galleryConfig.ini and modify the settings to your liking.
Upload the resources/ folder to your web server.
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'); ?> ```
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.
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> ```
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> ```
Upload images to your images directory.
Make the resources/cache/ directory writable by the web server. ``` chmod 777 /path/to/resources/cache ```
Open your web browser and load the page where you installed UberGallery.
SSH into the your server and clone the UberGallery repository and submodules:. Copy resources/sample.galleryConfig.ini to resources/galleryConfig.ini and modify the settings. Upload images to the gallery-images/ folder within your gallery directory. Make the resources/cache/ directory writable by the web server. Open your web browser and load the page where you installed UberGallery.
SSH into the your server and clone the UberGallery repository and submodules: ``` git clone --recursive git://github.com/UberGallery/UberGallery.git /path/to/ubergallery ```
Copy resources/sample.galleryConfig.ini to resources/galleryConfig.ini and modify the settings ``` cp resources/sample.galleryConfig.ini resources/galleryConfig.ini nano resources/galleryConfig.ini ```
Upload images to the gallery-images/ folder within your gallery directory.
Make the resources/cache/ directory writable by the web server. ``` chmod 777 /path/to/resources/cache ```
Open your web browser and load the page where you installed UberGallery.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page