Textpattern Forum

You are not logged in. Register | Login | Help

#731 2012-01-27 01:44:50

abcdefg
New Member
Registered: 2012-01-27
Posts: 1

Re: smd_slimbox

Hi Bloke!

I have run into a problem with a tag I was using to display images associated with an article on a page.

I was using this code:

<txp:smd_slimbox imagecaption="?caption" imageid="?article_image" />

It was working perfectly, however, for some bizarre reason, this chunk of code won’t sort images properly. For instance, if I have two images with ids 3 and 4, and I use the article_image field in the Write tab and put in “4, 3”.. the images still load up as 3 and 4 on the front-end.

Previously, from what I can remember, I could change the order in the field and it would render the images based on the sort order, but now, it seems to load images in an ascending order based on the image filename (1, 2, 3, etc)

Last edited by abcdefg (2012-01-27 01:45:34)

Offline

#732 2012-01-27 09:44:48

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

Re: smd_slimbox

hi abcdefg

here is your missing attribute:
sort='fixed'

as it says in the plugin help:
fixed forces thumbs to be output in the order given in imageid.

Offline

#733 2012-03-14 10:56:41

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 66
Website

Re: smd_slimbox

Hello Bloke,

I’ve a problem using smd_slimbox. The black overlay doesn’t appear. Everything else is working fine. Can you help me out? I have other websites using this plugin and they’re working fine.

Please have a look at: http://www.dekeuterij.nl/fotoalbum

I’m using Textpattern v4.4.1 – Slimbox2.js v2.04 – Mootools.js

Offline

#734 2012-03-14 11:08:55

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 5,801
Website

Re: smd_slimbox

keukenkikker wrote:

The black overlay doesn’t appear.

That’s normally a symptom of the page not validating. I notice you have validation errors and one of your divs (<div id="image">) is not closed. That might be a place to start looking.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

#735 2012-03-14 11:25:23

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 66
Website

Re: smd_slimbox

Oops. I’ll have a look into that! Thanks!

Sharon

Offline

#736 2012-03-14 13:02:34

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 66
Website

Re: smd_slimbox

Hi Bloke,

I’ve validated the code, there where 2 </div>s missing. I also checked if it had anything to do with the datepicker I use, so I disabled it, but unfortunatly it didn’t solve the problem. Other tips?

Offline

#737 2012-03-14 13:09:36

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 5,801
Website

Re: smd_slimbox

keukenkikker wrote:

Other tips?

My guess is it’s your CSS file. Look at the bottom of the file where the slimbox section is:

/* SLIMBOX */
-----------------------------------------------------------------------------*/
#lbOverlayX {

Two things here:

  1. The trailing */ on the first line is ending the SLIMBOX comment instead of the one at the end of the row of dashes
  2. the ID of the overlay is #lbOverlay not #lbOverlayX

Try fixing those and see if things go better.

Last edited by Bloke (2012-03-14 13:10:05)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

#738 2012-03-14 13:15:01

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 66
Website

Re: smd_slimbox

Solved! It was caused by nr. 1. It’s always the simple one …

(nr. 2 I changed on purpose when I renamed the overlay – also in the script)

Thanks!
Sharon

Offline

#739 2012-04-16 09:58:31

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 513
Website

Re: smd_slimbox

Is it possible to let smd_slimbox render a limited amount of thumbnails (say 3) and clicking each thumbnail will trigger a lightbox in which all the images in a cat (say 20 img) will be shown? Or is it only possible with smd_gallery?

Offline

#740 2012-04-16 10:21:21

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 5,801
Website

Re: smd_slimbox

RedFox wrote:

Is it possible to let smd_slimbox render a limited amount of thumbnails

Nope, sorry: it’s an smd_gallery feature only.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB