Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: Enhanced Hide from Latest and Random plugin - with user interface  (Read 13660 times)

0 Members and 1 Guest are viewing this topic.

windyweather

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
    • Windy Weather Photos

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
« Last Edit: January 28, 2006, 03:40:56 am by GauGau »
Logged

windyweather

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
    • Windy Weather Photos
Woops... Found a problem withthe sql..
« Reply #1 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
Logged

windyweather

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
    • Windy Weather Photos
Sorry to be a nusiance...
« Reply #2 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
Logged

ecto

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 144
    • My very incomplete gallery
Re: Enhanced Hide from Latest and Random plugin - with user interface
« Reply #3 on: December 28, 2005, 01:07:14 am »

Nuisance? On the contrary. Thanks for the plugin!
Logged

LilAngel

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Enhanced Hide from Latest and Random plugin - with user interface
« Reply #4 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.
Logged

ecto

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 144
    • My very incomplete gallery
Re: Enhanced Hide from Latest and Random plugin - with user interface
« Reply #5 on: January 08, 2006, 11:00:45 pm »

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

LilAngel

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Enhanced Hide from Latest and Random plugin - with user interface
« Reply #6 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 (thumbnails.php?album=lastup&cat=-xxx) I get to see, instead of the last uploaded thumbs: "No image to display".
Logged

windyweather

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
    • Windy Weather Photos
I'm not an expert here, but...
« Reply #7 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

« Last Edit: January 09, 2006, 07:12:32 pm by windyweather »
Logged

LilAngel

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Enhanced Hide from Latest and Random plugin - with user interface
« Reply #8 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.  :)
Logged

windyweather

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
    • Windy Weather Photos
Ok...fullsize fixed... Version 1.5 of the plug-in...
« Reply #9 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
« Last Edit: January 11, 2006, 08:33:02 pm by windyweather »
Logged

LilAngel

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Enhanced Hide from Latest and Random plugin - with user interface
« Reply #10 on: January 28, 2006, 12:50:51 am »

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

Nibbler

  • Guest
Re: Enhanced Hide from Latest and Random plugin - with user interface
« Reply #11 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.
Logged

Warlock82

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Enhanced Hide from Latest and Random plugin - with user interface
« Reply #12 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?
Logged

blitzwurst

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Enhanced Hide from Latest and Random plugin - with user interface
« Reply #13 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).
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 22 queries.