CollagePlus plugin CollagePlus plugin
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

CollagePlus plugin

Started by mykee, September 03, 2013, 11:18:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mykee

Hi all,

I made a collage plugin from CollagePlus JQuery script. More information and license is here:
http://collageplus.edlea.com/

This plugin made a collage to index page from thumbnails or big photos with caption. I integrated TipTip balloon, and Lightbox effect too.

What can with this:
- make a collage
- set number of pictures
- select thumbnail, normal or full size pictures
- setup caption type: none, standard, TipTip
- set padding, container width, fade time or target width and height (if selected Normal or Full size image)
- turn on or off HTML5 compatible code, JQuery and Lightbox effect

I fixed IE width bug for collage resort if your template is ellastic or not fixed width.

Check Readme.txt after install for setup. If any problem with use, just turn on or off JQuery, maybe help.

Attention: this plugin use HTML5 and CSS3 codes! Under IE8 and older versions will not working all features!

------------------------------------
Update v1.2 (2014/09/27):
- restriction mode added to sql query
- add language support to lightbox caption
- jQuery updated to 1.11.1 version, added jquery-migrate 1.2.1 version

Update v1.1 (2014/07/11):
- small code optimization


Update from 1.x to 1.2:
- download CP_Update_1.0_to_1.1.zip file
- unpack to an empty folder
- upload unpacked file and replace it in your site\plugins\collageplus. That's all!

My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

mykee

#1
I have a little mod, if you need: collage only on first page, no show on catalog page. (Updated to 1.1 version!)

Open codebase.php, and find this:
// Add filter for page head
$thisplugin->add_action('page_start','collageplus_head');
// Add search display action
$thisplugin->add_filter('plugin_block','collageplus_mainpage');
//Add plus styles for metas
$thisplugin->add_filter('page_meta','collageplus_header_addons');
//Add script to footer
$thisplugin->add_filter('gallery_footer','collageplus_footer_addons');


Replace with:

function collageplus_noindex () {
  global $superCage;
   if ($superCage->get->keyExists('cat') or $superCage->get->keyExists('file')) {
      return "1";
    } else {
      return "0";   
    }
}
$collageplus_noindex = collageplus_noindex();

if ($collageplus_noindex == "0"){
// Add filter for page head
$thisplugin->add_action('page_start','collageplus_head');
// Add search display action
$thisplugin->add_filter('plugin_block','collageplus_mainpage');
//Add plus styles for metas
$thisplugin->add_filter('page_meta','collageplus_header_addons');
//Add script to footer
$thisplugin->add_filter('gallery_footer','collageplus_footer_addons');
}



And here a fix, if you use non-English characters in filename:

Open codebase.php, and find this:
list($width, $height) = getimagesize($collageplus_imgfile);

Replace with:
list($width, $height) = getimagesize(urldecode($collageplus_imgfile));
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

phill104

It is a mistake to think you can solve any major problems just with potatoes.

mykee

Plugin updated, please check first post!
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

mykee

Plugin updated! Changelog and new version in first post!
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php