forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: Bernd1975 on November 08, 2011, 12:26:35 pm

Title: FetchContent v0.6
Post by: Bernd1975 on November 08, 2011, 12:26:35 pm
Hello everybody  8)

I discovered a so named plugin which makes 90% of my work I need.
It pulls various, random pictures out of my gallery and show them in a custom page anywhere I want to.
A really great script!!

Maybe the last 10% could be taken as a "request for upcomeing  features"  or someone could lend me hand and describe a "How To"?

What I need is:
- A Option where I can set only to have pictures with same hight or width

I'm sure somewhere in the code where the array is filled up with the results of a db query, I could place something like
Code: [Select]
Pseudo-Code:
if height > width
Or maybe the db query could be altered to pull out only pictures where height < length or something like that.
Why I do need this:
- My random pic has a fixed place in my website. No place to have pictures with a big hight.
Maybe someone else useing this for his website will need such a solution too because he only wants to show pictures with the same heigth.

If I'm on the wrong section of this bord, ofend someone in a way I do not know or something else I appoligze a thousand time.
Title: Re: FetchContent v0.6
Post by: Bernd1975 on November 08, 2011, 02:52:45 pm
 :-[ Can't bring it on to run properly.
I tried to alter the db query with a simple add
Code: [Select]
AND pwidth > pheightBut no effect. Anyone out there who can help me out to make it quick and dirty?

I tried to alter the db query in image.php and configuration.php with no success  :-\
Title: Re: FetchContent v0.6
Post by: Αndré on November 15, 2011, 12:19:14 pm
Quick & dirty: adjust the thumbnail options in the Coppermine config and update all thumbnails with the admin tools. This will of course affect the thumbnails in your gallery, too.
Title: Re: FetchContent v0.6
Post by: nellygrl on January 07, 2012, 05:13:37 am
Where can I find this plugin? I'm looking for an alternative to CPMFetch since it doesn't seem to be compatable with 1.5.