Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups
Oh, man. That is so sweet! You really thought this on thru!
Thanks so much!
To even the least of these…
Offline
Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups
Could the tag you use to call image captions in the pop-up windows be used elsewhere in Textpattern, like in pages or Textile fields, to call images w/ captions into an article?
How could we do that?
Offline
Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups
The plugin isn’t really meant for that. Don’t know if this is exactly what you’re looking for but take this code and place it in your taghandlers.php. You could also just pasted it at the end of any plugin file. Just call <code><txp:article_image_caption /></code> from an article form. It will work the same as the article image tag does. This would be classified as a “brut force” and is by no means ideal, but it should work.
<code>
function article_image_caption($atts)
{
global $thisarticle,$pfr,$img_dir;
if (is_array($atts)) extract($atts);
$theimage = ($thisarticle[‘article_image’]) ? $thisarticle[‘article_image’] : ‘’;
if ($theimage) {
if (is_numeric($theimage)) {
$rs = safe_row(“*”,‘txp_image’,“id=’$theimage’”);
if ($rs) {
extract($rs);
return $caption;
}
} else {
return ‘’;
}
}
}
</code>
Offline
Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups
Well, I’m not quite sure what I did wrong, but that didn’t work. I couldn’t get the regular article_image tag to show either. Is there a specific way you have to enter the url? I tried:
http://www.domain.com/images/17.jpg
www.domain.com/images/17.jpg
domain.com/images/17.jpg
images/17.jpg
17.jpg
None of them worked.
And anyway, I’d like to have the ability to call in more than one image w/ caption per article. And it would have to be fairly simple, because I’m not the only person who will be posting to the site, and the others aren’t code proficient at all. Simplicity is key on this project.
As for what exactly I’d be looking for, it doesn’t exist, but I imagine it would go something like this:
txp:image id=“17” showcaption=“1” /
Something like that would be beautiful. I would imagine it would be fairly simple for someone to do, along the lines of the chh_article_custom plugin, only for images instead. But I don’t know the first thing about coding PHP, so I could very easily be way off base there.
What really baffles me is why it wasn’t included in the release to begin with. :(
Cheers.
Last edited by theturninggate (2005-02-04 21:30:54)
Offline
Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups
The article image id is entered under the advanced options menu when you’re writing an article. The article tag and the caption tag above would have to be place on your article form. They would show the image thats associated with the article but you can only have one per article.
I just found this which might be what you’re looking for: glx_image
Offline
Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups
Wilshire, that’s exactly what I’ve been looking for! You are a god! Thank you!
Offline
Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups
… and with a small hack to the dca_pop plugin in combination with glx_image plugin you can open not the larger versions of your images self, but within the thumbpop.php file from wilshire’s rss_thumbpop package! Isn’t that cute? :)
My dca_pop version you can find here.
Offline
#44 2005-02-05 12:52:02
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups
I’m lost on how to use this plugin
So far:
1. article ID=3
2. Made an Image Category called article-3
3. Then in the page template that displays article 3 I put:
<code><txp:rss_thumbpop mode=“table” articlethumbs=“1” label=“My Pictures” pagepop=“1” /></code>
Problem is no thunbnails show up.
What am I doing wrong here?
Thanks, Lee
Edit:
Got it working.
Used:
<code><txp:article form=“thumb_pop” /></code>
instead of
<code><txp:output_form form=“thumb_pop” /></code>
Last edited by lee (2005-02-05 15:41:29)
Offline
#45 2005-02-05 22:43:03
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups
Is it poss to make the caption below the thumb clickable?
Thanks
Lee
Offline
Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups
No, its not possible now. It wouldn’t be that difficult to add if you wanted but I don’t think I’ll be releasing a new version that soon.
Offline
Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups
Wilshire. Great work! You’ve saved me countless hours of frustration…this plug-in is essential. Cheers Mate.
Offline