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: Thumbnails On Category Index  (Read 5354 times)

0 Members and 1 Guest are viewing this topic.

drinkingsouls

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Thumbnails On Category Index
« on: November 14, 2007, 01:02:28 pm »

Hey, I installed Coppermine yesterday and its working great.
I know that you can add categories and assign a thumbnail to them from one of the albums inside but is it possible to assign a thumbnail from a catergory inside a category?

Ill try to explain, I mean like this:

Index > Main Category > Inside Category > Albums

I know that Inside Category have a thumbnail assigned to it from one of the images inside, but is it possible to also set a thumbnail for the Main Category? If its not a config setting then is there a way or mod to do it?
Thanks
« Last Edit: November 16, 2007, 04:30:50 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Thumbnails On Category Index
« Reply #1 on: November 15, 2007, 08:03:56 am »

is it possible to assign a thumbnail from a catergory inside a category?
Simple and straightforward answer: no.

Has been discussed often already and is being covered in the docs.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Thumbnails On Category Index
« Reply #2 on: November 15, 2007, 08:19:53 am »

If you use a ttol like phpmyadmin to directly chnage db entries you can do that. Backup your database before messing around with it.
In the categories table find the fiels 'thumb' of the category you want to apply some thumb from an album not residing in this very category. Enter the absolute ID (you can find it in the pic info area, the number after the - within the URL to the pic) of the pic in that field. 

bybkata

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Thumbnails On Category Index
« Reply #3 on: November 15, 2007, 07:57:51 pm »

If you use a ttol like phpmyadmin to directly chnage db entries you can do that. Backup your database before messing around with it.
In the categories table find the fiels 'thumb' of the category you want to apply some thumb from an album not residing in this very category. Enter the absolute ID (you can find it in the pic info area, the number after the - within the URL to the pic) of the pic in that field. 

Dear Stramm,

did you suceed in doing that? I've tried to modify the table cpg_categories as you described above and put a pic ID for the Thumbnail, but no thumbnail is been applied to all Main categories with no albums and only sub-categoreis in it. Is there anything else that should be done?

Regards
bybkata
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Thumbnails On Category Index
« Reply #4 on: November 15, 2007, 08:10:04 pm »

yup, there needs to be an album in the category you want to assign a thumbnail, even if it's an empty one.

bybkata

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Thumbnails On Category Index
« Reply #5 on: November 15, 2007, 08:16:54 pm »

yup, there needs to be an album in the category you want to assign a thumbnail, even if it's an empty one.

Yes, of course! It was a stupid question from my side  ;)

Thank you for the hint!
Logged

drinkingsouls

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Thumbnails On Category Index
« Reply #6 on: November 15, 2007, 08:26:59 pm »

Im a bit confused. I opened the categories table and then went into the 'Scans' table, which is the name of the category I want to add a thum too.

I then saw this:  [Edit GauGau] Replaced hotlink to screenshot with attachment [/Edit]
I see the thumb value at the bottom and turned it to 1 as you can see. I then saved it but theres still no thumbnail.
Whas there anything else I was meant to do?
Thanks
« Last Edit: November 16, 2007, 08:12:19 am by GauGau »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Thumbnails On Category Index
« Reply #7 on: November 16, 2007, 08:22:03 am »

an album needt to be in the category... as stated above
and
Quote
Enter the absolute ID (you can find it in the pic info area, the number after the - within the URL to the pic) of the pic in that field.
not just a '1'. Make sure an image with that absolut id exists

drinkingsouls

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Thumbnails On Category Index
« Reply #8 on: November 16, 2007, 11:24:15 am »

But if theres an album inside the category then that defeats the point of the question in the first place. I want to assign a thumb to a category within a category.

This is how my gallery is set out:

Index page > Scans (Category) > 2006 (Category) > Albums

The 2006 category can have a thumb assigned to it because there is an album inside. There is no albums inside the Scans category.

Is this not possible?

Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Thumbnails On Category Index
« Reply #9 on: November 16, 2007, 11:31:38 am »

only with code changes

drinkingsouls

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Thumbnails On Category Index
« Reply #10 on: November 16, 2007, 03:16:58 pm »

Theres no mod or tutorial  ???
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Thumbnails On Category Index
« Reply #11 on: November 16, 2007, 03:17:40 pm »

afaik no

drinkingsouls

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Thumbnails On Category Index
« Reply #12 on: November 16, 2007, 04:08:51 pm »

The admin mentioned that is 'is being covered in the docs.' Does this mean that a later release will have it?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Thumbnails On Category Index
« Reply #13 on: November 16, 2007, 04:30:40 pm »

It is being covered in the docs that you can only choose a category thumbnail from an album that directly resides in the category and that you can not pick a thumbnail from an album that resides within a sub-album. That's what I meant with "covered in the docs": it is covered in the docs that what you're up to isn't possible. That's why I said
Simple and straightforward answer: no.

There's no use in insisting and keeping on asking how to accomplish this - if this feature was easy to add, we would have added it long ago. If you need it badly, code it, but don't ask us for help on this - if we knew the asnwer, we would code it ourselves.

This thread ends here.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.