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: Offset problem after voting  (Read 2262 times)

0 Members and 1 Guest are viewing this topic.

jelmer

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Offset problem after voting
« 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

Logged

Nibbler

  • Guest
Re: Offset problem after voting
« Reply #1 on: September 11, 2006, 10:44:10 pm »

Post a link to your gallery.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.