Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Plugin support
  3. » smd_slimbox

#511 2008-06-14 09:04:42

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,497
Website GitHub

Re: smd_slimbox

strawberryfusion wrote:

It still jumbles everything, anything else I can try?

Hmm, are you using the latest v0.31? I updated the sort="fixed" to work with categories a couple of days ago.

Also, when you say “jumbled”, what do you mean exactly, i.e. what do you expect to see? Are they just not showing up in category order? Or do you mean they are all in one block and not separated into different groups? If you mean the latter then it’s because that’s the way the plugin works. It gets all images from all categories you specify and lumps them together into a gallery, sorting them by whichever method(s) you choose. If you want to separate each category into its own block on the screen you’ll need to use some of the onchange functionality to group them and insert some heading around each block (example 6 in the plugin help).


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

#512 2008-06-14 11:31:13

strawberryfusion
Member
Registered: 2005-07-24
Posts: 20

Re: smd_slimbox

Hi,

Yes I updated to the latest v0.31 but i’ll remove it and re-install it.

Sorry for my unclear explanation of “jumbled”. What happens is that the images do not show in this order:

leather-beds, metal-beds, wooden-beds, bedroom-furniture, sofas,headboards

You get something like this:

headboards, bedroom-furniture, leather-beds, headboards, metal-beds, wooden-beds

Now if I remove sort from the code then the images display in this order and without a category being broken up, no matter which order they are written:

headboards, sofas, bedroom-furniture, wooden-beds, metal-beds, leather-beds

So they all display correctly but I just want to order the categories like this:

leather-beds, metal-beds, wooden-beds, bedroom-furniture, sofas,headboards

Thanks

Last edited by strawberryfusion (2008-06-14 13:31:17)

Offline

#513 2008-06-14 13:55:02

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,497
Website GitHub

Re: smd_slimbox

@strawberryfusion:

D’oh, you know what I’ve just noticed. This is smd_slimbox and I changed the category sort order in smd_gallery the other day, not this plugin. That would certainly explain why it doesn’t work because sort="fixed" only functions on image IDs. If I can, I’ll back-port the modifications I made to smd_gallery into smd_slimbox. I think it’ll work, but I’ll have to try it and find out because they operate in different ways.

Sorry for the mix up / me being so dense and not spotting this sooner. If it’s any consolation, smd_gallery will do what you want :-)

Last edited by Bloke (2008-06-14 13:56:11)


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

#514 2008-06-15 00:51:59

mauricenaef
Member
Registered: 2008-01-31
Posts: 23

Re: smd_slimbox

Quick question, is it possible to hook up the image linked to the current article? Somehow a replacement to <txp:article_image>? I cant get it to display that?
Sorry if I missed something…

regards Marcel

Offline

#515 2008-06-15 07:20:40

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,497
Website GitHub

Re: smd_slimbox

mauricenaef wrote:

is it possible to hook up the image linked to the current article?

Yes, try using id="?article_image".


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

#516 2008-06-15 09:24:58

strawberryfusion
Member
Registered: 2005-07-24
Posts: 20

Re: smd_slimbox

Many thanks – I used smd_gallery and it works exactly the same but now with the correct order! :)

Offline

#517 2008-06-15 09:27:07

mauricenaef
Member
Registered: 2008-01-31
Posts: 23

Re: smd_slimbox

I’ve tried that, but it somehow outputs all the images uploaded. If I limit to 1 it shows me the Image with the lowest ID.
In the article. My Article ID and Image ID are not the same just for info

Offline

#518 2008-06-15 09:32:28

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,497
Website GitHub

Re: smd_slimbox

mauricenaef wrote:

I’ve tried that, but it somehow outputs all the images uploaded.

*cough* correction <txp:smd_slimbox imageid="?article_image" />

Sorry, getting my smd_gallery and smd_slimbox attributes mixed up… again.


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

#519 2008-06-15 09:41:11

mauricenaef
Member
Registered: 2008-01-31
Posts: 23

Re: smd_slimbox

:-) thanks, did the job!!!

Great plugin, love it!!
Regards Marcel

Offline

#520 2008-06-19 23:40:33

robin746
Member
From: Ireland
Registered: 2007-09-22
Posts: 113
Website

Re: smd_slimbox

Just wanted to say, Stef that you really go beyond the call of duty in your support. If I can sometime buy you a burger or plate of bangers’n‘mash to stuff in your face I will. :-)


robin

Offline

#521 2008-06-20 08:46:48

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,497
Website GitHub

Re: smd_slimbox

robin746 wrote:

Just wanted to say, Stef that you really go beyond the call of duty in your support. If I can sometime buy you a burger or plate of bangers’n‘mash to stuff in your face I will. :-)

Thanks! Much appreciated, and glad I’m of some use. I really enjoy mucking about with TXP; pretty much every time I use it I get a surprise about how flexible it really is.

The few times it doesn’t quite meet my needs I write a plugin which sometimes helps others. And if that doesn’t quite work I can rely on the good community folk like yourself to suggest enhancements or bug reports to make it even better. At the risk of using a management platitude, it’s win-win :-D

So thanks in turn for your support of what I do.


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

#522 2008-06-20 11:07:23

keith
Member
From: Blyth, Northumberland, England
Registered: 2004-12-08
Posts: 199
Website

Re: smd_slimbox

robin746 wrote:

If I can sometime buy you a burger or plate of bangers’n‘mash to stuff in your face I will. :-)

You can always do this


Keith
Blyth, Northumberland, England
Capture The Moment

Offline

#523 2008-06-23 12:14:04

tragic monkey
New Member
From: Brisbane
Registered: 2008-05-03
Posts: 6
Website

Re: smd_slimbox

I am having problems getting this plugin to work. I have been reading the instructions and previous posts for ages and still have not got on top of the problem. I have tried very hard before resorting to ask here.

I have the latest mootools 1.2 with all the plugins
I have slimbox 1.63.

These reside in:

<script type=“text/javascript” src=“js/mootools.js”></script>
<script type=“text/javascript” src=“js/slimbox.js”></script>

I have the appropriate and up-to-date smd_smlimbox and smd_lib installed and active.

I am trying to get it to work on a gallery page on this test gallery that links to images with category “fish” using:

<txp:smd_slimbox category=“fish” limit=“4”/>

to test the plugin.

It is just not happening for me. Any help or tips from a kind soul who can spot any glaring errors would be most appreciated.

Kind regards,

Offline

#524 2008-06-23 12:19:20

gluteus
Member
From: Switzerland
Registered: 2007-01-20
Posts: 74

Re: smd_slimbox

tragic monkey schrieb:

<script type=“text/javascript” src=“js/mootools.js”></script>
<script type=“text/javascript” src=“js/slimbox.js”></script>

I know your problem, I had the same. Try a simple slash before your js:
<script type=“text/javascript” src=”/js/mootools.js”></script>
<script type=“text/javascript” src=”/js/slimbox.js”></script>

Or look otherwise on the exact path.

dave

Offline

#525 2008-06-23 12:21:26

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,497
Website GitHub

Re: smd_slimbox

tragic monkey

If I was a betting man I’d say it’d be the path to your javascript files and/or css. They are set to js/mootols.js and js/slimbox.js so the browser cannot find them. Add a / at the beginning and it should work.

EDIT: dang, gluteus beat me to it :-)

Last edited by Bloke (2008-06-23 12:21:54)


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

  1. Index
  2. » Plugin support
  3. » smd_slimbox

Board footer

Powered by FluxBB