 | |  | | | Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here. |
June 22nd, 2005, 01:48 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jan 2004
Posts: 218
| 5.11 issues with search(FIXED)
The search isn't working properly at the moment.
Restricting the time range doesn't have any effect on the search results.
It seems, that the variables $when and $whenterm need to be added to the typecast call in search.php and showgallery.php
I think the same applies to categories. Although this can be an array when someone chooses multiple categories on the search page.
The paging links to browse the search results aren't containing all needed variables also.
For some reason, it's working here.
But not on my installation and not at http://www.viperalley.com/gallery/search.php
Maybe that's because of the vbulletin integration used here?
|
| |
June 22nd, 2005, 02:37 PM
|
#2 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,736
|
line 19 in search.php should probably read: Code: Content visible to verified customers only.
which adds those two variables.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
June 22nd, 2005, 02:39 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jan 2004
Posts: 218
|
Yes, I tried that. Also tried to add in in showgallery.php, but it doesn't seem to fix it.
|
| |
June 22nd, 2005, 02:42 PM
|
#4 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,736
|
I don't think they need to be added to showgallery.php, showgallery.php looks like: Code: Content visible to verified customers only.
I'll update ViperAlley with current stuff and see what happens when I try it there.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
June 22nd, 2005, 02:46 PM
|
#5 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
|
I beleive the file edited should be search.php and showgallery.php and adding both those variables fixes the issue for me.
Basically showgallery is missing whenterm
|
| |
June 22nd, 2005, 02:51 PM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Jan 2004
Posts: 218
|
Yes, that fixed it.
In showgallery, it has to be added to typecast($_REQUEST...
Did that wrong at first.
Last edited by Astaran; June 22nd, 2005 at 02:57 PM.
|
| |
June 22nd, 2005, 02:55 PM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
|
Glad to assist
Members galleries sets the cat variable absolute to 500 to return album photos it has to be all categories
|
| |
June 22nd, 2005, 02:57 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Jan 2004
Posts: 218
| 
Here's another one for you:
While testing that I noticed that choosing "member galleries" as category doesn't return any photos in albums. Is that intended?
|
| |
June 22nd, 2005, 02:58 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
|
LOL you moved your post and I already answered it. |
| |
July 1st, 2005, 05:39 PM
|
#10 (permalink)
| | Registered User
Join Date: Jul 2002
Posts: 16
|
In 5.12, search.php you have:
'when' => INT
This causes the resulting URL to read:
when=0
as opposed to:
when=
This causes the search to FAIL.
Changing to:
'when' => STRING fixes it
|
| |
July 2nd, 2005, 09:01 AM
|
#11 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,736
|
'when' is suppose to be an integer, which URL are you referring to?
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
July 12th, 2005, 08:47 PM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Jun 2003
Posts: 41
|
In search.php if $when = 0 (the default value if no time frame is specified), a search URL is generated that contains the argument 'when=0' which causes searches to fail.
I worked around the issue by setting $when to null if $when=0
I added the following to line 236 of search.php:
if ($when < 1) {$when = "";}
After the code change, searches worked fine.
|
| |
July 12th, 2005, 09:49 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
|
Actually I beleive the correct approach since search takes place actually in showgallery is to find this line and add in bold
if ( !isset($when) || $when < 1 ) $when = "";
|
| |
July 12th, 2005, 10:36 PM
|
#14 (permalink)
| | Member Verified Customer
Join Date: Jun 2003
Posts: 41
|
Either way, it would be nice to see it fixed in the next release. |
| | |
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 02:10 PM. | |