Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,250
Website GitHub

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. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

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

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

Re: smd_slimbox

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

Sharon

Offline

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

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
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

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

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,250
Website GitHub

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. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

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

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
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

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

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
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

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

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,250
Website GitHub

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. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#740 2012-09-02 17:27:28

castanet
Member
From: Oxford
Registered: 2005-03-19
Posts: 97

Re: smd_slimbox

Help!

I have had slimbox working for years very happily on a friend’s site and then I noticed a new version of the plugin was available so I updated it and… got this error message:

Fatal error: Call to undefined function: smd_dolist() in /home/www/mydomain.com/textpattern/lib/txplib_misc.php(653) : eval()’d code on line 118

In a panic I pasted back in the old slimbox plugin code which got rid of the error message but now the thumbnails do not appear.

Any help much appreciated

Offline

#741 2012-09-02 17:34:35

castanet
Member
From: Oxford
Registered: 2005-03-19
Posts: 97

Re: smd_slimbox

OK, I’ve got the thumbnails back but would still appreciate any guidance on the error message. Thanks

Offline

#742 2012-10-26 07:53:30

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,250
Website GitHub

Re: smd_slimbox

castanet wrote:

Fatal error: Call to undefined function: smd_dolist()

Sorry I missed this topic. I assume everything is working now but if not, have you installed and activated smd_lib which is a required component of the later versions of smd_slimbox?

Last edited by Bloke (2012-10-26 07:54:44)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#743 2014-01-09 09:47:38

j0nr
Member
Registered: 2013-12-06
Posts: 10

Re: smd_slimbox

Hi,

I am pretty fresh to textpattern. I have used Slimbox on other sites, just by using their own method (a rel attr in a link tag) to make the href of the link open in slimbox.

Can this plugin do that? As in, if I just have a single article and I want to embed an image thats a link to a larger version of that image and have it open in slimbox?

I guess being more specific, can I do the equivalent of this:

<a href=“url/to/large/image.jpg” rel=“lightbox”><img src=“url/to/thumb.jpg”></a>

Especially, using external URLs not textpattern image uploaded IDs?

Thanks.

Offline

#744 2014-04-13 04:15:43

zeraph
New Member
Registered: 2014-04-02
Posts: 9

Re: smd_slimbox

I’ve searched for this but haven’t found— why can’t I use article field codes in the imagecaption attribute? I would love to be able to, if making a gallery of article images, provide a caption with the title of the article, and an array from a custom field associated with that article. Can it be done?

Thanks! Love this plugin and tossed a few dollars in Bloke’s hat for my use of this plugin in almost all of my sites.

Edit: Solved this problem— just need to use single quotes rather than double around the fieldname.

Last edited by zeraph (2014-04-13 05:11:38)

Offline

Board footer

Powered by FluxBB