forum.coppermine-gallery.net
Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: kateheaven 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
-
We can't check when the gallery is offline.
-
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.
-
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
-
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.
-
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...
-
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.
-
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 ...
-
you modified core code... probably introduced with one of the changes
-
what do you mean? i installed the latest version but haven't touched any of the pages ...
should i reinstall or...?
-
should i reinstall
no
-
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.
-
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 ...
-
I've kept the original classic theme
Why?
-
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.
-
sorry to bump this, but does anyone have any other suggestions for this problem? otherwise i'm a bit stuck ...
thanks.
-
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.
-
This looks like a bug - sub sub sub categories are not working correctly.
-
Change thumbnails.php
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
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.
-
it seems to have worked! thank you so much Nibbler!