Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#571 2009-01-08 17:13:29
Re: smd_slimbox
curiouz wrote:
the “rel” of the link needs to be in this format: rel=“shadowbox[gallery]”. Is this possible with smd_slimbox?
I’m not sure it is :-(
As a long shot you can try this hack-ish method:
<txp:smd_slimbox trigger="shadowbox[" groupname="gallery]">
Plus all your other attributes as usual. If you’ve only got one gallery per page and all the images are in the same category, that’ll suit you fine. If not — and you want to split your galleries into groups — you might be able to do this, for example, to split by category:
<txp:smd_slimbox trigger="shadowbox[" groupname="?category]">
I think (would like to hope) that my attribute parser realises that the closing ] is not part of the field code you are trying to insert. Totally untested but it can’t hurt to try. If not, smd_gallery will do it for sure as you can define your own rel= directly.
Last edited by Bloke (2009-01-08 17:14:33)
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
#572 2009-01-08 23:00:34
- curiouz
- Member

- Registered: 2006-06-20
- Posts: 56
Re: smd_slimbox
No luck unfortunately :( your attribute parser isn’t so very smart as you hoped it would be. And I can’t use smd_gallery, for I’m using MLP for this project. I’ve tried to use javascript to change the rel attribute content, but shadowbox doesn’t buy it. I’ll have to wait for smd_gallery to be compatible with MLP.
Thanks for the help :D
Offline
#573 2009-01-08 23:52:11
Re: smd_slimbox
curiouz wrote:
No luck unfortunately :( your attribute parser isn’t so very smart as you hoped it would be.
Dammit. Actually, two things I spotted. One: I don’t know how to use my own plugin, it should be ?c not ?category (not that it makes any difference in this case). Two: I just looked at the code and — stupidly — the groupname tag is not actually passed through the smd_lib parser; it’s done, in a limited form, within the smd_slimbox code itself. How retarded. So, no wonder it didn’t work: that plugin attribute sucks, sorry.
And I can’t use smd_gallery, for I’m using MLP for this project.
Well I have a version available that you can use if you like, unofficially. Contact me if you’d like to try it and I’ll sneak you a copy under the table. It won’t be the final version because I want to try and build in one more thing before I release it (and run some more tests). While the planned feature is important for those it affects, only a handful of people will notice so you can probably get away without it.
It’s working spiffingly on my MLP install and has been happily converting gallery alt/caption between English, and my attempts at French and German without a hitch, so I think it’ll work just fine.
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
#574 2009-01-09 13:45:17
Re: smd_slimbox
Just for the record: if you use smd_gallery in tandem with upm_image, it becomes MLP-compatible ;)
Like this:
<txp:variable name="type" value="{type}" />
<div class="image {type} {align}" style="width:{width}px">
<txp:upm_image image_id="{id}">
<img src="{url}" width="{width}" height="{height}" alt="<txp:upm_img_alt />" title="<txp:upm_img_caption />"/>
<txp:if_variable name="type" value="captioned-image">
<small><txp:upm_img_caption /></small>
</txp:if_variable>
</txp:upm_image>
</div>
Let’s move on to smd_gallery thread that I’ve some crazy ideas…
Offline
#575 2009-01-09 13:53:17
Re: smd_slimbox
maniqui wrote:
Just for the record: if you use smd_gallery in tandem with upm_image, it becomes MLP-compatible ;)
Nice one! Thanks for the tip.
btw, since you also have a vested interest in smd_gallery, and 80% of the new features are pretty much down to you, if you’d like to try a pre-release copy, drop me a note. I could do with some feedback before it hits the streets.
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
#576 2009-01-22 16:52:36
Re: smd_slimbox
OK … smd_slimbox is working with Fancy Zoom (from http://www.dfc-e.com/metiers/multimedia/opensource/jquery-fancyzoom/) on this page > www.redfoxtestdrive.nl/txp/hoe-ziet-textpattern-eruit … eh … almost! The overlay doesn’t work … !? Everything is in place … eh, I think. It lookes like there is no overlay image. Or isn’t that the way this kind of thing works! Is there somebody to show me the way?
[edit]
OK … I’ll give it a try at Presentation!
Last edited by RedFox (2009-01-23 15:47:16)
Offline
#577 2009-01-29 00:17:21
- teethmaker
- New Member
- Registered: 2008-07-10
- Posts: 4
Re: smd_slimbox
I’ve been looking all day for the four images required to create the “next” and “previous” buttons and the “loading” gif. I have the plugin installed and working, but these images are missing and seemingly are nowhere to be found. Anyone have any ideas? Also, my understanding is that once i track them down, they just go into the slimboxcss folder, is that right?
Offline
#578 2009-01-29 08:23:34
Re: smd_slimbox
Those GIFs come with the xxxxbox script you’re feeding into the plugin, not the plugin itself.
Keith
Blyth, Northumberland, England
Capture The Moment
Offline
#579 2009-01-29 09:58:30
- teethmaker
- New Member
- Registered: 2008-07-10
- Posts: 4
Re: smd_slimbox
oooookay… It took me forever to figure out what you meant, thinking that I wasn’t feeding any other script into the plugin, and then it clicked for me that the plugin itself was using slimbox, and all I had to do was put the simbox images where they needed to be. Thanks, man!
Offline
#580 2009-01-29 12:19:33
Re: smd_slimbox
yeah, sorry I wasn’t clearer – I was rushing out the door to work – but I’m glad you got there.
Keith
Blyth, Northumberland, England
Capture The Moment
Offline
#581 2009-02-22 07:55:13
- OMGChris
- New Member
- Registered: 2009-02-22
- Posts: 7
Re: smd_slimbox
Hello, I’m having the hardest time implementing thickbox into smd_slimbox.
The slimbox works, just fine as it pulls my imageid from textpattern and displays the thumbnail but I have no idea what to do to get it to fire inside of thickbox.
When I use thickbox outside of smd_slimbox, it works just fine.
I’m just messing around with my latest post at www.omgchris.com. If you’ll notice, the first 2 images are called on using smd_slimbox but they open in the browser. At the very bottom of that first post is a <a> tag that tells that particular image to open in thickbox, which it does perfectly.
What bit of code am I missing from slimbox to get it to open my images in thickbox? I’m read through this entire thread and tried what seemed relevant to my situation but I’m still getting no luck :(
Offline
#582 2009-02-22 12:34:24
Re: smd_slimbox
Well I noticed this at the top of your home page, Chris:
tag_error <txp:smd_slimbox imageid="412" class=“thickbox”/> -> Textpattern Notice: Unknown tag attribute: class on line 605
“Class” isn’t a supported attribute in smd_slimbox.
Stef’s help files that come with his plugins are really exemplary, so I would suggest checking those out and maybe starting by using some of the examples he kindly provides.
Conversely, just try:
<txp:smd_slimbox imageid="412" />
Last edited by keith (2009-02-22 12:36:26)
Keith
Blyth, Northumberland, England
Capture The Moment
Offline
#583 2009-02-22 17:02:58
- OMGChris
- New Member
- Registered: 2009-02-22
- Posts: 7
Re: smd_slimbox
Yeah, I was a bit confused with the class tag. I have removed it but still nothing. No Tag Error but also no thickbox.
Are you speaking of the help files on his site? Like this here?
I did look through that but I’ll scour it even more closely and try and see if I can come across anything. I’m just confused as how to tell smd_slimbox to use thickbox
I think is is where I got confused with the class tag
Some libraries (e.g. Thickbox) simply require an additional class to be set on the image tags.
Last edited by OMGChris (2009-02-22 17:20:28)
Offline
#584 2009-02-22 17:41:26
Re: smd_slimbox
OMGChris wrote:
with the class tag. I have removed it but still nothing. No Tag Error but also no thickbox.
My help info isn’t too clear about how to employ thickbox. Try imgclass="thickbox" or linkclass="thickbox" (I forget where thickbox requires the class to be applied; either in the image tag or the anchor —- the thickbox docs tell you). One of those two attributes will set the class= HTML attribute in the correct place so thickbox will see the images.
Last edited by Bloke (2009-02-22 17:43:29)
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
#585 2009-02-22 18:13:30
- OMGChris
- New Member
- Registered: 2009-02-22
- Posts: 7
Re: smd_slimbox
Bloke wrote:
Try
imgclass="thickbox"orlinkclass="thickbox"(I forget where thickbox requires the class to be applied; either in the image tag or the anchor —- the thickbox docs tell you). One of those two attributes will set theclass=HTML attribute in the correct place so thickbox will see the images.
Sorry I’m so clueless, Bloke, but I’m still confused. I used to just use the default slimbox lightbox but just recently I needed a lightbox that could display iframed content (hence thickbox)
Where exactly does imglcass= "thickbox" or linkclass="thickbox" need to be placed?
would I need to edit all of my existing posts containing <txp:smd_slimbox imageid= "xxx"/> or does the linkclass/imgclass go somewhere in slimbox’s or thickbox’s JScript?
Sorry if I’m making this harder than it needs to be :|
Last edited by OMGChris (2009-02-22 18:16:08)
Offline