2004-12-11 03:54:18

Vitruvius
Plugin Author
zêta

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

Hi jenny,

I modified dca_pop as follows:

find the lines:
<pre><code>” onclick=\”“,“window.open(this.href, ‘popupwindow’, ‘width=”,$w,”,height=”,$h,
“,scrollbars,resizable’); return false;\”>”,</code></pre>

and change them to:

<pre><code>” onclick=\”“,“window.open(this.href, ‘popupwindow’, ‘width=”,$w+20,”,height=”,$h+20,
“,resizable’); return false;\”>”,</code></pre>

It’s not perfect – but it does look better.

SH

Last edited by Vitruvius (2004-12-11 03:59:34)

Offline

 

2004-12-11 18:34:48

ChrisJ
Member
delta
Real name: Chris
From: Vienna, Austria
Known languages: en, de, pl
Website

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

Heh, I see I am not the only one. I’ve added also this:

onkeypress=\"","window.open(this.href, 'popupwindow', 'width=",$w+20,",height=",$h+20,",resizable'); this.blur(); return false;\"

Offline

 

2004-12-11 22:56:58

jennycheuk
Member
beta
Website

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

Thanks a lot, Vitruvius & ChrisJ, I will try the codes out :)

Offline

 

2004-12-12 17:52:02

ddsoul
New Member
alpha
From: Vancouver, BC
Website

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

Thanks for the plugin, it works wonders for my gallery now. 1 question, is there a way to show the images ordered backwards?

Right now it sticks the newest uploaded image to the bottom, I’d like to see a feature where it could reverse the order so the newer pictures are at the top left… any ideas? thanks in advance.

Offline

 

2004-12-21 14:51:19

wilshire
Plugin Author
nu
Real name: Rob Sable
From: Akron, Ohio
Website

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

As of now the ordering can’t be changed but if you want in the meantime you can just add an order by clause to the SQL. I don’t know how comfortable you are with PHP or SQL but it would be pretty easy to add one.

Just find the line that reads
<code>
$results = safe_rows(’*’, ‘txp_image’, $categories);
</code>

The third param is the where clause to the image retrieval query. Just append what you want to the $categories var and you’ll be all set.

You’ll have to add the same to the other SQL ~15 lines down if you’re using paging.

Offline

 

2004-12-24 07:46:16

ddsoul
New Member
alpha
From: Vancouver, BC
Website

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

> wilshire wrote:

> As of now the ordering can’t be changed but if you want in the meantime you can just add an order by clause to the SQL. I don’t know how comfortable you are with PHP or SQL but it would be pretty easy to add one.

Just find the line that reads
<code>
$results = safe_rows(’*’, ‘txp_image’, $categories);
</code>

The third param is the where clause to the image retrieval query. Just append what you want to the $categories var and you’ll be all set.

You’ll have to add the same to the other SQL ~15 lines down if you’re using paging.

——————

Thanks, I got it to work! …. after who knows how long trying to refresh my mind to think back in sql. It was actually pretty easy!

Last edited by ddsoul (2004-12-24 07:46:37)

Offline

 

2005-01-10 13:09:40

Matt
Member
epsilon
Real name: Matt Frost
Website

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

This is a great tool. Would it be possible to enhance it so that it automatically pulls images from an article-specific category, along the lines of the jmr_gallery plugin ? If so, it could be used in an article form, and if the article had no associated images (images where category = “article-x” for article with id=“x”), the plugin would return nothing.

Offline

 

2005-01-10 13:24:10

wilshire
Plugin Author
nu
Real name: Rob Sable
From: Akron, Ohio
Website

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

Nice idea Matt. I’ll play around with it. Shouldn’t be too difficult to add.

Offline

 

2005-01-10 21:17:52

wilshire
Plugin Author
nu
Real name: Rob Sable
From: Akron, Ohio
Website

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

The download is now at version 0.3 which includes automatic association of a gallery with the current article as in the jmr_gallery plugin.

By default the plugin will work as it always has. Just set articlethumbs=“1” to turn on galleries by article.

Details

Download rss_thumbpop

Last edited by wilshire (2005-01-10 21:20:46)

Offline

 

2005-01-10 21:20:44

Matt
Member
epsilon
Real name: Matt Frost
Website

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

wow. you’re fast.

I can’t wait to try it out.

Offline

 

Powered by FluxBB