Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[plugin] jk_images: expanding existing image support for articles and galleries
- jk_images v.0.51 download
- curious? see the demo
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
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
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
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
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
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
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
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
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