Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Plugin support
  3. » smd_slimbox

#196 2007-07-28 22:10:47

gluteus
Member
From: Switzerland
Registered: 2007-01-20
Posts: 74

Re: smd_slimbox

Hello Stef

I read nearly every post here. I saw that I’m not the first with my problem.
So, here it is:
I created some gallerys with your great plugin in articles. If I click on the thumbnails in the section, everthing is fine.
Now, I would like to create some navigation. My idea is, for example I create a new article with links to the gallery-articles. I see the thumbnails, but if I click on them, the image will open in the same window without slimbox.
My articles are “live”, I guess it has to do with the “if_individual_article”-thing. Unfortunately I did not understand everything.
Here is an example of a gallery-article (article id=3):
<txp:smd_slimbox category="16_blasio" groupname="?c" orderby="id" />
This will show up correctly in my gallery-section.
Here is my article with the link to the gallery-article:
<txp:permlink id="3">Galerie 1</txp:permlink>
Article shows all thumbnails, but it opens the image “normally” in the browser.
Could you please give me a hint?

Thanks a lot

dave

Offline

#197 2007-07-29 00:20:31

wolle
Member
Registered: 2006-05-04
Posts: 19
Website

Re: smd_slimbox

Doesn’t know if it is a bug:

I want to choose a category, so I do:

<txp:smd_slimbox category="one-two-three" />

But no output! When I rename the category, that it contains only one minus-character (one-twothree) and call slimbox the same way:

<txp:smd_slimbox category="one-twothree" />

I get the (correct) output.

Any ideas?

Btw: Thanks for this nice plugin! :-)

Offline

#198 2007-07-29 08:17:54

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,476
Website GitHub

Re: smd_slimbox

gluteus wrote:

I guess it has to do with the “if_individual_article”-thing.

Maybe yes. It sounds like the libraries aren’t being included on your page. Look at the source code for your individual article and see there are 3 files loaded (mootools.js, slimbox.js and slimbox.css). These are included by the smd_slimbox_inc tag.

Then go to your page with the article link on it and look at the source code. I think you will find those 3 files missing. Make sure you call smd_slimbox_inc on every page you have the possibility of using slimbox – on both article-list and individual-article pages. That should fix it.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#199 2007-07-29 08:27:10

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,476
Website GitHub

Re: smd_slimbox

wolle wrote:

When I rename the category, that it contains only one minus-character (one-twothree) and call slimbox the same way… I get the (correct) output.

Are you using the latest version 0.21b of the smd_lib library?

I thought I fixed that a while ago. I can’t replicate the problem on my test site at the moment (but I’m using newer alpha versions of the code so maybe that’s why).

If it’s not that, let me know which versions of the code and library you are using and I’ll dig deeper.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#200 2007-07-29 09:34:29

wolle
Member
Registered: 2006-05-04
Posts: 19
Website

Re: smd_slimbox

Are you using the latest version 0.21b of the smd_lib library?

Yes: smd_lib version 0.21b, smd_slimbox version 0.25

If it’s not that, let me know which versions of the code and library you are using and I’ll dig deeper.

I like your plugin very much and I’m happy to use it. Thanks for your work!

Offline

#201 2007-07-29 12:54:16

[Axel]
Member
From: Switzerland/Denmark
Registered: 2007-07-26
Posts: 65
Website

Re: smd_slimbox

Bloke I owe you one!

The new version works like a charm, and does exactly what I wonted. the new features are just great.
A big THX also for including me in the plugin code.

Greetz [Axel]


Greetz [Axel]

Offline

#202 2007-07-29 17:55:32

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,476
Website GitHub

Re: smd_slimbox

wolle wrote:

smd_lib version 0.21b, smd_slimbox version 0.25

Aha! Although I couldn’t exactly replicate your problem (I have categories like dan-kate-wedding and it’s fine) if any category contains a number and a hyphen it falls apart. I made some with dates in them like pix-2007-07-29 and it went mental trying to work out the ranges between the 3 numbers.

I’ve patched smd_lib to v0.21c so it now only looks at a range if it is entirely numeric and contains a single hyphen (as it should have done last time I ‘fixed’ it, d’oh!)

That should work for you, but there is one corner case that will still produce weird results; if you have a category named “2007-07” for example it’ll see the two numbers with the dash between them and think it’s a range of values. A temporary fix for this would be to put at least one non-numeric character in the category name, e.g. “p2007-07”.

This is fixable (I need to only allow number ranges in image IDs and not in categories) but it’s quite involved so I’ll save it for the next release. Thanks for spotting the problem. Let me know if it works ok now (or not!)


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#203 2007-07-30 05:44:21

gluteus
Member
From: Switzerland
Registered: 2007-01-20
Posts: 74

Re: smd_slimbox

Bloke schrieb:

Then go to your page with the article link on it and look at the source code. I think you will find those 3 files missing. Make sure you call smd_slimbox_inc on every page you have the possibility of using slimbox – on both article-list and individual-article pages. That should fix it.

I use just one page. I looked in both source codes, they are there.
Here are the examples:
With js function
The same article and same images now as individual article.
Without js function

And they have the same head-section.
Any ideas?

Thanks.

Offline

#204 2007-07-30 07:42:54

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,476
Website GitHub

Re: smd_slimbox

gluteus wrote:

I use just one page. I looked in both source codes, they are there… Any ideas?

Yes: when you specify the attributes for smd_slimbox_inc, make sure you put a / before the directory names. At the moment it is looking for the libraries in textpattern/slimbox/js/ and textpattern/slimbox/css/.

On your galerie index page, that resolves correctly, but when you view the individual article the path resolves to galerie/textpattern/slimbox/js/ and it cannot find the files there.

Try that and let me know how you get on.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#205 2007-07-30 09:49:16

gluteus
Member
From: Switzerland
Registered: 2007-01-20
Posts: 74

Re: smd_slimbox

Of course… I feel so stupid…
It works now everywhere!
Thanks a lot!
dave

Offline

#206 2007-07-31 11:39:05

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,476
Website GitHub

Re: smd_slimbox

Just released a minor update. No new options in the plugin, but the zip package now includes the latest versions of smd_lib (v0.21c), Christophe’s slimbox js/css library (v1.41), and mootools (v1.1). You may also be pleased to hear that the plugin help docs are (finally) easier to read/navigate. Hooray!

If you had issues with white speckled pixelly images in IE or some weird shenanigans with the next/prev slimbox links, or you hated fighting the horrible help file, this is the release for you.

Take v0.25a for a spin, remembering to replace the js/css files as well, and let me know how you get on.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#207 2007-08-03 09:54:17

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: smd_slimbox

Nice plugin, but something’s going wrong. I’ve installed both the plugin and lib, but clicking at thumbnail causes showin the full-size image somewhere down, and not over the page, and there is now darken opacity effect, as it’s shown at http://www.huddletogether.com/projects/lightbox2/ :(
I’ve added example-layout.css to my default css style, but still there is no effect :( What i’ve lost to do?


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#208 2007-08-03 12:04:38

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: smd_slimbox

the_ghost

Please post your page code or the link.

I think I had a similar issue that I may be able to help you with ….

progre55

Offline

#209 2007-08-03 12:24:26

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: smd_slimbox

http://okoshki.by/page.txt – link to my page code

http://okoshki.by/page.txt – link to my css style.

Anything more?


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#210 2007-08-03 12:46:08

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: smd_slimbox

the_ghost

I cannot see your form:

<txp:output_form form="slimbox_inc" />

but it should look similar to this:

<script type="text/javascript" src="http://99.999.99.99/js/prototype.lite.js"></script> <script type="text/javascript" src="http://99.999.99.99/js/moo.fx.js"></script> <script type="text/javascript" src="http://99.999.99.99/js/slideshow.js"></script>

I would probably put it after the css (not sure if it makes a difference, but that is how I do it.)

Make sure you are calling the plugin by:

<txp:smd_slimbox category="fixed, ?id" orderby="title:asc" showpagelinks="0"/>

or something similar to the above …

Finally, inside the page I noticed:

bos_image display …

I would suggest removing/disabling that plug in and seeing if it has any effect … there may be a conflict ….

progre55

Offline

  1. Index
  2. » Plugin support
  3. » smd_slimbox

Board footer

Powered by FluxBB