 | |  | | | ReviewPost Bug Reports Let us know about any post installation problems you are having with ReviewPost. |
December 30th, 2006, 08:03 AM
|
#1 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
| RP 3.32 'Previous product' and 'Next product' text links on showproduct.php erratic
In RP 3.32 it seems that the 'Previous product' and 'Next product' text links on showproduct.php are erratic... sometimes they display and sometimetimes they don't. When they do display and your click on 'Next product' and move on to the next product, there may be a 'Next product' link on that (second) product but more often than not there is no 'Next product' link.
It's not just happening on my site... I've had a look at http://www.reeftalk.com/reviews/ (Chuck S' site) and it's hapeening there as well.
|
| |
December 30th, 2006, 08:59 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,693
|
The next and prev will display if there is a result. I show prev displays if there is a prev previous product and next if there is a next product remember they will not show a next or prev link if there is not one. This is the same in any of our products.
|
| |
December 30th, 2006, 09:18 AM
|
#3 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
Here's a example of the problem on your own site: Go to this page (/reviews/showcat.php) where you'll see there's seven products. Click on the first product. Here you get a 'Previous Product' and a 'Next Product'. The 'Previous Product' links that very same product.
Clicking on 'Next Product' takes you to the seventh product that was previously shown on /reviews/showcat.php, clicking on the 'Next Product' link there then takes you to the fith product that was previously shown on /reviews/showcat.php
I'm also wondering if this has anything to do with the fact that there doesn't seem to be a standard number of 'show product preview' thumbnails being shown. On your site there's sometimes only four product thumbnails being shown... sometimes five and sometimes seven.
|
| |
December 30th, 2006, 10:04 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,693
|
Remember nothing is erratic there. Based on your observation above your going by a sort not the prev next links which are simply higher or lower product number links
Yes clicking the first product and doing next goes to the 5th product cause of the product numbers 1698 and 1702. It is not going to go to 1706
Previous would go to a lower product and next would go to a higher product. My showcat sort is set to most active. If you change the sort to most recent then you see your prev or next may line up more with your thinking  Therefore based on your observation and my explanation I conclude they are working as they are designed.
|
| |
December 30th, 2006, 10:53 AM
|
#5 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
Ok I hear what you're saying.
/reviews/showcat.php is a 'jumping on point' for people to navigate products.
In my mind if a site is sorting products alphabetically and a user clicks on a product that starts with 'a' then he should be able to 'next product' through to 'b products', 'c products' all the way to 'z products'. That's a logical approach rather than the product with the next highest or lowest product ID?
Take my example in post #3... a person following what I did is not going to see all the products in the category... because at some point you're going to hit a brick wall with no 'next products'. Regardless of which product the user clicks on first he should be able to navigate using 'previous' and 'next' to see all of the products in a chosen category.
There's still the issue of the first product a user clicks on having a 'previous product' link which is a link to itself.
|
| |
December 30th, 2006, 03:54 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,693
|
The next and prev links are pulled based on various data passed just like our other products. They are not just next and prev links to only products in that category. Take this for instance if you do not pass a cat variable in the url it will leave the cat
|
| |
January 31st, 2007, 01:26 PM
|
#7 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2007 Location: Northeast USA
Posts: 11
| Quote:
Originally Posted by Chuck S Previous would go to a lower product and next would go to a higher product. My showcat sort is set to most active. If you change the sort to most recent then you see your prev or next may line up more with your thinking  Therefore based on your observation and my explanation I conclude they are working as they are designed. | I'm having the same (or simular) problem as above. In my case, no matter what I set the sort order to, the « Previous Product · Next Product » do the following: « Previous Product links me to the same product that I am looking at. Next Product » jumps forward in the product number by two. So when I'm on product 23, the Next Product » links to product 25.
No matter what I change the "Default Sort Order*:" to as suggested above, I get the same result with my « Previous Product · Next Product » links above the product table.
Any help would be much appriciated. Otherwise I really like Reviewpost.
Last edited by Manhattan; January 31st, 2007 at 01:27 PM.
Reason: typo
|
| |
January 31st, 2007, 01:47 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,693
|
Default sort order says how things sort on the showcat script
One thing is make sure in showproduct.php line 345 is this in bold Code: Content visible to verified customers only.
Last edited by Chuck S; February 1st, 2007 at 09:55 AM.
|
| |
January 31st, 2007, 02:17 PM
|
#9 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2007 Location: Northeast USA
Posts: 11
| Hmmmm
My line 345 says:
elseif ( $ids == 3 && $npid )
I changed it to what you suggested but it doesn't behave as you suggest it should. The previous doesn't link to itself anymore rather the next and previous seem random now. I don't see any pattern to where it points.
Any other suggestions? I'm not sure if I should leave it as you suggested or put it back the way it was.
|
| |
January 31st, 2007, 02:50 PM
|
#10 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
Mine also says elseif ( $ids == 3 && $npid ) but it's on line 333 - different versions I guess?
|
| |
January 31st, 2007, 09:14 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,693
|
Line 345 is exactly as I noted and make the change on that line to the code in bold. see if that helps
|
| |
February 1st, 2007, 08:51 AM
|
#12 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2007 Location: Northeast USA
Posts: 11
|
Yes, I did do that. As I said above...
I changed it to what you suggested but it doesn't behave as you suggest it should. The previous doesn't link to itself anymore rather the next and previous seem random now. I don't see any pattern to where it points.
|
| |
February 1st, 2007, 09:58 AM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,693
|
Okay lets just copy and paste the entire block here. I made changes to both things so try that Code: Content visible to verified customers only.
|
| |
February 1st, 2007, 02:26 PM
|
#14 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2007 Location: Northeast USA
Posts: 11
|
You the Man Chuck! That did it!
I appriciate your effort very much. Thanks for a great product! |
| |
February 1st, 2007, 04:00 PM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,693
|
Not a problem
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 10:31 AM. | |