Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2006-07-24 18:36:49

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: wlk_mp

Yeah, when I wrote the thing, I wanted to make it as easy as possible to install, so I didn’t want ftp to come into the equation. This way, you just use txp’s own file manager.

Offline

#22 2006-07-24 20:25:28

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: wlk_mp

Ok everyone, I updated the plugin…..you can select images by specifying a category=“put category name here” within the tag or make a custom field called “magcategory” and put the category you want in the field from the article you wish to call…..if no images are found, nothing is output and there is next to no drain on resources…..also, I was writing the new version really stupidly and making multiple calls on the db. Ifyou use category to specify images, it only makes one db call, whereas specifying images by id makes (ummm…I’m sorry to admit) 2 calls to the db per image. (I’ll fix that little bit later.)

yup. (links are same as before….)

Offline

#23 2006-07-24 20:31:12

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: wlk_mp

Oh, a word of warning, it only really handles jpegs……I had a png in there and it acted okay but the gd output was a black box….if you refresh this url you will occasionally see the black box….(it’s supposed to be a graph…)

Last edited by Walker (2006-07-24 20:31:53)

Offline

#24 2006-07-24 22:01:46

amygail
New Member
Registered: 2006-07-20
Posts: 6

Re: wlk_mp

OK – I managed to get it working – sort of – looks a bit odd though.
I’ve tried a few different combos and sizes, but it never looks quite right. no padding – or just odd layouts
I literally just threw up a textpattern site just default styling etc – perhaps when I have more time to play with it – I’ll figure out what’s going on.

In all though – very cool easy to use (with brain switched on) – Hopefully, I can make it work
If you’re interested in seeing what’s happening now – go here
http://amygail.com/

a

Offline

#25 2006-07-24 22:23:42

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: wlk_mp

Guys, the following is the style I threw in my stylesheet to get it to look better:

<code>
.magazine-image img
{
border: 1px solid #000;
margin: 2px;
}
</code>

If you want the whole box containing the images to have text flow around it do this:

<code>
.magazine-image
{
float: left;
}
</code>

That <code>left</code> can be a right if you so desire.

Last edited by Walker (2006-07-24 22:26:01)

Offline

#26 2006-07-24 22:31:23

amygail
New Member
Registered: 2006-07-20
Posts: 6

Re: wlk_mp

There’s another ‘duh’ for me.
Still need to tweak – but yipppe it’s gonna work.

Now – if I just had pop-ups…..
Thanks again!
a

Offline

#27 2006-07-24 22:43:47

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: wlk_mp

Hold thine horses.

Offline

#28 2006-07-24 22:49:55

amygail
New Member
Registered: 2006-07-20
Posts: 6

Re: wlk_mp

Mine horses barely fit in my apartment- but I’m certain the ride will be worth the struggle.
I can’t work on the site for a few anyway.
Thanks for the great plugin and help.
best
a

Offline

#29 2006-07-29 12:37:04

cnolle
Plugin Author
Registered: 2004-03-21
Posts: 87
Website

Re: wlk_mp

This is excellent work Walker, really. Thanks for adding the ability to use categories instead of image ID’s.

One minor, minor issue. It looks like the directory where it looks for the images is hardcoded to ‘images’, so if you change this in the textpattern admin is fails to find the images.

other than that great stuff

- Christian

Offline

#30 2006-07-29 13:00:44

Els
Admin
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: wlk_mp

Thanks for a great plugin Walker!

I just don’t quite understand what the padding attribute does. Padding between the images has to be set in the CSS with margin for .magazine-image img, otherwise there will be no padding at all between the images. But the padding attribute does make a difference, if you don’t set it to a certain value the images are moved around so they’re not in a square at all anymore. What that certain value is I only found out by trial and error, I fail to see the logic behind it.
But never mind, I’m only using it on one page, and I finally managed to get that one to display all right :)

Offline

Board footer

Powered by FluxBB