Advanced search  

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]

Pages: [1]   Go Down

Author Topic: One picture in various albums (keyword reference)  (Read 11922 times)

0 Members and 1 Guest are viewing this topic.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
One picture in various albums (keyword reference)
« on: July 17, 2004, 12:46:18 pm »

Tarique,

I couldn't find the thread on the general dev board, so I'm posting this report here. I was testing your hack/contribution to have pics appear in more than one album by re-using the keyword. Seems I can't manipulate the thumbnail for such a an album that only contains reference to pics in other albums; it shows the generic thumbnail only.

See my test page, the album "Cross reference".

GauGau
« Last Edit: December 08, 2004, 05:32:38 pm by GauGau »
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: One picture in various albums (keyword reference)
« Reply #1 on: July 17, 2004, 01:05:25 pm »

yes - you are right - also some of the meta-albums still do not contain the cross referenced images - I am aware of it, the feature is not yet 100% complete
Logged
SANIsoft PHP applications for E Biz

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: One picture in various albums (keyword reference)
« Reply #2 on: November 13, 2004, 12:51:04 pm »

This was completed and committed - can someone test it please
Logged
SANIsoft PHP applications for E Biz

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: One picture in various albums (keyword reference)
« Reply #3 on: November 13, 2004, 05:29:06 pm »

I updated to the latest files and can't see where the album is represented by a thumbnail period. The only place I see the album is in Search represented as a text link. ???
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: One picture in various albums (keyword reference)
« Reply #4 on: November 14, 2004, 08:43:24 pm »

I still get the same as Joachims first report.
I tested with 3 albums.  When they contain no physical pic, you get the generic icon, and in the properties manager you see 'album is empty', but if you browse it, it has the keyword pics included.

If the album contains a physical pic as well as keyword linked pics, then the album will show the album thumb.

Both the albums shown in these shots contain pics using keywords.  The 'hats' album also contains a pic of its own.

edit.  Checked out cvs at 1930 GMT today and this is the result with the latest files on my server.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: One picture in various albums (keyword reference)
« Reply #5 on: November 14, 2004, 08:59:22 pm »

OK, so now I see how this works. Yes, I got the same result as Casper.

I don't know if it's related. If not, I'll start a new thread. Since the album is considered empty, the file count when in album list view shows 0 file count when the album is composed entirely of keyworded files.
« Last Edit: November 14, 2004, 09:05:24 pm by TranzNDance »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: One picture in various albums (keyword reference)
« Reply #6 on: November 14, 2004, 09:20:02 pm »

Yes, none of the keyword linked files are included in the album pic count, just those that reside in the album.

I suppose it would be difficult to include them at the album level, without mucking up the other stats, total pics etc.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: One picture in various albums (keyword reference)
« Reply #7 on: November 14, 2004, 09:32:53 pm »

The problem with that would be if people see a 0 file album they wouldn't care to look. If anything, a good use of this type of album is a best-of/portfolio album containing files from all the other albums and none of its own.
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: One picture in various albums (keyword reference)
« Reply #8 on: November 15, 2004, 08:12:03 am »

OK! I acknowledge the empty album - no thumbnail feature BUT for linked files to be shown in the stats you have to turn that option on in the admin. See http://tariquesani.net/index.php?cat=3 for example of what should appear.
Logged
SANIsoft PHP applications for E Biz

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: One picture in various albums (keyword reference)
« Reply #9 on: November 15, 2004, 10:50:39 am »

First, sorry I missed that feature.

But on my setup it only works if the album contains a pic.  See these 2 albums, hats has 1 normal and 1 linked pic, and show this in the stats.
Flowers has only a linked pic, but the stats show the album as empty.  But if you go to the album, you see there is a pic (linked)
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: One picture in various albums (keyword reference)
« Reply #10 on: November 16, 2004, 09:49:54 am »

index.php v 1.70 should fix the problem of no linked file showing in the stats if the album itself does not contain any pictures
Logged
SANIsoft PHP applications for E Biz

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: One picture in various albums (keyword reference)
« Reply #11 on: November 20, 2004, 07:59:00 am »

Maybe it has to do with editing the themes... but the linked files stats don't show up when the keyworded album is on the index page. However, if I go to the category that contains the album, the stats will show. Here is a category I have containing a keyword-only album. If you look at the album info on the first page (near the bottom), the linked stats don't show.

I thought maybe the stats for the album wasn't showing because it was in a category. So I created the same album and didn't categorize it. It's the one called "favorites (not in a category)" at the top of the page. The linked file stats don't show up for it.

I see this in various themes.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: One picture in various albums (keyword reference)
« Reply #12 on: November 20, 2004, 11:39:26 am »

No, it's not the themes.  I have found another query in index.php that needed changing.  I'm just testing at the moment, but should be able to commit shortly.

Edit.  Fixed and committed
« Last Edit: November 20, 2004, 11:46:17 am by Casper »
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: One picture in various albums (keyword reference)
« Reply #13 on: December 08, 2004, 10:51:45 am »

Bump - this is fixed...
Logged
SANIsoft PHP applications for E Biz

pnear

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 35
    • http://www.thenears.com
Re: One picture in various albums (keyword reference)
« Reply #14 on: February 26, 2005, 09:59:52 pm »

Album thumbnail is still showing the generic image when the album contains 0 actual files on my install (latest CVS files).  The original post in this thread was referring to the thumbnail, but it looks like the stats were ultimately what was marked fixed in this thread.  Ideally, I'd like rules for the thumbnail to apply to linked files as well - the newest thumbnail displays on the album list.

My dev install is located here, album in question is "Las Vegas".
http://www.thenears.com/coppermine14/index.php

1.4 looks awesome, good work!

Cheers,
Pete
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: One picture in various albums (keyword reference)
« Reply #15 on: February 27, 2005, 06:45:47 am »

Sorry linked files are just that linked and not in albums - can't have that as album thumbnails - atleast not this version
Logged
SANIsoft PHP applications for E Biz

pnear

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 35
    • http://www.thenears.com
Re: One picture in various albums (keyword reference)
« Reply #16 on: February 27, 2005, 04:47:56 pm »

Sorry linked files are just that linked and not in albums - can't have that as album thumbnails - atleast not this version

Fair enough, thanks for the followup.

Pete
Logged
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 19 queries.