Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-11 19:14:27

Jeff_K
Archived Plugin Author
From: Vancouver, British Columbia
Registered: 2005-08-19
Posts: 202
Website

[plugin] jk_images: expanding existing image support for articles and galleries

This plugin allows for the display and navigation of images. It can be used to display multiple (or single) images associated with an article or to display a gallery of images by category. It also provides access to image captions and other information such as image dimensions. It supports entirely clean urls and uses forms to work its magic. For extended documentation see the plugin’s help file.

The plugin has been in private development for a few months, but I thought it might be of use to others. If you find it works for you and your clients, consider making a donation to our publishing project Fillip — donations will encourage development of this plugin beyond my own needs. Comments and suggestions welcome.

change log

  • v.0.41: minor security and bug fixes
  • v.0.45: added looping feature for images produced by jk_image_link
  • fixed bug that prevented parcing of form used by jk_image
  • added showalways att to jk_image_link
  • v.0.50: added jk_if_image function
  • added jk_if_image_details function
  • v.0.51 fixed bug in jk_image
  • v.0.55 fixed coding error
  • images without thumbnails are now skipped if <txp:thumbnail /> is used

Last edited by Jeff_K (2008-08-18 21:01:09)

Offline

#2 2007-05-11 20:55:03

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,340
Website GitHub Mastodon

Re: [plugin] jk_images: expanding existing image support for articles and galleries

On my Textpattern sites, the filenames of thumbnails get a “t” appended. jk_gallery contains this line which employs a “tn” postfix:

#171: <img src="'.$img_dir.$id.'tn'.$ext.'"'.

How does this work?

Last edited by wet (2007-05-11 21:15:22)

Offline

#3 2007-05-11 21:16:04

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,340
Website GitHub Mastodon

Re: [plugin] jk_images: expanding existing image support for articles and galleries

May I also suggest to change

    $image_id = $uri[3];

to

    $image_id = assert_int($uri[3]);

You’ll never know…

Offline

#4 2007-05-12 00:16:47

Jeff_K
Archived Plugin Author
From: Vancouver, British Columbia
Registered: 2005-08-19
Posts: 202
Website

Re: [plugin] jk_images: expanding existing image support for articles and galleries

RE: reply 1: Thanks! stupid mistake! I fill fix it tonight.
RE: reply 2: yes! Thats not a bad idea…

Otherwise, does it seem worthwhile?

Offline

#5 2007-05-12 00:25:27

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

Re: [plugin] jk_images: expanding existing image support for articles and galleries

Hi Jeff, is there a demo to look at?

Offline

#6 2007-05-12 19:59:33

Jeff_K
Archived Plugin Author
From: Vancouver, British Columbia
Registered: 2005-08-19
Posts: 202
Website

Re: [plugin] jk_images: expanding existing image support for articles and galleries

Hey Lee.. I posted a demo above. It’s from my in progress website so excuse the dust…

Offline

#7 2007-05-17 21:37:09

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: [plugin] jk_images: expanding existing image support for articles and galleries

Ooooooh, great! Thanks :¬)

Edit: What solution are you using for the login section on fillip.ca?

Last edited by rossharvey (2007-05-17 21:39:16)

Offline

#8 2007-05-23 18:02:50

Jeff_K
Archived Plugin Author
From: Vancouver, British Columbia
Registered: 2005-08-19
Posts: 202
Website

Re: [plugin] jk_images: expanding existing image support for articles and galleries

Ross, thanks! Hope its useful.

For the Fillip site I use a modified version of jk_access_by_ip. The version of the plugin online only allows access by ip (not by a form and password). I can post a version that uses a password as well if you are interested.

Last edited by Jeff_K (2007-05-23 18:03:37)

Offline

#9 2007-05-24 20:46:19

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: [plugin] jk_images: expanding existing image support for articles and galleries

That would be fantastic!

Offline

#10 2007-06-11 16:16:14

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: [plugin] jk_images: expanding existing image support for articles and galleries

You can have luck … and then fall sooo deep!

Jeff, today I talked to my friend who now wants to supplement his site. He described it’s needs exactly (the counter) like the demo site linked above, which I discovered only by chance, as jk_image isn’t represented on textpattern.org. When I saw the demo the corners of my mouth said hello to my ears! Cool!

But there is no possibility to activate clean URLs for his site …

Is there a chance at all for you to get it working with messy ones with the URL method your plugin uses? If so: does it just load in new images or can it also link to different pages in order to show image related information?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#11 2007-06-15 06:48:12

Jeff_K
Archived Plugin Author
From: Vancouver, British Columbia
Registered: 2005-08-19
Posts: 202
Website

Re: [plugin] jk_images: expanding existing image support for articles and galleries

Hey! Thanks for the note. Unfortunately I don’t see any easy way of doing this. Because the plugin is so tied to Textpattern’s $pretext variable, and breaks apart the URI by “/“s, it would be a complete rewrite to get it working with query strings instead… I’ll keep in it mind though, and let you know if any easier solution pops up.

Offline

#12 2007-06-15 13:52:34

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: [plugin] jk_images: expanding existing image support for articles and galleries

I’d be lucky hearing from you!
In order to see if I could use it on other sites with different needs: Your example page nav loads complete pages, right? So, different from lightbox solutions it could show more image related information than can be covered with just the caption text.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB