PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds Installation & Upgrades (http://www.photopost.com/forum/classifieds-installation-upgrades/)
-   -   2.5 Search problems (http://www.photopost.com/forum/classifieds-installation-upgrades/123056-2-5-search-problems.html)

zews February 14th, 2006 07:52 AM

2.5 Search problems
 
When choosing from Sort by, the choosen value does not change when the page reloads - the function does not work, the url changes, but the resultset is the same.

Chuck S February 14th, 2006 09:10 AM

In showcat.php

Code:

Content visible to verified customers only.
change to this

Code:

Content visible to verified customers only.

zews February 14th, 2006 09:51 AM

Thanks!

Now it works :)

zews February 14th, 2006 11:04 AM

New problem,

choosing Last 7 days for instance, and then trying to sort, the resultset is the total ads, not only the last 7 days of ads.

Maybe because limit=last7 is not part of the url after sorting?

Chuck S February 15th, 2006 08:14 AM

In cathead.tmpl add line in bold

Code:

Content visible to verified customers only.

zews February 16th, 2006 12:02 PM

That solved that problem, but new one:

The pageing links at the bottom doesn not include limit=last7, so when trying to see page 2 the resultset is again all the ads.

zews February 16th, 2006 12:09 PM

Same problem with searching within timefram or distance - pageing doesn not keep the parameters.

Chuck S February 16th, 2006 12:54 PM

Need to modify pagesytem in pp-inc.php to allow limit to be passed

Code:

Content visible to verified customers only.

zews February 16th, 2006 02:04 PM

Resulted in fatal error:

Fatal error: Call to undefined function: construct_ppurl() in pp-inc.php on line 1218

zews February 16th, 2006 02:20 PM

Uploaded new file and problem was solved, but link looks like this:

Side 1 · 2&limit=last7 · 3&limit=last7 · 4&limit=last7 · 5&limit=last7 · 6&limit=last7 · 7&limit=last7 · 8&limit=last7

zews February 17th, 2006 02:17 AM

Quote:

Originally Posted by zews
Same problem with searching within timefram or distance - pageing doesn not keep the parameters.

This is still not working if you perform a search with

Specify a date range

or

Specify a price range

Those parameters are not part of the pageing links at the bottom.

Chuck S February 17th, 2006 02:30 AM

Try adding the lines in bold to pp-inc.php to your construct_ppurl function

Code:

Content visible to verified customers only.

zews February 17th, 2006 02:57 AM

Now it works :)

SHalliday June 16th, 2006 09:55 AM

Chuck,

Thanks for the solution. Just implemented and it seems to have fixed my Last 7 days search problem. Just one issue left.

Wondering how I can have the search results returned sorted by date. Is there a way this can be done?


All times are GMT -5. The time now is 12:54 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97