Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#451 2008-04-06 20:38:02
Re: smd_slimbox
keith wrote:
Now, instead of the expected result, clicking on a thumbnail simply takes me to the full-sized image.
Right, the reason is that since I removed smd_slimbox_inc you now have to include the slimbox scripts yourself on the page. See, smd_slimbox_inc used to handle all the script side of things for you and, while it was a noble idea (I thought) in the beginning, it wasn’t The TXP Way TM and kind of irked quite a few people who wanted to take the slimbox concept up a level. Not to mention it required hacks to make the thumbs into an RSS feed and so forth.
So, in response to the (I think virtually unanimous) response from my poll on the subject I dropped it. What you now need to do is add the scripts manually somewhere in your page <head>. If you have the scripts uploaded in the same place as they were in older versions of smd_slimbox you’d add this:
<script type="text/javascript" src="/js/mootools.js"></script>
<script type="text/javascript" src="/js/slimbox.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="/css/slimbox.css" />
Give that a whirl and the effect should return.
Sorry about the hassle it caused you; perhaps my docs weren’t clear enough, I’ll review them!
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
#452 2008-04-06 21:09:54
Re: smd_slimbox
There ya go!
I’d noted the removal of smd_slimbox_inc but hadn’t actually realised what that would mean in real terms (I’d completely forgotten its usage), and – in Opera – I didn’t get a warning message for using it either.
Not that I care – things are back to normal, for which many thanks.
It might be of interest to others that (same as when I installed smd_slimbox originally) I needed to include “/tp/” in the paths to the scripts and CSS, as in "...src="/tp/js/slimbox.js"></script>"
Thanks again for the fine work and even better support!
Last edited by keith (2008-04-06 21:12:51)
Keith
Blyth, Northumberland, England
Capture The Moment
Offline
#453 2008-04-08 03:47:47
- fangonk
- Member
- Registered: 2007-07-12
- Posts: 44
Re: smd_slimbox
Hey, I love this new update. Im working on getting thickbox to work. Ive linked all the necessary libraries in the head section but I just can’t seem to get it to initiate yet. I feel as if Im probably missing something simple:
<txp:smd_slimbox imageid=”?article_image” showpagelinks=“0” linkclass=“thickbox”/>Any thoughts?
Offline
#454 2008-04-08 08:14:06
Re: smd_slimbox
fangonk wrote:
I feel as if Im probably missing something simple
Hmm, well if you are missing something, I certainly can’t spot it. Your tag is perfect. Do the thumbs show up ok? Is it just the thickbox effect that doesn’t fire?
I tried your exact tag in an article, listed a few image IDs in the article_image and made sure this was in the <head>:
<script type="text/javascript" src="/textpattern/jquery.js"></script>
<script type="text/javascript" src="/scripts/thickbox.pack.js"></script>
<link rel="stylesheet" type="text/css" href="/css/thickbox.css" />
It brought up thickbox ok. However, if I added mootools.js or slimbox.js to the page, it broke: I got some random js errors. Perhaps check you don’t have any other libraries on your page and work up from there? Also, see if you have any js errors in Firebug that might guide you. If you do have both, the libraries are supposed to be able to work side by side; maybe the page just needs the jQuery.noconflict() in order to work.
If none of that helps, do you have a URL you could share?
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
#455 2008-04-08 08:49:00
- fangonk
- Member
- Registered: 2007-07-12
- Posts: 44
Re: smd_slimbox
its just the thickbox which isn’t firing. Here is some sample content I have uploaded for testing purposes: http://richardmagness.com/articles/pigeon-burn/?p=11
The large image at the top should fire off the thickbox but it goes straight to the full-size. I’ve double-checked the head, to make sure all the scripts have been linked correctly. The plugin seems to be correctly wrapping the image with the thickbox class as well.
Offline
#456 2008-04-08 09:48:24
Re: smd_slimbox
fangonk wrote:
its just the thickbox which isn’t firing.
Looks like a missing double-quote at the end of your src attribute for thickbox.js, and perhaps a bogus “smart” curly quote character on the thickbox.css rel attribute line beneath it?
Wicked graphics, btw.
Last edited by Bloke (2008-04-08 09:48:50)
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
#457 2008-04-08 10:30:35
- fangonk
- Member
- Registered: 2007-07-12
- Posts: 44
Re: smd_slimbox
Got it! It was the double-quote. Wicked graphics are nothing without some wicked plugins. Thanks again man, this plugin is really spectacular.
Offline
#458 2008-04-15 23:54:55
- sign
- New Member
- Registered: 2008-03-11
- Posts: 2
Re: smd_slimbox
Hello people.
Sorry for the bad english, porquese guy here.
Is it possible, using this plugin, to generate a text link to an image that, when clicked, opens the image just like it happens with the thumbnails?? using slimbox??
If i’m not wrong, the links generated by this plugin, must appear, always, as thumbnails, right?
Thanks.
André
Offline
#459 2008-04-16 00:03:45
- johnnyxcocktail
- New Member
- Registered: 2008-04-15
- Posts: 3
Re: smd_slimbox
I’ve been trying to run the plug in on my site, but for some reason the slimbox doesn’t work. It displays the thumbnails, but won’t go to lightbox/slimbox mode.
The css & js are linked in the head of the page (I even tried linking them from someone elses page to be sure). Both plug-ins are installed, but nothing… Being new to this whole textpatern thing might have something to do with it… but I’m not willing to give up :-)
If someone sees the problem…
http://www.zendermusic.be/_index.php
Offline
#460 2008-04-16 04:22:27
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: smd_slimbox
You’re using rel="lightbox-smd" – have you tried rel="lightbox" instead?
I’m not familiar with slimbox, but as far as I recall it’s a drop in replacement for the original lightbox script and doesn’t require you to change the rel attribute.
There also appears to be a slight glitch in your css, although I don’t think that would have any effect:
.img_gallery {
padding: 5px px 0px 3px;
}
There’s a missing numeric value for the 2nd px.
Last edited by masa (2008-04-16 04:22:51)
Offline
#461 2008-04-16 07:59:40
Re: smd_slimbox
sign wrote:
the links generated by this plugin, must appear, always, as thumbnails, right?
Yes, that is correct, I’m afraid. I have not yet implemented the text link directly. It can be simulated with some trickery (i.e. making sure the first image in your gallery has no thumbnail, so the Alt Text will be displayed instead and using CSS to “hide” the remaining images). It’s not pretty but it will work.
Alternatively, try smd_gallery instead, since that can do it natively with the text and thumblimit options.
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
#462 2008-04-16 08:13:01
Re: smd_slimbox
johnnyxcocktail wrote:
I’ve been trying to run the plug in on my site, but for some reason the slimbox doesn’t work. It displays the thumbnails, but won’t go to lightbox/slimbox mode.
That is totally weird. The usual thing to happen when slimbox doesn’t fire is that all you get is just the full image displayed in the browser. But you’re not getting anything at all; it’s like something on your page is “ignoring” the image anchor tags. Surreal.
As you say, everything’s linked fine (you are aware you’re using an old version of slimbox, yes? He’s up to 1.4.1 now) and I assume you have the latest mootools installed with all the required modules, as detailed on Christophe’s page there. The generated HTML looks fine to me [btw, masa, the -smd on the end won’t affect the plugin operation. It is the default indicator that can be changed if you want to “group” lightboxed images. Christophe uses square brackets but the validator complains so I changed it to a hyphen].
I’m really stumped with this one. Try commenting out the javascript calls (<txp:hide> is just brilliant!) and see what happens when you then click a thumbnail. If it appears on its own in the page then something in the plugin is causing your anchors to be ignored. I can’t see anything else on the page hijacking the anchors.
Then check the mootools modules and that you have the latest versions of the scripts (including slimbox v0.3 and smd_lib v0.32) and use that. If that doesn’t work, ummm, shout again with your findigns and I’ll see if we can figure out what’s going 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
#463 2008-04-16 11:23:43
- johnnyxcocktail
- New Member
- Registered: 2008-04-15
- Posts: 3
Re: smd_slimbox
Already thanks for the info… Great!
I didn’t have the right mootools modules installed, but still it’s not working. What I did find out is that it’s not the plug in or links that cause the mistake, but that something else on the page has to keep this from working.
If you see this page, where I inserted the line of code with a more basic page setup… it does what it’s supposed to do.
http://www.zendermusic.be/_index.php?s=Live
Yet on the other page lay out, it doesn’t
http://www.zendermusic.be/_index.php
I’m still looking and I will try to see if I can do that txp:hide thing.
Offline
#464 2008-04-16 11:39:19
- johnnyxcocktail
- New Member
- Registered: 2008-04-15
- Posts: 3
Re: smd_slimbox
Well,
I found the problem!!! Looks like it worked after all, but you just couldn’t see it was working because the lightbox was appearing under mij background div.
I’ve set the Z-index of my content layers and background to 0, so now it works.
Another mystery solved!
Adding to this… is there a place where you can change the Z-index of the lightbox?
Offline
#465 2008-04-16 11:54:13
Re: smd_slimbox
have a look at the link of the mootools JS file. the version number changed. maybe this solves the problem
whoops … caching problem … problem already solved :)
Last edited by markusfalk (2008-04-16 11:57:31)
I sometimes destructively reverse engineer my own work and the only help is this forum.
visit me at visiongraphix
Offline