forum.coppermine-gallery.net

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: windyweather on December 27, 2005, 01:47:23 am

Title: Enhanced Hide from Latest and Random plugin - with user interface
Post by: windyweather on December 27, 2005, 01:47:23 am
I've enhanced the Remove meta plugin that removes thumbnails for certain albums from the "last additions" and "Random Images" lists.
An interface at install time allows the albums to be selected. To change the list, uninstall, and re-install the plug-in.
Data is stored in a new database table.  [ Hey... A one row table seemed better than some random file written to the server...  Databases are still faster than file systems? Right??  :D ]

Thanks to Donnoman for v1.2 on which this is based.

Your comments, review and testing are welcome. - Oh.. BTW, the no-albums and all-albums cases should work. I think I tested them.  :o

I'm hoping I understood correctly that this is where this post should go.

enjoy,
ww
Title: Woops... Found a problem withthe sql..
Post by: windyweather on December 27, 2005, 02:15:12 am
Apparently TEXT(1024) isn't valid on all SQL implementations... :-[

So here's a fixed version of the plug-in.

ww
Title: Sorry to be a nusiance...
Post by: windyweather on December 28, 2005, 12:52:56 am
Found and fixed some more problems.
The images from "removed" albums could not be displayed directly from the album thumbs.
I think it's all fixed, but I'm sure further testing is in order.

cheers,

ww
Title: Re: Enhanced Hide from Latest and Random plugin - with user interface
Post by: ecto on December 28, 2005, 01:07:14 am
Nuisance? On the contrary. Thanks for the plugin!
Title: Re: Enhanced Hide from Latest and Random plugin - with user interface
Post by: LilAngel on January 08, 2006, 08:58:23 pm
There appears to be a problem enlarging the photos as well, as well as seeing last additions.
Title: Re: Enhanced Hide from Latest and Random plugin - with user interface
Post by: ecto on January 08, 2006, 11:00:45 pm
If you could describe your problem more detailed maybe windyweather could fix it.
Title: Re: Enhanced Hide from Latest and Random plugin - with user interface
Post by: LilAngel on January 09, 2006, 02:32:29 pm
For albums that have been added at the install (to hide from random and latest):
- When you click on a picture (to enlarge it from resized (normal_) pic) a window pops up with this error message: "The selected album/file does not exist !  "
- When you are at the thumnails.php album (example: http://www.shakiragallery.com/thumbnails.php?album=140) and then click for last uploaded images (http://www.shakiragallery.com/thumbnails.php?album=lastup&cat=-140) (thumbnails.php?album=lastup&cat=-xxx) I get to see, instead of the last uploaded thumbs: "No image to display".
Title: I'm not an expert here, but...
Post by: windyweather on January 09, 2006, 07:04:05 pm
It's not clear in this example whether this is a filtered album or not.
Quote
(example: http://www.shakiragallery.com/thumbnails.php?album=140)

It's also not clear, based on the content of the site, why you are filtering anything. Apparently you have your reasons.

I'm not an expert on how the filtering works, but apparently the "Meta" displays are filtered by context. So if you are in album XYZ and you ask for "last uploads" you should expect to see last uploads for this album only. And so forth for categories or any place in the tree. At any point, the design apparently shows only those meta items that correspond to that branch of the tree. So if you filter out an album, and then you navigate to that album and ask for "last uploads" it might filter out all the last uploads for that album.

Also the original design of this plug-in appears to have some problems. For example, if you are at an intermediate category where some albums are filtered and some not, and then you click on "Most Viewed" for example, the filtering works correctly. But if you then click on one of the thumbnails, the resultant image / and slider display is not what you would expect. I'm not conversant enough with the overall design of CM to fix that problem.

ww

Title: Re: Enhanced Hide from Latest and Random plugin - with user interface
Post by: LilAngel on January 11, 2006, 12:49:54 pm
That is a filtered album - why else would i give that as example discussing the problems?

Anyway... So you don't know the reason why the enlarge images popup does not work? I had to deinstall the plugin, which is a pity, because it is of good use when I add old pictures, since I only want the recent albums on the mainpage.  :)
Title: Ok...fullsize fixed... Version 1.5 of the plug-in...
Post by: windyweather on January 11, 2006, 06:57:04 pm
I've inserted a fix.
The plug-in is disabled in Admin Mode and also when displaying fullsize pictures.
Seems useful for an admin to easily see the meta lists for all albums. Of course, an administrator can enable User Mode at any time without logging out, so an admin can see it either way.

I think this fixes the fullsize problem. Let me know if there are other issues.

Thanks for your patience. Looks like your site will give this a real workout...

ww
Title: Re: Enhanced Hide from Latest and Random plugin - with user interface
Post by: LilAngel on January 28, 2006, 12:50:51 am
Sorry for not replying to this thread sooner. It works fine now.  :)
Title: Re: Enhanced Hide from Latest and Random plugin - with user interface
Post by: Nibbler on June 28, 2006, 12:06:05 am
Split general plugin usuage discussion to http://forum.coppermine-gallery.net/index.php?topic=33245.0 to avoid cluttering the thread.
Title: Re: Enhanced Hide from Latest and Random plugin - with user interface
Post by: Warlock82 on September 06, 2006, 07:24:48 am
I tried installing this but there seems to be a bug in the "Last Uploads" list.  Even though it does not display the images from those albums, if I click one of the other thumbnails (from non-blocked albums) it still links to the blocked images.  Is there any way fix that?
Title: Re: Enhanced Hide from Latest and Random plugin - with user interface
Post by: blitzwurst on September 21, 2006, 03:05:48 am
Hi,

Thanks for the great plugin. However I get the same problem as Warlock82 - The correct thumbnails show up in the recent uploads area but when you click on them you get the fullsize pic from the blocked album (I guess the one that would have been there without the plugin).