Theoretically this should work perfectly as this is exactly the same as the default code in WSN Gallery details.tpl, only the IMAGECATID has been replaced by LINKCATID.
Steps to reproduce error 1: 1. Click on the first link in a category. (shows ok) 2. Click on Next. 3. Click on Previous. 4. Now the Previous button is active for the first link. 5. Click on Previous 6. It gives errors and shows a non-existant link.
Steps to reproduce error 2: 1. Click on the first link in a category. (shows ok) 2. Click on Next. 3. Keep clicking on next till the last link in the list. 4. Next is still shown. You can keep clicking on it. It stays with the same link and never disappears.
While testing: Not quite fixed it seems. When viewing the last item in a category there's still a "Next" button pointing to a non-existant item. Luckily it doesn't work, because if you click on it, the current item (the last item) is simply refreshed.
Example: 5 items. 0 - 4 works perfectly. However, when viewing #4, there's a "Next" link to #5.
Comments on <previous> & <next> in wsnlinks
Forum Regular
Usergroup: Member
Joined: Jul 01, 2003
Total Topics: 38
Total Comments: 164
I'm using the following code in details.tpl:
Previous
|
Next
Theoretically this should work perfectly as this is exactly the same as the default code in WSN Gallery details.tpl, only the IMAGECATID has been replaced by LINKCATID.
Steps to reproduce error 1:
1. Click on the first link in a category. (shows ok)
2. Click on Next.
3. Click on Previous.
4. Now the Previous button is active for the first link.
5. Click on Previous
6. It gives errors and shows a non-existant link.
Steps to reproduce error 2:
1. Click on the first link in a category. (shows ok)
2. Click on Next.
3. Keep clicking on next till the last link in the list.
4. Next is still shown. You can keep clicking on it. It stays with the same link and never disappears.
Will e-mail site example.
Forum Regular
Usergroup: Member
Joined: Jul 01, 2003
Total Topics: 38
Total Comments: 164
If you have a fix for this one, could you post the PHP code I need to change? (as there's no 3.14 likely anytime soon and I'd like to use this)
Forum Regular
Usergroup: Member
Joined: Jul 01, 2003
Total Topics: 38
Total Comments: 164
While testing:
Not quite fixed it seems. When viewing the last item in a category there's still a "Next" button pointing to a non-existant item. Luckily it doesn't work, because if you click on it, the current item (the last item) is simply refreshed.
Example:
5 items. 0 - 4 works perfectly. However, when viewing #4, there's a "Next" link to #5.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Not for me.
Attached Files:
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Hm, it seems to act differently when going to the details page directly versus going through them in order.