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 53702 times)

0 Members and 1 Guest are viewing this topic.

Arminius

  • Coppermine newbie
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 14
    • www.arminius-numismatics.com
Re: Slider animation on album list page for cpg1.5.x
« Reply #40 on: August 02, 2013, 09:10:50 am »

Thanks for the slider, it works great!

(by the way: I did not need to install a second one for my homepage as i incorporated my gallery in a website window.)

tooold

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Slider animation on album list page for cpg1.5.x
« Reply #41 on: October 13, 2013, 12:38:20 pm »

At page 2 in this thread Andre explained how to use this slider on any external page. Does this mean pages outside Coppermine Gallery? Would be great  :D.
If so, may I please ask if someone can explain a bit more about what to put where, I'm not at all familiar to coding. Of course, I do understand where to change the page/folder to my own, but not where to put the files. (The zip file is explained, I'm referring to the other two codes).

If impossible to understand what I mean please ask and I will try to write it different. I'm far from good in english  :-[
Logged

Niecher

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 191
Re: Re: Slider animation on album list page for cpg1.5.x
« Reply #42 on: October 13, 2013, 03:16:45 pm »

Examples how you might use it on every external website:

Code: (inline frame) [Select]
<iframe src="http://yoursite.com/gallery_directory/index.php?file=slider/fetch" width="100%" frameborder="0" /></iframe>
Code: (PHP) [Select]
echo file_get_contents('http://yoursite.com/gallery_directory/index.php?file=slider/fetch');

Hello tooold

If you want to display the slider, in an external page html, use the first code.
If you want to display the slider, in an external page php, use the second code.

Put these codes, in an appropriate line of your html or php document, right where you want to display the slider. Depending on the design of your website and in which position in your document you want.

Regards.
Logged

Niecher

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 191
Re: Slider animation on album list page for cpg1.5.x
« Reply #43 on: October 13, 2013, 03:36:22 pm »

Does this mean pages outside Coppermine Gallery? Would be great  :D.

I forgot to say, Yes

Regards.
Logged

tooold

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Slider animation on album list page for cpg1.5.x
« Reply #44 on: October 14, 2013, 08:49:29 pm »

Works great  :D :D
Thank you so much, Andre for telling about this briljant spolution and Niecher for explaining it perfect and in such an easy way. I feel shame for not understanding that it was two options to choose from.

I use it in a (test) SMF bridged with Coppermine, after not being able to make cmpfetch work like it did about a year ago.

Once again, Andre and Niecher: Thank you!
Logged

Cmaniac

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 40
Re: Slider animation on album list page for cpg1.5.x
« Reply #45 on: March 18, 2014, 10:08:49 am »

I was wondering whether a replacement for ORDER by RAND() in line 100 could be deployed.

ORDER BY RAND() is inefficient (but easy to use) and as my galleries grow, it causes a big hog. Right now the query in line 100

Code: [Select]
  $slider_query = "SELECT * FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE filename like '%.jpg' AND filename not like 'youtube_%' $slider_FORBIDDEN_SET $META_ALBUM_SET ORDER BY RAND() LIMIT $sliderlimit";

takes more than 300ms to finish (4700+ pics), and, considering my gallery loading times (homepage loads in about 2.00s), this is a good waste of time for one DB query..

Not asking, just wondering..
Logged
Pages: 1 2 [3]   Go Up
 

Page created in 0.017 seconds with 22 queries.