Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog Plugins
November 21, 2009, 05:24:18 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Maintenance release cpg1.4.25 - upgrade recommended
The Coppermine development team is releasing an update for Coppermine in order to fix an issue with http uploads that could occur in particular versions of PHP.The fix is not security-critical, so if your gallery is running fine with cpg1.4.23 or cpg1.4.24 you don't need to upgrade. If you are running an older version than cpg1.4.23, you must update to this latest version as soon as possible because of the security impact (the past few maintenance releases before cpg1.4.24 all were security-related).
[more]
   Home   Help Search Board rules Login Register  
Pages: [1] 2 3 4 5 ... 7   Go Down
  Send this topic  |  Print  
Author Topic: Slider (Javascript slider on album list page)  (Read 38371 times)
0 Members and 1 Guest are viewing this topic.
Timos-Welt Topic starter
Dev Team member
****
Gender: Male
Germany Germany

Posts: 450



WWW
« on: March 22, 2008, 02:50:45 pm »

===========
   Slider v2.12
===========


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

Displays a JavaScript slider of a meta album on album list page, compatible with any modern browser. Can use EnlargeIt! plugin to display the pictures.
This plugin has been created for cpg1.4.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:
------

http://cpgdev.timos-welt.de/cpg1416

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

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

* Download v2.11
* Unzip
* Uninstall any previous version via plugin manager
* Upload folder 'slider' into Coppermine's plugins folder
* Go to plugin manager page and install it
* Empty your browser cache

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.

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

Credits:
--------

This plugin is written by Timos-Welt (http://www.timos-welt.de) based on the "Slider mod" by pbasmo for cpg1.4.x.
The plugin legally uses Javascript code "Conveyor belt slideshow script" by Dynamic Drive DHTML code library (www.dynamicdrive.com).
Parts of the code are adapted from the great CPG plugins 'Onlinestats' and 'Highslide' by Nibbler and Sami.
Don't try to contact the plugin author for support - post on the board publicly instead.

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

Change log:
-----------


v2.12 (2008/12/11)
------------------
fixed: IE would display unwanted tooltips

v2.11 (2008/11/18)
------------------
Fixed global use of $matches in mainpage function.

v2.10 (2008/11/05)
------------------
EnlargeIt! can now be used to play youtube movies, though these will not appear as thumbs in slider

v2.09 (2008/09/11)
------------------
fixed a bug with invalid XHTML (double IDs) if not enough pics available for slider width

v2.08 (2008/07/26)
------------------
fixed a bug where slider in an empty category could lock the webserver

v2.07 (2008/07/15)
------------------
fixed a css issue

v2.06 (2008/07/11)
------------------
bugifx: slow animation in firefox under certain circumstances

v2.05 (2008/07/10)
------------------
* faster reaction on mouseclick with EnlargeIt!
* zoom mouse cursor with EnlargeIt!
* Javascript functions now in seperate js file for faster loading times

v2.03 (2008/06/30)
------------------
better integration with EnlargeIt - slider stops now while enlarging and shrinking

v2.02 (2008/06/30)
------------------
fixed: short flickering at page load

v2.01 (2008/06/27)
------------------
fixed: resizing wouldn't work when slider auto-width enabled and EnlargeIt! darkening was used

v2.00 (2008/06/16)
------------------
Now uses EnlargeIt! plugin engine

v1.73 (2008/05/11)
------------------
* New EnlargeIt! version 0.94 fixes two bugs
* Dutch language file added (thanks Hein)

v1.72 (2008/05/09)
------------------
* Fixed a bug where pics wouldn't be displayed when no intermediate pic had been
  generated when using EnlargeIt!
* New EnlargeIt! version 0.93 with more options

v1.71 (2008/05/05)
------------------
* fixed a small display bug in IE when 'Auto fit slider width' is set to 'no'
  and 'Slider align' set to 'center' or 'left'

v1.7 (2008/05/03)
-----------------
* new option 'Auto fit slider width' (experimental)
* new EnlargeIt! animation mode 'bump-glide'
* new EnlargeIt! version 0.92

v1.61 (2008/04/19)
------------------
* bug fix: slider wouldn't work with EnlargeIt! turned off

v1.6 (2008/04/18)
-----------------
* much better optics when enlarging the pics
* new option 'Show caption'
* new options 'Shadow' / 'Shadow size' / 'Shadow intensity'
* improved JS performance
* Enlarge to normal size or full size pic (selectable)
* improved stability in gallerys with pics of very different sizes

v1.52 (2008/04/16)
------------------
* now out of the box compatible with Highslide, Slider and most other Javascripts
* improved flickering in glide mode when EnlargeIt! is used
* slighter codebase, improved performance

v1.51 (2008/04/14)
------------------
* too much german in english language file - 'yes' and 'no' shouldn't be
  'ja' and 'nein' Wink
* new EnlargeIt! version with drop shadow, now packed only 7,3 KB

v1.5 (2008/04/12)
-----------------
* new option to select meta album (random files, last additions,
   most viewed, top rated)
* now works as intended in multi-user galleries
* EnlargeIt! integration
* if there's not enough pics in a category, they will be repeated to give
   at least 5 pics to prevent the Slider animation from crashing

v1.2 (2008/03/24)
-----------------
* new feature 'Slider align' (left, center, right), so it's adaptable to many more themes now
* now 100% valid XHTML 1.0, had to give up Netscape4 compatibility for that
* much faster, slighter code
* fixed few little bugs

v1.1 (2008/03/23)
-----------------
* fixed few little bugs
* new feature 'skip pics in portrait mode'

v1.0 (2008/03/22)
-----------------
* initial release

* slider_for_cpg1_4_x_v212.zip (19.63 KB - downloaded 841 times.)
« Last Edit: December 11, 2008, 06:10:03 pm by Timos-Welt » Logged
Timos-Welt Topic starter
Dev Team member
****
Gender: Male
Germany Germany

Posts: 450



WWW
« Reply #1 on: March 22, 2008, 03:27:32 pm »

To do for next version v1.3:
- Possibility of more than one slider on page
« Last Edit: April 12, 2008, 10:57:50 pm by Timos-Welt » Logged
Pascal YAP
Dev Team member
****
Gender: Male
Armenia Armenia

Posts: 3791


He's me, and She's Moon


WWW
« Reply #2 on: March 22, 2008, 04:54:09 pm »

Hi Timos-Welt,
 Here is FRENCH.PHP lang file

Note : in codebase.php i need to change line 17 like that :
include_once ('./slider/include/init.inc.php');

Our French user PBasmo will be probably very proud about your work  Grin
Thank's

PYAP

* french.php.txt (1.58 KB - downloaded 276 times.)
« Last Edit: March 22, 2008, 05:56:53 pm by Pascal YAP » Logged

! Pas de PM please ! No PM s'il vous plait !
Timos-Welt Topic starter
Dev Team member
****
Gender: Male
Germany Germany

Posts: 450



WWW
« Reply #3 on: March 22, 2008, 05:09:38 pm »


Quote
Our French user PBasmo will be probably very proud about your work

I hope so - that's why he gets a lot of credits inside the code and the readme.  Smiley

Quote
Note : in codebase.php i need to change line 17 like that :
include_once ('./slider/include/init.inc.php');

Here is FRENCH.PHP lang file

Thanks for that, I've fixed that in the ZIP file and added the french language.

Timo
« Last Edit: March 22, 2008, 07:05:27 pm by Timos-Welt » Logged
Pascal YAP
Dev Team member
****
Gender: Male
Armenia Armenia

Posts: 3791


He's me, and She's Moon


WWW
« Reply #4 on: March 22, 2008, 08:57:58 pm »

Hello Timos-Welt,

Weird issue !
When i'm in Admin Mode all work clearly.
In Admin Mode and Admin-User Style it's OK too.

But in true User Mode, there is an access problem : There was an error while processing a database query.

Investigate....


Other :

In PLUGIN_CONFIG.PHP no need to add PX for Title !
 <input id="slider_title" name="slider_title" type="text" value="<?php echo $SLIDERSET['slider_title']?>"> px

PYAP
« Last Edit: March 23, 2008, 10:03:42 pm by Pascal YAP » Logged

! Pas de PM please ! No PM s'il vous plait !
Timos-Welt Topic starter
Dev Team member
****
Gender: Male
Germany Germany

Posts: 450



WWW
« Reply #5 on: March 22, 2008, 09:25:24 pm »

Please look in slider.php for line

Code:
$query = "SELECT * FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE filename LIKE '%.jpg' $FORBIDDEN_SET ORDER BY RAND() LIMIT $limit";

Sounds to me as if "AS p" was missing (the very first version I uploaded had this error, but I corrected it 3 minutes later).

If the line is exactly like above, you could replace it (just for a test) with

Code:
$query = "SELECT * FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' ORDER BY RAND() LIMIT $limit";

BTW: What's 'Skip portrait mode pics' in french?

Timo
« Last Edit: March 22, 2008, 09:45:41 pm by Pascal YAP » Logged
Pascal YAP
Dev Team member
****
Gender: Male
Armenia Armenia

Posts: 3791


He's me, and She's Moon


WWW
« Reply #6 on: March 22, 2008, 09:45:29 pm »

Quote
you could replace it (just for a test)
I'll Try it tomorow, i'm not on my TestMachine...

Quote
"Skip portrait mode pics' in french?"
Depend about context !
I think : "Ignorez les images verticales".

Maybe you can add "Skip Horizontal pics" (in FR " Ignorez les images horizontales")

PYAP
Logged

! Pas de PM please ! No PM s'il vous plait !
Timos-Welt Topic starter
Dev Team member
****
Gender: Male
Germany Germany

Posts: 450



WWW
« Reply #7 on: March 23, 2008, 02:23:00 am »

Hi Pascal,

Quote
When i'm in Admin Mode all work clearly.
In Admin Mode but User Style it's OK too.

But in true User Mode, there is an access problem : There was an error while processing a database query.

I've found the problem. If v1.1 doesn't work for you either, another mod/script that queries the database is modifying the global variable $FORBIDDEN_SET. Find the modification and correct it, you find the information you need in this thread:
http://forum.coppermine-gallery.net/index.php/topic,6819.0.html

regards
Timo
« Last Edit: March 23, 2008, 02:46:05 am by Timos-Welt » Logged
Timos-Welt Topic starter
Dev Team member
****
Gender: Male
Germany Germany

Posts: 450



WWW
« Reply #8 on: March 23, 2008, 07:09:27 pm »

I have just released v1.2.

As far as no show stopper bug is found, this will be the last version for some time. Have fun with it.

Have fun  Wink
Timo
Logged
Pascal YAP
Dev Team member
****
Gender: Male
Armenia Armenia

Posts: 3791


He's me, and She's Moon


WWW
« Reply #9 on: March 23, 2008, 10:02:15 pm »

Timos-Welt,
Quote
this will be the last version for some time. Have fun with it.
That's right. Your Slider 1.2 work as expected on various machines and browsers.
Nice work  Grin

In some days, i will translate your Topic to our French board.
Thank's.

PYAP
Logged

! Pas de PM please ! No PM s'il vous plait !
ngul
Coppermine newbie

Posts: 13


« Reply #10 on: March 23, 2008, 10:08:26 pm »

Hi Timos, your plugin is very cool!!!  Smiley
If i want put the sliders in top of a homepage, what type of html code (or php) put in the body of index.html file? (after plugin installed, obviously)

Regards
ngul
Logged
martinkatz
Coppermine newbie

Posts: 7


« Reply #11 on: March 24, 2008, 04:55:18 am »

Great Job!!
Spanish translation attached

* spanish.zip (0.88 KB - downloaded 237 times.)
Logged
Timos-Welt Topic starter
Dev Team member
****
Gender: Male
Germany Germany

Posts: 450



WWW
« Reply #12 on: March 24, 2008, 11:23:02 am »

Thanks martinkatz,

I've added the spanish translation to the 1.2 ZIP.

regards
Timo
Logged
Timos-Welt Topic starter
Dev Team member
****
Gender: Male
Germany Germany

Posts: 450



WWW
« Reply #13 on: March 24, 2008, 12:23:45 pm »

If i want put the sliders in top of a homepage, what type of html code (or php) put in the body of index.html file? (after plugin installed, obviously)

Regards
ngul

This thread deals with the PLUGIN for Coppermine. I think this thread about the MOD the plugin is based on will answer your questions:
http://forum.coppermine-gallery.net/index.php/topic,41197.0.html

Have fun  Wink
Timo
Logged
ngul
Coppermine newbie

Posts: 13


« Reply #14 on: March 24, 2008, 08:34:02 pm »

Thank you for reply, i've solved!!!

For your great plugin, i've translated in Italian...and attached!!  Wink

p.s.: rename file in italian.php

* italian.php.zip (1.64 KB - downloaded 196 times.)
Logged
Timos-Welt Topic starter
Dev Team member
****
Gender: Male
Germany Germany

Posts: 450



WWW
« Reply #15 on: March 24, 2008, 10:31:55 pm »

Thanks ngul.

I've added the italian translation to the 1.2 ZIP.

Have fun  Wink
Timo
Logged
jake
Coppermine novice
*
Posts: 21


« Reply #16 on: March 26, 2008, 03:09:48 am »

Great plugin!
Any hope of getting Slider v1.2 to work with Highslide v3.02?  I have both on my album page, but the Slider plugin doesn’t have the Highslide functionality.
http://woodardphotos.net/coppermine
Also FYI . . . with Firefox (v2.0.0.12), the slider stops scrolling when the cursor moves on any part of the browser window (as opposed to the slider scrolling stopping only when the cursor is over the slider feature).  This does not happen in IE7.
Thanks for your time.
- Jake
Logged
Timos-Welt Topic starter
Dev Team member
****
Gender: Male
Germany Germany

Posts: 450



WWW
« Reply #17 on: March 26, 2008, 03:34:06 pm »

Hi jake,

Coppermine 1.4x doesn't have an JS onload table. This means, you can't use more than one Javascript, that includes a line like this:
Code:
window.onload=....;

The plugins I know of, that won't work with each other ATM are:
- Highslide
- Slider
- Imageflow

There's only one way to solve this: The plugins must register their onload calls in a central instance.

There could be two solutions for that:
1. The developers include a mechanism for plugins to register their onload functions in a database table, and on which pages to call them. A few lines PHP read the table and call these functions one after the other with a single window.onload call.
2. Someone codes a "JavaScript OnLoader" plugin for the same purpose.

The second solution is nearest, but has a few disadvantages:
- Users would have to install the "JavaScript OnLoader" plugin separately, otherwise their plugins won't work at all.
- The "JavaScript OnLoader" plugin has to be installed before the first plugin is installed that needs it.
- Such a plugin would need an HTML filter function that slows down performance.

So I hope, some of the developers read this and think about this feature for CPG 1.5.

At this point of time, I can't help you - there's only one way to make these plugins work together ATM: Hack them.

regards
Timo
Logged
Nibbler
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19445



WWW
« Reply #18 on: March 26, 2008, 03:40:16 pm »

Instead of window.onload = function you should use window.addEventListener('load', function, false);
Logged

I don't care about what they say, I won't live or die that way.
Timos-Welt Topic starter
Dev Team member
****
Gender: Male
Germany Germany

Posts: 450



WWW
« Reply #19 on: March 26, 2008, 04:07:03 pm »

Hi Nibbler,

quite some browsers don't support window.addEventListener, but nearly all of them support window.onload. Using it would stop many browsers working (e. g. Mozilla < 2, IE<6, Safari<3).

On the other hand: Someone who uses such an old browser won't probably have fun with these plugs at all...

regards
Timo
Logged
Pages: [1] 2 3 4 5 ... 7   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.057 seconds with 17 queries.