Textpattern Forum

You are not logged in. Register | Login | Help

#231 2007-08-30 20:30:38

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

Re: smd_slimbox

Bloke:

Thanks.

Will test and let you know.

progre55

Offline

#232 2007-08-30 22:12:22

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

Re: smd_slimbox

Here’s a new version to take into account the request by Adam_V. Thanks for the idea: I’ve taken it and expanded it, as usual.

v0.28 features the imagecaption attribute which allows you to customise the caption displayed under the main slimbox image (not under the thumbnails… yet).

The docs explain how it all works, but here’s a quick example to give you the gist:

<txp:smd_slimbox category="photos" imagecaption="?caption by esteemed photographer ?author [ ?width x ?height ]" />

might display the following caption under the large full-size slimbox image:

Larks in a birdbath by esteemed photographer Stef [ 640 x 768 ]

The question mark can take pretty much any image database field, i.e. caption (the default), alt, name (the filename), id, ext (extension), author, category, date, width, height. Note that you must surround the ?fieldname with white space or it will not be recognised.

Have fun with it and let me know how you get on.


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

Txp Builders – finely-crafted code, design and Txp

Offline

#233 2007-08-31 16:12:17

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

Re: smd_slimbox

Bloke:

Image Thumb works like a charm.

progre55

Offline

#234 2007-09-04 17:53:58

Adam_V
Member
From: Vancouver, BC, Canada
Registered: 2007-08-22
Posts: 10
Website

Re: smd_slimbox

Thanks Bloke, it works perfectly!

Offline

#235 2007-09-04 21:01:58

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: smd_slimbox

you were looking for a slimbox equivalent for jquery and i think i may have found one.

http://wgilk.com/moonbox.php

the subsequent google code links reads “Moonbox aims to provide a lightweight Lightbox script built using jQuery. It is a clone of Slimbox (http://www.digitalia.be/software/slimbox), by Christophe Beyls.”

it may be of interest to check into! although i’ve already started heavily relying on mootools already for most things :(

Last edited by iblastoff (2007-09-04 21:03:24)

Offline

#236 2007-09-07 11:21:55

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

Re: smd_slimbox

iblastoff wrote:

you were looking for a slimbox equivalent for jquery and i think i may have found one.

Brilliant, thanks! I’ve just downloaded it and I’ll test it later. If it works [ looks like it should edit: it works fine by manually loading the latest jQuery + Dimensions + Moonbox JS + Moonbox CSS and telling smd_slimbox_inc to skip=“3”. The only thing missing I can see are the keyboard shortcuts but I’ve asked about that ] and the author doesn’t mind, I’ll roll it into the package and update smd_slimbox_inc so you all have the option of using mootools if, like you, you’re a heavy mootooler, or the jQuery version if you aren’t.

Long-term I’ll try and get it to interface with my planned implementation of smd_thumbs so it can be a bolt-on module. Watch this space.

Many thanks for the find, iblastoff. Much appreciated.

Last edited by Bloke (2007-09-07 12:58:24)


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

Txp Builders – finely-crafted code, design and Txp

Offline

#237 2007-09-09 07:00:44

Rei
Member
From: MY / SG (GMT +08)
Registered: 2007-08-31
Posts: 14

Re: smd_slimbox

Luckily there would be 2 versions of smd_slimbox, as one of the plugin that i’m using (if i remember correctly) is having conflicts with jQuery. Thank you for all the hardworks.

Offline

#238 2007-09-11 13:58:33

Qwest
Member
From: London, UK
Registered: 2007-01-24
Posts: 112

Re: smd_slimbox

Bloke!!! Halp! lol!

Can slimbox load a category depending on a custom field?

For a website i maintain, they hold monthly events. For the ‘schedule’ page to work, each event needs to be entered with a “2007-09-10” style date in a custom field. Can i use this same custom field to load an image category of the same name? ie: <txp:smd_slimbox category="<txp:custom_field_1 />"> or whatever the custom field tag is?

Hope it does :D

Offline

#239 2007-09-11 15:01:04

ruud
Developer emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 4,545
Website

Re: smd_slimbox

Qwest, you can do this with the asy_wondertag plugin

Offline

#240 2007-09-11 15:37:49

Qwest
Member
From: London, UK
Registered: 2007-01-24
Posts: 112

Re: smd_slimbox

Thanks ruud, i’ll keep that in mind!… That question was only a minor part of the overall plan, and it’s a scary looking plan LOL!..

I’ve got a way round it though, so all is good :D

Offline

Board footer

Powered by FluxBB