Advanced search  

News:

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

Pages: [1] 2 3   Go Down

Author Topic: Slider animation on album list page for cpg1.5.x  (Read 52609 times)

0 Members and 1 Guest are viewing this topic.

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 800
    • Timos-Welt
Slider animation on album list page for cpg1.5.x
« on: January 03, 2009, 12:22:24 am »

===========
   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

=========================================================================
« Last Edit: March 31, 2010, 03:50:55 pm by Timos-Welt »
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Slider animation on album list page for cpg1.5.x
« Reply #1 on: January 03, 2009, 01:55:54 pm »

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.
Logged
Chief Geek at Ranium Systems

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 800
    • Timos-Welt
Re: Slider animation on album list page for cpg1.5.x
« Reply #2 on: January 03, 2009, 03:39:11 pm »

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.
Logged

Meelis

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 12
    • Photo Album
Re: Slider animation on album list page for cpg1.5.x
« Reply #3 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
Logged

SaWey

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1119
    • SaWey.be
Re: Slider animation on album list page for cpg1.5.x
« Reply #4 on: January 09, 2009, 08:37:19 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
Logged

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 800
    • Timos-Welt
Re: Slider animation on album list page for cpg1.5.x
« Reply #5 on: November 11, 2009, 04:53:07 pm »

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

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 800
    • Timos-Welt
Re: Slider animation on album list page for cpg1.5.x
« Reply #6 on: November 13, 2009, 12:14:58 pm »

I've added this one to the SVN as well.
Logged

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 800
    • Timos-Welt
Re: Slider animation on album list page for cpg1.5.x
« Reply #7 on: January 02, 2010, 10:27:31 am »

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
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1498
  • aka 'i-imagine'
    • Home Page
Re: Slider animation on album list page for cpg1.5.x
« Reply #8 on: February 16, 2010, 04:40:34 pm »

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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Slider animation on album list page for cpg1.5.x
« Reply #9 on: June 08, 2010, 04:01:22 pm »

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.
Logged

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 800
    • Timos-Welt
Re: Slider animation on album list page for cpg1.5.x
« Reply #10 on: June 09, 2010, 09:45:03 am »

mrdee:
Find in codebase.php
Code: [Select]
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
Code: [Select]
starttable("100%", '',0,$lang_meta_album_names[$SLIDERSET['slider_album']]).$lang_meta_album_names[$SLIDERSET['slider_album']]);Does this help?
Logged

mrdee

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Slider animation on album list page for cpg1.5.x
« Reply #11 on: June 09, 2010, 12:09:28 pm »

mrdee:
Find in codebase.php
Code: [Select]
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
Code: [Select]
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.
Logged

lamama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 404
Re: Slider animation on album list page for cpg1.5.x
« Reply #12 on: August 08, 2010, 02:49:59 am »

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 :(

Logged

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 800
    • Timos-Welt
Re: Slider animation on album list page for cpg1.5.x
« Reply #13 on: August 08, 2010, 12:58:14 pm »

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

lamama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 404
Re: Slider animation on album list page for cpg1.5.x
« Reply #14 on: August 08, 2010, 03:59:12 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
« Last Edit: August 08, 2010, 04:11:58 pm by lamama »
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Slider animation on album list page for cpg1.5.x
« Reply #15 on: August 11, 2010, 12:31:47 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.
Logged

willy2010

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: Slider animation on album list page for cpg1.5.x
« Reply #16 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Slider animation on album list page for cpg1.5.x
« Reply #17 on: November 01, 2010, 12:14:06 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
Code: [Select]
// 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
Code: [Select]
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');
}
Logged

scohen125

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 84
    • Retina Gallery
Change title from 'random files' to 'Sample Images'
« Reply #18 on: November 07, 2010, 12:09:01 am »

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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Slider animation on album list page for cpg1.5.x
« Reply #19 on: November 07, 2010, 11:35:32 am »

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.
Logged
Pages: [1] 2 3   Go Up
 

Page created in 0.027 seconds with 22 queries.