Enhanced Hide from Latest and Random plugin - with user interface Enhanced Hide from Latest and Random plugin - with user interface
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Enhanced Hide from Latest and Random plugin - with user interface

Started by windyweather, December 27, 2005, 01:47:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

windyweather

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

windyweather

Apparently TEXT(1024) isn't valid on all SQL implementations... :-[

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

ww

windyweather

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

ecto


LilAngel

There appears to be a problem enlarging the photos as well, as well as seeing last additions.

ecto

If you could describe your problem more detailed maybe windyweather could fix it.

LilAngel

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 (thumbnails.php?album=lastup&cat=-xxx) I get to see, instead of the last uploaded thumbs: "No image to display".

windyweather

#7
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


LilAngel

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.  :)

windyweather

#9
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

LilAngel

Sorry for not replying to this thread sooner. It works fine now.  :)

Nibbler


Warlock82

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?

blitzwurst

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).