Offset problem after voting Offset problem after voting
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Offset problem after voting

Started by jelmer, September 11, 2006, 10:39:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jelmer

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


Nibbler