Textpattern Forum

You are not logged in. Register | Login | Help

#31 2007-02-13 16:13:46

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: smd_slimbox

Stef, any chance of ordering images by id, something like <txp:smd_slimbox image_order_id=“24,26,19,21,25,18,27,28,29,30,20,17,23” />, so that the images are displayed in the order shown.

Or maybe make imageid respect the order of the ids as put into the plugin attribute.

Cheers
Lee

Last edited by lee (2007-02-13 16:17:42)

Offline

#32 2007-02-13 22:19:38

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

Re: smd_slimbox

benjibot wrote:

Undefined variable where on line 276.

D’oh, a misplaced . was causing that. As you say, it was only a warning and caused no functional difference, but it’s nice to have a plugin give no errors even in debug! Thanks for the catch.

lee wrote:

any chance of ordering images by id…

Yes, there is now. It’s stupidly hard (read: awkward) to do. After going to great lengths to keep the order you specify as far as possible in the code, it was always destroyed by the database call itself. According to the docs, by default MySQL will “always display [retrieved data] in the order in which it was stored in the table.” Bah!

But since I know the order you specified stuff in, and keep it that way in the code, I just added an option that trawls through the output from the database and reindexes it in the order you specified! It’s not particularly efficient so with long lists of images you might find performance suffers, but it works. If anybody has any better algorithms, please share…

If you want to run it in this mode, specify orderby="fixed" and a list of images using imageid. It makes no sense (as far as I can see!) to fix the order of stuff specified by category, so this option only works if you add imageid to the mix.

Couple of things to be aware of: if you supply orderby="fixed" as an option with other categories and other orderby clauses, any imageid list you supply will automatically be shown first before everything else. Had to make a decision on this one and figured if you’re going to great lengths to fix the list of images it must be for a reason, so your list wins the supremacy battle. Also note that ‘fixed’ ignores :asc or :desc modifiers :-)

Give v0.21 a whirl and see 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

#33 2007-02-13 22:21:27

joel
Member
Registered: 2004-11-26
Posts: 162

Re: smd_slimbox

I’ve discovered a strange issue on IE6 and 7 recently. The dark png-overlay doesn’t fill the screen when loading the full image. Everything else seems fine though.

Any ideas?

Offline

#34 2007-02-13 22:25:26

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: smd_slimbox

Fantastic!!! Tested and working – many thanks.

Offline

#35 2007-02-13 22:28:49

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: smd_slimbox

joel wrote:

I’ve discovered a strange issue on IE6 and 7 recently. The dark png-overlay doesn’t fill the screen when loading the full image. Everything else seems fine though.

Any ideas?

Works in IE6 for me.

Offline

#36 2007-02-13 22:32:52

joel
Member
Registered: 2004-11-26
Posts: 162

Re: smd_slimbox

I run windows on paralells on a mac. It shouldn´t make any difference though.

Offline

#37 2007-02-13 22:43:35

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

Re: smd_slimbox

joel wrote:

I’ve discovered a strange issue on IE6 and 7 recently. The dark png-overlay doesn’t fill the screen when loading the full image. Everything else seems fine though.

Hmm, not seen it myself. Got a link to show what you mean? It might just be a screen res or driver issue (are you running at, like, 5120×4096 :-p) or another random IE bug to add to the extensive chalkboard.

My guess is, if there is an issue, it’ll be in the slimbox part of the code and not the thumbnail generation part of the plugin. See if anyone’s mentioned it on Christophe’s page or in the forums.


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

Txp Builders – finely-crafted code, design and Txp

Offline

#38 2007-02-13 22:49:27

joel
Member
Registered: 2004-11-26
Posts: 162

Re: smd_slimbox

The site is under construction. I can E-mail you a link if you have the time to have a look… :)

Offline

#39 2007-02-13 22:52:44

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

Re: smd_slimbox

joel wrote:

The site is under construction. I can E-mail you a link if you have the time to have a look… :)

Go for it. I’ll see what I can see see see…


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

Txp Builders – finely-crafted code, design and Txp

Offline

#40 2007-02-13 23:01:38

joel
Member
Registered: 2004-11-26
Posts: 162

Re: smd_slimbox

joel wrote:

The site is under construction. I can E-mail you a link if you have the time to have a look… :)

Bloke wrote:

Go for it. I’ll see what I can see see see…

Thanx man! I truly appreciate it! :)

Last edited by joel (2007-02-13 23:15:57)

Offline

Board footer

Powered by FluxBB