Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2005-01-20 23:06:19

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

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

wilshire – do you think it would be possible to hack the dca_pop to display an article? Something like – put the image and text in the article and then call the article?

Or is it easy to write that function you mentioned?

Unfortunately I am not too fluent in PHP so I am not sure where to pull that info from even if I could do it that way.

Any thoughts?

Last edited by jbrew (2005-01-20 23:11:27)


To even the least of these…

Offline

#26 2005-01-24 14:37:18

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

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

I’m in the same boat as jbrew in that I’m not so keen with PHP or SQL databases. I’m just a designer, and not really a programmer/coder, though I code my designs by hand. I’ll hope for such a feature to show up in a future version, though. Thanks, Wilshire.

Last edited by theturninggate (2005-01-24 14:38:31)

Offline

#27 2005-01-24 14:55:01

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

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

jbrew & theturninggate –

Both of your suggestions are things that would be a good additions to the plugin. Unfortunately I just don’t have enough time on my hands right now.

dca_pop could most likely be changed to popup a php page instead of just the image. But if I were to add that functionality to this plugin I’d probably remove the dependence on dca_pop rather than hacking it.

If I have time soon I’ll take a look at these additions.

Offline

#28 2005-01-31 16:39:54

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

Hello!

I’ve got a problem which I don’t think is directly related to rss_thumbpop, but maybe you can help. I did not find anything useful while searching the forums.

I successfully installed your plugin, and uploading, thumbnail generation works fine. I have a template which includes txp:article limit=“5” /, and I created a new article with txp:rss_thumbpop category=“Test” mode=“float” label=“Test” / in it.

The pictures show up, and I can click them to open in a popup.

The problem now is, your gallery uses div-tags, which are surrounded by p-tags. I think the p-tags are created by txp:article limit=“5” /, but I don’t know how to get rid of them. Anyway, the p-tags prevent my page from validating.

I’m new to textpattern, so maybe this is a very noobish question, but I did not find a solution anywhere else.

Last edited by larf (2005-01-31 16:40:52)

Offline

#29 2005-01-31 17:07:32

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

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

The p tags are probably coming from your article itself. When you write an article and do not specify otherwise it will wrap your line of text in the p tag. I think you escape this in textile using a double space.

You could also use the new feature that was recently added to automatically show article galleries. In this case you would add the call to the plugin to your article form and it would only display the thumbnails if you had a category called “article-”+articleID

Either of those methods should take care of the problem.

Offline

#30 2005-01-31 18:05:28

Matt
Member
Registered: 2004-02-28
Posts: 92
Website

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

“…it would only display the thumbnails if you had a category called “article-

Offline

#31 2005-01-31 18:27:15

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

> wilshire wrote:

> The p tags are probably coming from your article itself. When you write an article and do not specify otherwise it will wrap your line of text in the p tag. I think you escape this in textile using a double space.

That was exactly the hint that was missing! Just to add that the double white space must be addded BEFORE “txp:rss_thumbpop category…”.

>You could also use the new feature that was recently added to automatically show article galleries. In this case you would add the call to the plugin to your article form and it would only display the thumbnails if you had a category called “article-”+articleID

I didn’t understand that quite right. Nevermind, it’s working right now with the hint above, but if you find the time, maybe you can point me to some more in-depth documentation. I’ve startet learning Textpattern today, so everything is still quite new to me…

Thank you very much for your help!

Offline

#32 2005-01-31 18:52:09

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

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

That feature is new in version 0.3. If thats what you have, the documentation is included with the plugin or check page 1 of this thread.

Offline

#33 2005-02-02 03:22:22

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

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

A new version (0.4) is available now with some major updates based on suggestions by jbrew, theturninggate, ddsoul, vituvius and others.

  • The dependency on dca_pop has been removed although the popups still function the same.
  • Popups can now contain an image and its caption using an external script called thumbpop.php (included in the download).
  • Padding can be specified on the width and height of the popup window.
  • Images can now be ordered by name, caption, date asc or date desc.

The thumbpop.php script should be placed in your textpattern installation directory. Edit the inline stylesheet to alter the display. By default, the alt text is used as the page title and the caption is shown below the image. Check for an example on my site that uses the new popup style and window padding options.

Details and Example

Download rss_thumbpop 0.4

Offline

#34 2005-02-02 14:35:27

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

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

Superb! I can’t wait to try it (but will have to until after work today)!

Thank you!

Last edited by theturninggate (2005-02-02 14:35:45)

Offline

#35 2005-02-02 16:42:50

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

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

Wilshire…. amazing. This thing is sweet!!! I tested it out last night and it works great.

One question: Is there a way to not have the caption display on the popup but still below the thumb?

Let me know.


To even the least of these…

Offline

#36 2005-02-02 17:00:10

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

Re: [plugin] [ORPHAN] rss_thumbpop - Thumbnail Image Gallery w/ popups

jbrew – You can remove the caption display by editing the thumbpop.php file.

Find line 24 which reads
<code>
<?php echo ‘<img src=”’ . $pfr.$img_dir.’/’ . $id . $ext . ‘” alt=”’.$alt.’” /><p>’ . $caption .’</p>’; ?>
</code>

and change it to
<code>
<?php echo ‘<img src=”’ . $pfr.$img_dir.’/’ . $id . $ext . ‘” alt=”’.$alt.’” />’; ?>
</code>

By the way, on this page you have access to any of the attributes of the image. So if you wanted you could display the alt text, height, width, etc.

Offline

Board footer

Powered by FluxBB