coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: jelmer on September 11, 2006, 10:39:51 PM

Title: Offset problem after voting
Post by: jelmer on September 11, 2006, 10:39:51 PM
After voting, the values of $prev_tgt and $next_tgt are changing.

If I am viewing an image in my gallery and I click the 'Next' button, I see the next image like it should. But if I vote for an image and click the 'Next' button after that, I'm not actually seeing the next image, but an image that seems to be a random number of positions away from the current image (same problem with the 'Previous' button, it gets the same offset).

==============
** Before voting, the links below the 'voting' and 'next' buttons contain these links:
Voting:         <a href="thumbnails.php?album=lastup&amp;cat=0&amp;pos=13&amp;page=2&amp;pic=192&amp;rate=3" title="Goed" rel="nofollow">
Next button: <a href="thumbnails.php?album=lastup&amp;pos=14" (...etc)

** After voting, but whil actually displaying the same image as above, the links ar as follows:
Voting:         <a href="thumbnails.php?album=lastup&amp;cat=&amp;pos=-192&amp;page=&amp;pic=192&amp;rate=3" title="Goed" rel="nofollow">
'Next' button: <a href="thumbnails.php?album=lastup&amp;pos=52" (..etc)
==============

So while looking at the same picture, after voting the value of 'pos' increases with 38 (in this case, but the number it increase with seems to be random).

Obviously we did do a major theme makeover so it's probably our own fault, but any ideas or suggestions would be appreciated!


Jelmer

Title: Re: Offset problem after voting
Post by: Nibbler on September 11, 2006, 10:44:10 PM
Post a link to your gallery.