Slider animation on album list page for cpg1.5.x Slider animation on album list page for cpg1.5.x
 

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

Slider animation on album list page for cpg1.5.x

Started by Timos-Welt, January 03, 2009, 12:22:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Timos-Welt

===========
  Slider v0.5
===========


What it does:
--------------

Displays a JavaScript slider of a meta album on album list page, compatible with any modern browser.
This plugin has been created for cpg1.5.x.

=========================================================================

Browser Compatibility
-----------------------

The JavaScript slider is tested and works fine in these browsers:
- IE 6
- IE 6 sp1
- IE 7
- Firefox 1.5 (Win)
- Firefox 2.x (Win)
- Firefox 2.x (Linux)
- Opera 8.x (Win)
- Opera 9.x (Win)
- Opera 9.x (Linux)
- Konqueror 3.5.x
- Safari 3.x (Win)
It probably works fine in many other browsers, too.

=========================================================================

Demo gallery
http://cpg15xdev.spaetbier.de/

=========================================================================

How to install:
---------------

* Download
* Unzip
* Uninstall any previous version via plugin manager
* Upload folder 'slider' into Coppermine's plugins folder
* Go to plugin manager page and install it

How to enable:
--------------

* To enable this plugin, you'll have to add "slider" to "the content of the main page" in coppermine's config in the section "Album list view". The setting should look like "breadcrumb/catlist/alblist/slider" or similar. For details, review the documentation that comes with coppermine (inside the docs folder) in the section "The gallery configuration page" > "Album list view" > "The content of the main page".

How to configure:
-----------------

* Use the additional button 'Slider' in admin menu.

Multiple instances of slider:
-------------------------

* You can only create one instance with this plugin. If you really want a second slider, download 'cpg1.5.x_plugin_slider2ndinstance_v0.5.zip' attached to this post and install as own plugin in parallel. Then add 'slider2' to your content of the album list page. But: Please consider that animating the slider will eat up CPU and slow down your gallery start page, especially with EnlargeIt! and watching videos. Two sliders will be very demanding to the visitor's browser and computer!

SVN:
https://coppermine.svn.sourceforge.net/svnroot/coppermine/branches/cpg1.5.x/plugins/slider/

Download latest SVN snapshot:
http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.5.x/plugins/slider.tar.gz?view=tar

Download from official download page:
http://sourceforge.net/projects/coppermine/files/Plugins/1.5.x/cpg1.5.x_plugin_slider_v0.7.zip/download

=========================================================================

Abbas Ali

I haven't seen the code yet - but if you are not using jquery for slider then you probably would like to do it as cpg15x will be shipped with jquery library in core. You might find ready made jquery plugins for slider.
Chief Geek at Ranium Systems

Timos-Welt

Found a nice one under GPL:
http://jscroller.markusbordihn.de/

I'll see what I can do, but I'll probably wait for the missing parts of the plugin documentation to be finished before I touch the plugin again. For the moment, it works just as it did with CPG 1.4, that's all I wanted to obtain for my plugins before the beta test starts.

Meelis

Ok, i tryed this plugin but in my case it don't work correctly. http://hullumajand.pri.ee try to click on scrolling picture... It just cant find the picture... Also if i try to enter the slider admin menu then it give an error
Fatal error: Class 'Inspekt' not found in d:\www\plugins\slider\plugin_config.php on line 17


What i did wrongly and how to fix it? I am not good in php.  :P

SaWey

Quote from: Meelis on January 09, 2009, 08:19:39 AM
Ok, i tryed this plugin but in my case it don't work correctly. http://hullumajand.pri.ee try to click on scrolling picture... It just cant find the picture... Also if i try to enter the slider admin menu then it give an error
Fatal error: Class 'Inspekt' not found in d:\www\plugins\slider\plugin_config.php on line 17


What i did wrongly and how to fix it? I am not good in php.  :P

Please check which board you are one, this board is for the not released CPG1.5 and you are using 1.4

Timos-Welt

v0.2 (2009/11/11)
-----------------
* added: correct album icon for standard table on album list page
* fixed: pics without intermediate would be displayed incorrectly

Timos-Welt


Timos-Welt

Update to 0.5

v0.5 (2010/01/02)
-----------------
- fixed: plugin didn't work together with other plugins
- reduced animation speed to make IE8 work with it

Joe Carver

Slider does not always seem to hide Private Albums (thumbs) to un-logged visitor.

I have downloaded from svn today just to be sure...

To test/confirm visit with no user privileges:

1) Config setting to show random thumbs

2) Slider shows no private thumbs in ...  index.php - Home Page or album list when clicked from Home Page

3) Pick a thumb, click it, then click "Album list" example....index.php?cat=5

4) You will now see thumbs from Private albums - when clicked will result in error

confirmed with no other plugins running
(this took some time because I had 3 of yours and 3 of mine running together)

mrdee

Just migrating my site from cpg1.4 to 1.5 and noticed a small 'feature' with this plugin.

I've been hunting around to see how this is coded so I could post a solution, but didn't find it yet.  I'd appreciate any hints on where the code is located that adds the "menu icons" into the subject lines on all pages.

Even though I have the "menu icons" option set to "no" it turns them off everywhere except for the subject line in this slider plugin.  Here is the source code taken from my browser:

Quote<td class="tableh1" colspan="1"><img src="images/icons/random.png" border="0" alt="" width="16" height="16" title="Random files" class="icon" />Random files</td>

I can't find where that "random.png" code is added to the page, but notice it is not an icon provided with the plugin, but from the main code.  I wondered if it is theme-related but it happens on all themes.  I toggled the option on/off and it still appears.  I'm suspecting that the menu icons is a new feature in cpg1.5 and that the plugin needs to be coded to be able to handle it being switched on or off.  Please can someone give me a tip where to look?

Thanks in advance.

Timos-Welt

mrdee:
Find in codebase.php
starttable("100%", cpg_fetch_icon($slider_icon[$SLIDERSET['slider_album']],0,$lang_meta_album_names[$SLIDERSET['slider_album']]).$lang_meta_album_names[$SLIDERSET['slider_album']]);
and change to
starttable("100%", '',0,$lang_meta_album_names[$SLIDERSET['slider_album']]).$lang_meta_album_names[$SLIDERSET['slider_album']]);
Does this help?

mrdee

Quote from: Timos-Welt on June 09, 2010, 09:45:03 AM
mrdee:
Find in codebase.php
starttable("100%", cpg_fetch_icon($slider_icon[$SLIDERSET['slider_album']],0,$lang_meta_album_names[$SLIDERSET['slider_album']]).$lang_meta_album_names[$SLIDERSET['slider_album']]);
and change to
starttable("100%", '',0,$lang_meta_album_names[$SLIDERSET['slider_album']]).$lang_meta_album_names[$SLIDERSET['slider_album']]);
Does this help?

Thanks for the help Timos.  I tried it directly and got a syntax error.  I thought it was due to the ")" in the middle of the replacement code.  I removed this and the script works again, but now also without the table text title of "Random Files" which would make it harmonise with the rest of the tables in the page.

lamama

Quote from: Joe Carver on February 16, 2010, 04:40:34 PM
Slider does not always seem to hide Private Albums (thumbs) to un-logged visitor.

Installed your plugin today - it's really nice, but has an privacy problem, as Joe Carver mentioned before.

In the Gallery Root, everything is ok, but when displaying any album, the slider shows pics from non-public albums to guests.

not funny :(


Timos-Welt

What do you mean with "displaying any album"? Link?

lamama

#14
Quote from: Timos-Welt on August 08, 2010, 12:58:14 PM
What do you mean with "displaying any album"? Link?

Sorry, i meant 'category', not album.


I guess it's the same issue that had been posted in February.

User: Guest

http://www.domain.de/cpg/index.php = works fine

http://www.domain.de/cpg/index.php?cat=45
= slider shows the same thumbs I can see on the 'top rated' page when logged in as admin.
for category you can take any category. Tested a few, all the same result.

I checked the $forbidden_set - the query generated by slider - it seems to be ok, so it's really surprising that the result is not.

I'm not comfortable with posting my 'working' gallery link, so you may apply the 'no link, no support' policy here. Anyway, I've already uninstalled the plugin because of the issues. But would really like to see it working right.

CPG 1.5.6, bridged with SMF2RC3

Αndré

Quote from: lamama on August 08, 2010, 03:59:12 PM
I checked the $forbidden_set
I haven't looked at that issue nor at the code. But in cpg1.5.x I always use $RESTRICTEDWHERE in my queries. Maybe that helps.

willy2010

Hi !, I've installed the beautiful slider and works fine but I would like it show the slides ONLY in the main page, like an invitation. When goes to the category, I wish to show ONLY the category's album but NOT the slider that continue to work ! Is't possible to do this ? Thank you a lot and sorry for the disturb. willy

Αndré

Quote from: willy2010 on October 31, 2010, 12:21:35 PM
Hi !, I've installed the beautiful slider and works fine but I would like it show the slides ONLY in the main page, like an invitation. When goes to the category, I wish to show ONLY the category's album but NOT the slider that continue to work ! Is't possible to do this ? Thank you a lot and sorry for the disturb. willy
Open codebase.php, find
// Add search display action
$thisplugin->add_filter('plugin_block','slider_mainpage');
// Add filter for page head
$thisplugin->add_action('page_start','slider_head');

and replace with
if (!$superCage->get->keyExists('cat')) {
    // Add search display action
    $thisplugin->add_filter('plugin_block','slider_mainpage');
    // Add filter for page head
    $thisplugin->add_action('page_start','slider_head');
}

scohen125

This is a really small thing, but I looked at the code in all the files in the slide plugin and I cannot figure out where to change this.  I would like to change the title from 'random files' to 'Sample Images'.  Random Files doesn't sound right on my site, because the slider is displaying images not files and the word random may not make sense too users who are not familiar with the file structure of the site.

I love the plugin.  I think it makes the site.  I put up the theme 'curves' and the site looked OK, but adding the slider makes it look great.  It is the first thing that everyone I show the site to comments on.  So thank you.  I appreciate the plugin.

www.retinagallery.com is my site.

Αndré

If it's not in the plugin code, it probably uses the language file(s) in the lang/ directory. So you'll have to modify either the English language file or hard-code it in the plugin code.