Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: 1 2 [3] 4   Go Down

Author Topic: Slider in Coppermine  (Read 88922 times)

0 Members and 1 Guest are viewing this topic.

JohannM

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 252
Re: Slider in Coppermine
« Reply #40 on: August 01, 2008, 02:52:32 pm »

Hi

Another question, how can I include all pictures from all albums ?

Thanx yet again
Logged

Fabricio Ferrero

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 1996
  • From San Juan, Argentina, to the World!
    • http://fabricioferrero.com/
Re: Slider in Coppermine
« Reply #41 on: August 01, 2008, 07:21:49 pm »

Use the code from the very first post of this topic.  ;)
Logged
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

JohannM

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 252
Re: Slider in Coppermine
« Reply #42 on: August 01, 2008, 10:37:50 pm »

I managed to get the size right.  This slider realy slows down the website ? Or is it just me ?

Logged

stardust

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
Re: Slider in Coppermine
« Reply #43 on: August 02, 2008, 08:51:00 am »

Does this work well in all size galleries? Because I read the "Random files" feature doesn't fit well in big galleries & my gallery has 17,000+ pics in it so far.

I'm considering using this Mod but I don't want it to lag anyone's computer
Logged

JohannM

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 252
Re: Slider in Coppermine
« Reply #44 on: August 14, 2008, 08:57:33 pm »

Hi

I have a problem with this slider now.

It show with firefox, but not internet explorer !!

Strange though, is when I run the test in internet explorer and firefox, it works, but in my theme it works only with firefox.

Live: http://www.youth-sport-fotos.com/2008/index.php
Test:http://www.youth-sport-fotos.com/2008/slider2.php

Any suggestions ???
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Slider in Coppermine
« Reply #45 on: August 14, 2008, 11:59:28 pm »

Upgrade! Your version: cpg1.4.10. Most recent stable release: cpg1.4.19. You're running 9 versions behind. This is not a question of personal taste! Upgrading is mandatory in terms of security as well as functionality.
Logged

lineart

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 61
IDENTICAL height
« Reply #46 on: November 24, 2008, 03:37:21 pm »

Excuse,
I have not understood - as I can make all images of IDENTICAL height. That is to use crop for "portrait" images?

(I not php the programmer))))
Thanks for a prompt reply)))
Logged

lineart

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 61
Re: Slider in Coppermine
« Reply #47 on: November 24, 2008, 05:32:13 pm »

If I change the maximal height of the image
All images "are cut off" on the bottom edge and unequal height.

 ??? ??? ???
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Slider in Coppermine
« Reply #48 on: November 25, 2008, 09:11:39 am »

Are you actually looking for support of the slider mod? I doubt it: if all your thumbnails are meant to have the same height, you specify the corresponding option in coppermine's config. Slider just uses the images that already exist - it doesn't create fresh ones.
Logged

lineart

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 61
Re: Slider in Coppermine
« Reply #49 on: November 25, 2008, 01:43:56 pm »

Yes, I understand, that existing images are used.
But it is possible to make certain "container" for slider that the visible (!) height of images was identical.

In the existing version "alignment" of pictures goes on the top edge. And cutting the bottom edge which is already(!) leveled.

I not the programmer))) Excuse, if it was not absolutely clearly expressed)))
Logged

jake

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Slider in Coppermine
« Reply #50 on: December 08, 2008, 05:27:37 pm »

Any possibility of getting your fantastic mod to work with Timos-Welt's "EnlargeIt!"? see: http://forum.coppermine-gallery.net/index.php/topic,53290.0.html
Thanks for your time!
- Jake
Logged

doffer

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Slider in Coppermine
« Reply #51 on: January 14, 2009, 03:01:25 pm »

I use the code in the first without any change thanks for this mod very nice

only one thing : the size of the index page is not any more good ... too big and I must scroll

any idea?

sorry for my bad english
Logged

onthepike

  • Guest
Re: Slider in Coppermine
« Reply #52 on: January 25, 2009, 05:00:11 pm »

The mod works great with pictures, however my gallery also includes AVI, MP4 and MOV video files. These files have no thumbnail associated with them as individual files -- they each share the file type's generic thumb. This results in a "RED X" scrolling across the screen.

So, my questions are: is it possible to exclude certain filetypes? Or is it possible to include only one file type (JPEG)?

Thanks!
Logged

hobert

  • Contributor
  • Coppermine novice
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 29
Re: Slider in Coppermine
« Reply #53 on: January 26, 2009, 09:58:59 pm »

Yes, I understand, that existing images are used.
But it is possible to make certain "container" for slider that the visible (!) height of images was identical.

In the existing version "alignment" of pictures goes on the top edge. And cutting the bottom edge which is already(!) leveled.

I not the programmer))) Excuse, if it was not absolutely clearly expressed)))

Well, I also wanted all the shots to be the same height.  Here are my changes in the slider.php file.

First, after
Code: [Select]
if ($image_size['height'] > $max_height) {
$max_height = $image_size['height'];
}
I added
Code: [Select]
      //pick thumb unless smaller than $max_height, if so pick normal
      $prefix = "thumb_";
            if ($image_size['height'] < $max_height) {
            //check if normal exists, if not pick original file
            $file="albums/".$row['filepath']."normal_".$row['filename'];
                 if (file_exists($file)) {
          $prefix = "normal_";
                 } else {
          $prefix = "";
                 }
}

This will pick the thumb, unless the thumb is smaller than $max_height.  In that case it will pick the normal_ photo unless it doesn't exist, in that case it will pull the original file.

Later, I changed
Code: [Select]
// path of pic
$file="albums/".$row['filepath']."thumb_".$row['filename'];
to
Code: [Select]
// path of pic
$file="albums/".$row['filepath'].$prefix.$row['filename'];
so that the correct picture is pulled and
Code: [Select]
// link of pic
  $lien="<a href=\"displayimage.php?album=random&cat=0&pos=-$key\"><img src=\"".$file."\" border=0></a>";
is replaced with
Code: [Select]
// link of pic
  $lien="<a href=\"displayimage.php?album=random&cat=0&pos=-$key\"><img src=\"".$file."\" border=0 height=".$max_height."></a>";
so that all pictures have the same height.

I haven't had much time to test really well, but on a cursury glance it seems to be working.  You can see how it looks at http://www.hobert.net/gallery/slider.php while I am playing with it.  Looks like a really, really fun mod.

Note: as a fun thought experiment, change $max_height from "0" to something larger like "200"...
Logged

hobert

  • Contributor
  • Coppermine novice
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 29
Re: Slider in Coppermine
« Reply #54 on: January 26, 2009, 10:15:18 pm »

The mod works great with pictures, however my gallery also includes AVI, MP4 and MOV video files. These files have no thumbnail associated with them as individual files -- they each share the file type's generic thumb. This results in a "RED X" scrolling across the screen.

So, my questions are: is it possible to exclude certain filetypes? Or is it possible to include only one file type (JPEG)?

Thanks!

You might can try modifying
Code: [Select]
// request of your database
$query = "SELECT * FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' ORDER BY RAND() LIMIT $limit";
with
Code: [Select]
// request of your database
$query = "SELECT * FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' WHERE filename LIKE '%.jpg' ORDER BY RAND() LIMIT $limit";
which is shamelessly stolen from Timos-Welts' excellent flow_link mods.
Logged

hobert

  • Contributor
  • Coppermine novice
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 29
OOPS!!!
« Reply #55 on: January 26, 2009, 10:18:44 pm »

My bad ^^^^^^^^^^^^

That should be
Code: [Select]
// request of your database
$query = "SELECT * FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' AND filename LIKE '%.jpg' ORDER BY RAND() LIMIT $limit";

Sorry.
Logged

onthepike

  • Guest
Re: Slider in Coppermine
« Reply #56 on: January 30, 2009, 04:41:46 pm »

Thanks for the help -- it works just fine!
Logged

Alcor

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
    • Cosas de Agapornis
Re: Slider in Coppermine
« Reply #57 on: July 21, 2009, 08:59:27 am »

Hi,

Since I upgraded coppermine to last version, I'm having problems with this plugin. When I click an image, a critical error is showing:

"There was an error while processing a database query"

do I forgot something in installation? Does it works with coppermine version 1.4.25?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Slider in Coppermine
« Reply #58 on: July 21, 2009, 09:46:52 am »

You already have an open thread about the identical issue - don't cross-post nor double-post. Stay out of this thread and stick to the other thread you have.
The plugin should work with all versions of cpg1.4.x
Logged

Alcor

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
    • Cosas de Agapornis
Re: Slider in Coppermine
« Reply #59 on: July 21, 2009, 12:28:05 pm »

Sorry Joachim, but I think this is an error where the slider plugin can't to access the database, while the other open is due to javascript.
Logged
Pages: 1 2 [3] 4   Go Up
 

Page created in 0.029 seconds with 20 queries.