PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Bug Reports

Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 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?
Astaran is offline   Reply With Quote
Old 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.
Michael P is offline   Reply With Quote
Old 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.
Astaran is offline   Reply With Quote
Old 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.
Michael P is offline   Reply With Quote
Old June 22nd, 2005, 02:46 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
Astaran is offline   Reply With Quote
Old June 22nd, 2005, 02:55 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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?
Astaran is offline   Reply With Quote
Old June 22nd, 2005, 02:58 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,666
LOL you moved your post and I already answered it.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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
vicos is offline   Reply With Quote
Old 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.
Michael P is offline   Reply With Quote
Old 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.
LMer is offline   Reply With Quote
Old July 12th, 2005, 09:49 PM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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 = "";
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
LMer is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Search bug...(FIXED) Johnny Doomo Photopost Pro Bug Reports 1 October 25th, 2005 12:49 PM
5.2 Upload and Move Image Issues(FIXED) ghinton Photopost Pro Bug Reports 4 October 17th, 2005 10:50 AM
Search issues altsounds How Do I? - vBulletin 3.0.X 3 September 27th, 2005 12:06 AM
Advanced Search doesn't recognize numbers(FIXED) mjm Photopost Pro Bug Reports 19 September 12th, 2005 07:06 AM
Advanced Search on 5.13 does not work at all (FIXED) indiamike Photopost Pro Bug Reports 2 July 22nd, 2005 07:58 PM


All times are GMT -5. The time now is 02:10 PM.

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