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: click thumbnail, full size picture different  (Read 31885 times)

0 Members and 1 Guest are viewing this topic.

kateheaven

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 78
    • Kate Hudson Heaven
click thumbnail, full size picture different
« on: November 15, 2007, 01:11:31 am »

when I click a thumbnail in my gallery the picture that opens is not the same as the thumbnail I clicked. For example: http://www.nkidman.com/media/fanarchive/thumbnails.php?album=lastup&cat=215

http://www.nkidman.com/media/fanarchive/index.php

test account: test / test


thanks
« Last Edit: December 02, 2007, 11:55:57 pm by Nibbler »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: click thumbnail, full size picture different
« Reply #1 on: November 15, 2007, 07:58:46 am »

We can't check when the gallery is offline.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: click thumbnail, full size picture different
« Reply #2 on: November 15, 2007, 08:13:51 am »

Those are the replies to your other open threads:
"Gallery is currently offline - check back soon". Nothing to do or look at for us. Turn it back online if you want our help.
you need to set your gallery back online so that supporters can have a look.
Stop wasting our time! Starting a lot of threads and then hiding your gallery from our eyes is just plain stupid.
Logged

kateheaven

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 78
    • Kate Hudson Heaven
Re: click thumbnail, full size picture different
« Reply #3 on: November 15, 2007, 01:05:08 pm »

Those are the replies to your other open threads:Stop wasting our time! Starting a lot of threads and then hiding your gallery from our eyes is just plain stupid.

it was a mistake, i'm sorry  ::)

 the gallery is online now

http://www.nkidman.com/media/fanarchive/index.php
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: click thumbnail, full size picture different
« Reply #4 on: November 15, 2007, 01:20:32 pm »

Works fine for me.
Under certain circumstances this is however 'normal' behaviour. Let's say you browse an album (thumbnail view) and while you do that, someone uploads a new image. Then what you describe may occur. Reloading the page kinda 'resets' the addressing. This is cause Coppermine uses 'relative' addressing when browing albums (cause of better performance). This has been rewritten for CPG 1.5 and absolute addressing is used instead.

kateheaven

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 78
    • Kate Hudson Heaven
Re: click thumbnail, full size picture different
« Reply #5 on: November 15, 2007, 06:12:06 pm »

thanks for looking stramm. it's still a problem for me though ... it's not because something else has been uploaded while i'm browsing because nothing has been uploaded.

if you click one of the square thumbnails on http://www.nkidman.com/media/fanarchive/thumbnails.php?album=lastup&cat=215 (for example) i still find that I get a different full size image when I click it...
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: click thumbnail, full size picture different
« Reply #6 on: November 15, 2007, 06:44:21 pm »

hmm... dunno what's wrong with that. Probably recreating thumbs helps. HAve uploaded custom thumbs for these files. Or have you replaced the fullsized/ intermediate?? These are mainly landscape pics. Coppermine doesn't create square thumbs of them.

kateheaven

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 78
    • Kate Hudson Heaven
Re: click thumbnail, full size picture different
« Reply #7 on: November 15, 2007, 07:32:09 pm »

i've tried recreating thumbnails. it's only on the 'last uploads' page that it seems to be happening ... the thumbnails display fine and correspond properly with the full size image in the actual album view.

Looking back through the 'last uploads' pages of the Banners category (http://www.nkidman.com/media/fanarchive/index.php?cat=215), it seems to be displaying the last uploads from the entire gallery ...
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: click thumbnail, full size picture different
« Reply #8 on: November 15, 2007, 07:40:25 pm »

you modified core code... probably introduced with one of the changes

kateheaven

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 78
    • Kate Hudson Heaven
Re: click thumbnail, full size picture different
« Reply #9 on: November 15, 2007, 10:00:21 pm »

what do you mean? i installed the latest version but haven't touched any of the pages ...

should i reinstall or...?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: click thumbnail, full size picture different
« Reply #10 on: November 16, 2007, 08:24:47 am »

Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: click thumbnail, full size picture different
« Reply #11 on: November 16, 2007, 08:28:31 am »

I do not see the version you've installed... for that code needs to be changed. Therefore my last statement. If you've made modifications, then it's of course hard to tell what to do next. Also it's a good idea to always have the standard theme uploaded. This way we can check your gallery with an unmodified classic theme and exclude theme problems.

No harm would do, to redo the upgrade if you haven't modded core code. Download a fresh copy (1.4.14) and follow the upgrading instructions in the docs.

kateheaven

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 78
    • Kate Hudson Heaven
Re: click thumbnail, full size picture different
« Reply #12 on: November 16, 2007, 04:16:45 pm »

I've downloaded a fresh version of 1.4.14, uploaded that, and gone to .../update.php  I've kept the original classic theme and haven't modified anything, anywhere. I've also checked and repaired the database in the domain cpanel. Still got the problem ...
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: click thumbnail, full size picture different
« Reply #13 on: November 16, 2007, 04:31:29 pm »

I've kept the original classic theme
Why?
Logged

kateheaven

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 78
    • Kate Hudson Heaven
Re: click thumbnail, full size picture different
« Reply #14 on: November 16, 2007, 04:52:33 pm »

Why?

...  rather than modifying it to add my own layout in. I uploaded a fresh version of it, I just didn't modify it so, as Stramm suggested, we could see whether it was a problem with the theme.
Logged

kateheaven

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 78
    • Kate Hudson Heaven
Re: click thumbnail, full size picture different
« Reply #15 on: November 19, 2007, 05:55:49 pm »

sorry to bump this, but does anyone have any other suggestions for this problem? otherwise i'm a bit stuck ...

thanks.
Logged

kateheaven

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 78
    • Kate Hudson Heaven
Re: click thumbnail, full size picture different
« Reply #16 on: December 02, 2007, 08:29:49 pm »

bumping this again. I've tried everything I can think of to try and fix this. I've deleted all files within the category I first noticed the problem in + that category, i've checked and repaired the database in the domain cpanel, i've downloaded a fresh copy of cpg and uploaded that, i've tried updating the thumbnails in admin tools ...    I'm still having the same problem though.

The URL is http://www.nkidman.com/media/fanarchive/index.php  and you can see an example of the problem here: http://www.nkidman.com/media/fanarchive/thumbnails.php?album=lastup&cat=11 - click the first thumbnail and you will see the intermediate picture you get is different than the original thumbnail.
Logged

Nibbler

  • Guest
Re: click thumbnail, full size picture different
« Reply #17 on: December 02, 2007, 09:22:15 pm »

This looks like a bug - sub sub sub categories are not working correctly.
Logged

Nibbler

  • Guest
Re: click thumbnail, full size picture different
« Reply #18 on: December 02, 2007, 09:36:26 pm »

Change thumbnails.php

Code: [Select]
function thumb_get_subcat_data($parent, &$album_set_array, $level)
{
    global $CONFIG;

    $result = cpg_db_query("SELECT cid, name, description FROM {$CONFIG['TABLE_CATEGORIES']} WHERE parent = '$parent'");
    if (mysql_num_rows($result) > 0) {
        $rowset = cpg_db_fetch_rowset($result);
        foreach ($rowset as $subcat) {
            $result = cpg_db_query("SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} WHERE category = {$subcat['cid']}");
            $album_count = mysql_num_rows($result);
            while ($row = mysql_fetch_array($result)) {
                $album_set_array[] = $row['aid'];
            } // while
        }
        if ($level > 1) thumb_get_subcat_data($subcat['cid'], $album_set_array, $level -1);
    }
}

to

Code: [Select]
function thumb_get_subcat_data($parent, &$album_set_array)
{
    global $CONFIG;

    $result = cpg_db_query("SELECT cid, name, description FROM {$CONFIG['TABLE_CATEGORIES']} WHERE parent = '$parent'");
    if (mysql_num_rows($result) > 0) {
        $rowset = cpg_db_fetch_rowset($result);
        foreach ($rowset as $subcat) {
            $result = cpg_db_query("SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} WHERE category = {$subcat['cid']}");
            $album_count = mysql_num_rows($result);
            while ($row = mysql_fetch_array($result)) {
                $album_set_array[] = $row['aid'];
            } // while
            thumb_get_subcat_data($subcat['cid'], $album_set_array);
        }   
    }
}

Please test and report back.
Logged

kateheaven

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 78
    • Kate Hudson Heaven
Re: click thumbnail, full size picture different
« Reply #19 on: December 02, 2007, 11:46:42 pm »

it seems to have worked! thank you so much Nibbler!
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.