Textpattern Forum

You are not logged in. Register | Login | Help

#441 2008-03-19 15:21:39

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

Re: smd_slimbox

Bloke:

I directly modified the “keywords” record in the “txp_lang” table in the db.

Just wanted to let you know.

progre55

Offline

#442 2008-03-27 17:18:21

fangonk
Member
Registered: 2007-07-12
Posts: 44

Re: smd_slimbox

I am using imageid=”?article_image” to display article images using slimbox. However I was wondering if there is any way to override the thumbnail I have uploaded via the textpattern interface and use the actual article image I want to display in the slimbox as the thumbnail as well. Instead of using the normal thumbnail I uploaded, I want to take the fullsize image and scale it down using css (because I am an idiot) and use it as a thumbnail. Does anyone have any suggestions for switching out the article thumbnail for the actual article image?

Last edited by fangonk (2008-03-27 17:29:02)

Offline

#443 2008-03-28 18:54:24

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

Re: smd_slimbox

fangonk wrote:

I was wondering if there is any way to override the thumbnail I have uploaded via the textpattern interface and use the actual article image I want to display in the slimbox as the thumbnail as well.

Not right now, though you can simulate it by resizing the thumbnail to the desired full size (glx_admin_image plugin? lam_dynamic_image?) and using thumb="1" as an attribute to slimbox. Might be too much work though.

Alternatively I could add an option or (if I can figure out the best logic and not make it too confusing) enhance the thumb attribute such that you can decide whether you display the thumbnail and/or the full size image as either the thumb or the full size pic! Let me know if this sounds useful.

I want to take the fullsize image and scale it down using css (because I am an idiot) and use it as a thumbnail.

I assume you don’t mind the resulting degradation in quality… or is that the idea? If you are doing it for image obfuscation or copyright reasons you may be interested in smd_watermark which I’m going to start work on Any Day Soon TM… I hope.


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

Txp Builders – finely-crafted code, design and Txp

Online

#444 2008-03-30 03:17:23

fangonk
Member
Registered: 2007-07-12
Posts: 44

Re: smd_slimbox

Yeah yeah, I know image quality sucks with CSS resize. I was just being lazy. I solved my problem by using the hak article image plugin to assign extra images to each article. That way I can display different images in different places.

Offline

#445 2008-04-01 13:27:00

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

Re: smd_slimbox

I know it’s been a long time, but I finally got round to revamping smd_slimbox to v0.3.

It’s not quite the all-singing, all-dancing mod I had hoped (see smd_gallery for that) but it’s significant in that I back-ported some of the cooler functionality from smd_gallery while retaining as much slimbox-ability as possible.

Some stuff has inevitably changed which means you may have to revisit your tags after upgrading, but I’ve tried to keep annoyances to the minimum. They key changes are subcats and thumb; the other changes will either issue warnings or are converted internally for now.

The new features:

  • Supports glz_custom_fields for even greater flexibility (currently requires a small mod to publish.php but it’s worth it). Many thanks to gerhard for graciously helping me out with his plugin; it is amazing and I’m building that shrine I promised ;-)
  • After overwhelming support from the poll, smd_slimbox_inc has been banished. If you use it, a warning will be issued. Thanks to all who took part
  • Removal of smd_slimbox_inc and libcheck has enabled support for Slimbox, Lightbox, Litebox, Moonbox, Thickbox and perhaps some more besides. Just include your favourite library on the page, check their instructions, give slimbox the necessary details and you’re away
  • catlabel has been removed. With more ? and ! article field codes now available, and the ability to combine them (e.g. ?s-?c) you can now perform the same function as catlabel by using category="article-?id"
  • subcats improved. Now takes an integer “level” that specifies how far down the tree to go. For the same behaviour as before, use subcats="all"
  • showalt/showcaption/altclass/captionclass/textpos have been removed. Use thumbtext, thumbtextwrap and thumbtextclass instead
  • orderby is now called sort in line with other TXP tags, and takes a space-delimited direction modifier instead of the old colon delimiter. orderby is still supported for now and will automatically be converted to the new sort tag but will issue a warning in production/debug modes
  • thumb has changed to allow you to specify whether the full-size image and/or the thumbnail are displayed using the ‘t’ image or not. So you can now swap thumbnail and full-size if you wish, or make them show identical images (thanks fangonk)
  • trigger added. This defaults to “lightbox-” which is what slimbox uses in the rel attribute of the anchors. Other libraries may use other words to identify themselves, so this allows you to modify the string to suit
  • delim added. If you don’t like using a comma as a delimiter, change it. Set delim="|" if using checkboxes and multi-selects with glz_custom_fields
  • navwraptag added so the navigation block can be wrapped in a different tag to the images
  • linkclass added so you can specify a separate class for the image anchors if you wish (thanks marios)

It requires an update to smd_lib v0.32. Note that if you use smd_fuzzy_find you will need to update that as well.

The slimbox plugin help has been revised and (hopefully) shrunk a tad or made clearer. So take it for a spin [ gzipped version ] and let me know how you get on with it.


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

Txp Builders – finely-crafted code, design and Txp

Online

#446 2008-04-04 10:22:33

sisushka
Member
From: Slovakia
Registered: 2007-07-30
Posts: 14
Website

Re: smd_slimbox

Does smd_slimbox work with messy URLs?
Is it possible that messy URLs are the reason why the script does not load? Thumbnails actually do load but when I click any of them, nothing happens. I was trying really hard to figure it out but with no success so far.
I’m using TXP 4.0.5, smd_slimbox 0.26. I have included smd_slimbox_inc.
I’m desperate.

EDTI: I’ve updated and went for smd_slimbox3. It’s solved the problem :)

Last edited by sisushka (2008-04-04 11:22:21)

Offline

#447 2008-04-04 11:33:28

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

Re: smd_slimbox

sisushka wrote:

I’ve updated and went for smd_slimbox3. It’s solved the problem :)

Phew! Thank goodness, because I couldn’t solve your original problem ;-) I thought it worked with messy URLs, but I must admit I’ve never tried it. Mind you, v0.26 had a few issues so it may just have been that. Glad you got it sorted with the latest version.


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

Txp Builders – finely-crafted code, design and Txp

Online

#448 2008-04-04 13:07:56

sisushka
Member
From: Slovakia
Registered: 2007-07-30
Posts: 14
Website

Re: smd_slimbox

Bloke wrote:

Phew! Thank goodness, because I couldn’t solve your original problem ;-) I thought it worked with messy URLs, but I must admit I’ve never tried it. Mind you, v0.26 had a few issues so it may just have been that. Glad you got it sorted with the latest version.

Thanks for latest version, it is literally puuuuuuuurfect :-) However, there’s one little problem that makes wrinkles on my face – I still haven’t figured out how to add class atribute to thumbnail links. I’m using Thickbox.
I’d be glad for any ideas :-)

Last edited by sisushka (2008-04-04 13:08:25)

Offline

#449 2008-04-04 13:49:27

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

Re: smd_slimbox

sisushka wrote:

I still haven’t figured out how to add class atribute to thumbnail links. I’m using Thickbox.

Does adding linkclass="thickbox" work?


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

Txp Builders – finely-crafted code, design and Txp

Online

#450 2008-04-04 13:53:34

sisushka
Member
From: Slovakia
Registered: 2007-07-30
Posts: 14
Website

Re: smd_slimbox

Bloke wrote:

Does adding linkclass="thickbox" work?

Oh yes, it does, I probably didn’t read the documentation properly… Thank you! You’ve just saved a whole bunch of my nerve cells :D

Offline

Board footer

Powered by FluxBB