Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2005-02-02 17:22:13

jbrew
Member
From: Imperial Beach, California
Registered: 2004-03-04
Posts: 78
Website

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

#38 2005-02-04 20:07:43

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

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

#39 2005-02-04 21:09:33

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

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

#40 2005-02-04 21:27:49

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

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

#41 2005-02-04 22:27:35

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

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

#42 2005-02-05 05:49:02

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

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

#43 2005-02-05 11:24:03

ChrisJ
Member
From: Vienna, Austria
Registered: 2004-03-30
Posts: 54
Website

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

#46 2005-02-06 15:40:03

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

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

#47 2005-03-03 15:42:48

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

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

Board footer

Powered by FluxBB