WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.

Donate with PayPal buttonSpenden mit dem PayPal-Button

  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • [*droplet*] microGallery (place Gallery anywhere)
  • Print
Pages: 1 [2] 3 4   Go Down

Author Topic: [*droplet*] microGallery (place Gallery anywhere)  (Read 76838 times)

snark

  • Guest
Re: microGallery *droplet* (place Gallery anywhere)
« Reply #25 on: April 17, 2010, 01:14:31 PM »
updated the browser and I will now keep my big mouth shut ...

 8-)
Logged

SickBoy75

  • Guest
Re: microGallery *droplet* (place Gallery anywhere)
« Reply #26 on: May 18, 2010, 09:30:41 AM »
Hi,

I added a new param 'col' to set the number of columns in default mode.

if not set, the default value for col it's 4

just this code

Code: [Select]
if (isset($col)){ $picsperrow = $col; } else { $picsperrow = 4;} // Set the amount of pics per row
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: microGallery *droplet* (place Gallery anywhere)
« Reply #27 on: August 21, 2010, 03:55:08 PM »
Hello,

due to a request of User 'Kirk' I reworked and cleaned up the whole droplet and expanded the "docu".

I merged all Ideas into this new Version, cleaned up the code and made the error hints "multilanguage".
New Parameters in use for table display and custom css-class.

New Code in the first post:
https://forum.WebsiteBaker.org/index.php/topic,17806.msg118063.html#msg118063

Enjoy!
Stefek
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

kirk

  • Guest
Re: microGallery *droplet* (place Gallery anywhere)
« Reply #28 on: August 21, 2010, 07:13:18 PM »
Hi Stefek,

just great. Thank´s a lot.

Kirk
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: microGallery *droplet* (place Gallery anywhere)
« Reply #29 on: August 21, 2010, 07:24:08 PM »
My plesure, my friend ;-)

Best Regards,
Stefek
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline DJKat

  • Posts: 125
  • Gender: Male
Re: microGallery *droplet* (place Gallery anywhere)
« Reply #30 on: September 22, 2010, 02:25:00 PM »
Great stuff!!! *thumbs up*

What I'm missing is a param to tell the gallery which way to sort the pics...  :|

Dany
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: microGallery *droplet* (place Gallery anywhere)
« Reply #31 on: September 22, 2010, 02:45:09 PM »
Hello and thanks.

Do you have an idea how to implement this?

Which sorting filters to use? Name, when Uploaded, size?

Someone?


Already implemented.


Regards,
Stefek
« Last Edit: December 17, 2010, 07:05:09 PM by Stefek »
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline macsmet

  • Posts: 255
Re: microGallery *droplet* (place Gallery anywhere)
« Reply #32 on: September 22, 2010, 02:52:32 PM »
Hi there,

I use the microGallery a lot because it is so very easy to use!
Lately I noticed that microGallery also shows the other files that is inside the folder.
It doesn't show a preview because these other files are no JPEG but ZIP files.
Is there a way to exclude ZIP files and/or only show JPEG files?

Greetings,

MacSmet
« Last Edit: September 22, 2010, 02:58:46 PM by macsmet »
Logged

Offline DJKat

  • Posts: 125
  • Gender: Male
Re: microGallery *droplet* (place Gallery anywhere)
« Reply #33 on: September 22, 2010, 02:57:14 PM »
Actually I have no idea how to do this...

But when I put it on a page for testing with pics numbered 1 to 35, it shows me pic #20, #31, #33, #26...
Therefor I think it would be great to have the opportunity to tell the gallery to sort them by name. ;)

Dany
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: microGallery *droplet* (place Gallery anywhere)
« Reply #34 on: September 22, 2010, 03:12:45 PM »
Hello MacSmet, yes it can be done.
Will have a look into this.

DJKat,
I will have a closer look into your suggestion, but can't promise to implement this within the next days.

Regards,
Stefek
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline noname8

  • Posts: 151
Re: microGallery *droplet* (place Gallery anywhere)
« Reply #35 on: October 26, 2010, 09:55:21 PM »
This is awesome!!

Used with colorbox this just rules!

Can I somehow change the default text [[microgallery]]
to

[[microGallery?folder=cars&group=cslide]]

?
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: microGallery *droplet* (place Gallery anywhere)
« Reply #36 on: October 26, 2010, 10:23:20 PM »
Hello nn8,

I must apologize, but I don't understand what you're asking for.

Regards,
Stefek
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

jamesypoo

  • Guest
Re: microGallery *droplet* (place Gallery anywhere)
« Reply #37 on: October 31, 2010, 07:17:33 PM »
Hi I was just wondering if you had been able to make it sort images by file name as requested a few posts above? This is a very valuable droplet to me and that one extra feature would make it perfect!

Thanks.
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: microGallery *droplet* (place Gallery anywhere)
« Reply #38 on: October 31, 2010, 07:24:13 PM »
Hello,

there is no option to choose it now.

However, if you have some PHP skills, you may apply the PHP build in sort() function to do this.

Information here:
http://www.php.net/manual/en/function.sort.php

Kind regards,
Stefek
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline noname8

  • Posts: 151
Re: microGallery *droplet* (place Gallery anywhere)
« Reply #39 on: November 01, 2010, 07:51:16 PM »
Quote from: Stefek on October 26, 2010, 10:23:20 PM
Hello nn8,

I must apologize, but I don't understand what you're asking for.

Regards,
Stefek

when I insert the droplet to any page, it outputs a text [[microgallery]]
I'd like to change it to my config wit selected parameters and a sample path.. possible?
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: microGallery *droplet* (place Gallery anywhere)
« Reply #40 on: November 03, 2010, 01:57:16 AM »
Hello,

Did you insert the droplet code to the Droplets Console (Admin Tool)?

If not, you cant use this droplet.
What do you mean with "my config"?

Regards,
Stefek
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: microGallery *droplet* (place Gallery anywhere)
« Reply #41 on: November 03, 2010, 03:45:49 AM »
Quote from: jamesypoo on October 31, 2010, 07:17:33 PM
Hi I was just wondering if you had been able to make it sort images by file name as requested a few posts above? This is a very valuable droplet to me and that one extra feature would make it perfect!

Thanks.

Hello Jamesypoo.

Just updated the microGallery Code (in first post).

This is the change of interest for you:
Code: [Select]
<?php // check sorting
if((isset($sort) && $display == &#39;table&#39;) || (isset($sort) && $display == &#39;all&#39;)){
if($sort==&#39;ASC&#39;) asort($image_show);
if($sort==&#39;DESC&#39;) rsort($image_show);
if($sort==&#39;RANDOM&#39;) shuffle($image_show);
}

Udate the Dropletin your Droplet Console and apply in your [[droplet_call]]

&sort=ASC,
&sort=DESC or:
&sort=RANDOM

Please let me know if this worked for you.

Regards,
Stefek
« Last Edit: November 03, 2010, 05:37:59 AM by Stefek »
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: microGallery *droplet* (place Gallery anywhere)
« Reply #42 on: November 03, 2010, 03:54:28 AM »
Quote from: macsmet on September 22, 2010, 02:52:32 PM
Hi there,

I use the microGallery a lot because it is so very easy to use!
Lately I noticed that microGallery also shows the other files that is inside the folder.
It doesn't show a preview because these other files are no JPEG but ZIP files.
Is there a way to exclude ZIP files and/or only show JPEG files?

Greetings,

MacSmet
Hello MacSmet,

I updated the microGallery (first Post) and the mentioned issue should be handled now.
See also the new implementation of the $sort parameter.

Kind Regards,
Stefek
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline iradj

  • Posts: 353
  • Gender: Male
Re: [*droplet*] microGallery (place Gallery anywhere)
« Reply #43 on: November 04, 2010, 12:23:47 PM »
Hi Stefek,

How can I eliminate a subdirectory in the micro-gallery-directory?

With all the other files .txt, .php etc works very well.

Iradj
Logged

Offline iradj

  • Posts: 353
  • Gender: Male
Re: [*droplet*] microGallery (place Gallery anywhere)
« Reply #44 on: November 05, 2010, 10:14:43 AM »
Is there no solution?

Iradj
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: [*droplet*] microGallery (place Gallery anywhere)
« Reply #45 on: November 05, 2010, 01:36:18 PM »
Lieber Iradj,

ich muss gestern Deinen Post übersehen haben. Entschuldige.

Ich habe das Droplet so angepasst, dass es jetzt funktionieren sollte.
Magst Du es nachprüfen und bescheid geben?

Schönen Gruß,
Stefek
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline iradj

  • Posts: 353
  • Gender: Male
Re: [*droplet*] microGallery (place Gallery anywhere)
« Reply #46 on: November 05, 2010, 02:15:24 PM »
Einfach Spitze. Danke

Iradj
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: [*droplet*] microGallery (place Gallery anywhere)
« Reply #47 on: November 05, 2010, 02:24:24 PM »
You're welcome

(I forgot this is a english thread  :oops: :-P)

Kind regards,
Stefek
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline noname8

  • Posts: 151
Re: [*droplet*] microGallery (place Gallery anywhere)
« Reply #48 on: November 09, 2010, 02:28:02 PM »
There was a problem with sorting:

Your 1.st post has typo:

Quote
&sort Parameter:
Sort ascending, descending or random.
Use:
&order=ASC
&order=DESC
&order=RANDOM
(uppercase)

Should be &sort=  not &order=

But that did not work for me, so I used instead of line asort($image_show);
this one:

Code: [Select]
aksort($image_show);




function aksort(&$array,$valrev=false,$keyrev=false) {
  if ($valrev) { arsort($array); } else { asort($array); }
  $vals = array_count_values($array);
    $i = 0;
    foreach ($vals AS $val=>$num) {
        $first = array_splice($array,0,$i);
        $tmp = array_splice($array,0,$num);
        if ($keyrev) { krsort($tmp); } else { ksort($tmp); }
        $array = array_merge($first,$tmp,$array);
        unset($tmp);
        $i = $i+$num;
        // Fixed from previous post: $i = $num;
    }
}


//from php.net comments, auhor: mike at clear-link dot com


+ Thank you for this great (best) image gallery for wb
« Last Edit: November 09, 2010, 02:30:18 PM by noname8 »
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: [*droplet*] microGallery (place Gallery anywhere)
« Reply #49 on: November 09, 2010, 02:37:27 PM »
Thanks for response,

I will test it later and probably adapt parts of your code.

Should be &sort=  not &order=
Yes, it's obvious, thank you.

Kind regards,
Stefek

Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

  • Print
Pages: 1 [2] 3 4   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • [*droplet*] microGallery (place Gallery anywhere)
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2