PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old February 12th, 2005, 04:06 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 119
Search - not finding images in sub-categories

Even with the "Also search sub-categories" checkbox checked, searching does not find images in sub-categories.

Example: Search my gallery - category = "modern Japanese culture" (near top) for "kimono" and you will find several photos. Now do same search on parent category = "Modern Japan" and it finds zero photos. This is typical of all categories except "search all categories" which does find all.

Also, on the search subject, keyword links are not working (does not find same keywords) as indicated in a previous thread.
imported_DougM is offline  
Old February 14th, 2005, 12:29 PM   #2 (permalink)
Brian
Guest
 
Posts: n/a
Re: Search - not finding images in sub-categories

If you'll look in your search.php file for this code:
Code:
Content visible to verified customers only.
And replace it with this:
Code:
Content visible to verified customers only.
Then that should take care of the problem.
 
Old February 18th, 2005, 08:17 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 119
Re: Search - not finding images in sub-categories

I tried this fix and ended of with "error on line 12345" messages. Sorry it's not better documented, I was in a hurry and just replaced search.php with the original file.

Did this fix work for others or do others have this problem? I haven't seen any mention of this from anyone.
imported_DougM is offline  
Old February 20th, 2005, 02:37 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Sep 2004
Posts: 35
Re: Search - not finding images in sub-categories

Quote:
Originally Posted by DougM
I tried this fix and ended of with "error on line 12345" messages. Sorry it's not better documented, I was in a hurry and just replaced search.php with the original file.

Did this fix work for others or do others have this problem? I haven't seen any mention of this from anyone.
Same here:
Parse error: parse error, unexpected T_ELSE in /bla/gallery/search.php on line 371
mr.gamesbay is offline  
Old February 20th, 2005, 11:15 AM   #5 (permalink)
Brian
Guest
 
Posts: n/a
Re: Search - not finding images in sub-categories

Sorry about that. I've just updated the post with the correct code to find/replace.
 
Old February 21st, 2005, 07:33 AM   #6 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 119
Re: Search - not finding images in sub-categories

I've tried it but get this when clicking any keyword link or just trying to use search.
Code:
Content visible to verified customers only.
imported_DougM is offline  
Old February 21st, 2005, 07:50 AM   #7 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
Re: Search - not finding images in sub-categories

Try deleting that last curly bracket and see it that helps.
$condition .= " images.catid IN($cids) AND ";
this one ----> }
rbl is offline  
Old February 21st, 2005, 01:16 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 119
Re: Search - not finding images in sub-categories

Thank you rbl, that does work for searching sub-categories.

Keyword searches still do not work but that may be another issue alltogether.
imported_DougM is offline  
Old March 24th, 2005, 07:13 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 92
Re: Search - not finding images in sub-categories

I thought this thread was going to solve my problem but search still does not find any image in the sub-categories.

one problem may be is that i still haven't found the "Also search sub-categories" checkbox. I've searched everywhere under vBa Gallery in my admin.

I tried the code that was posted here and still no luck.

Please help, i would love to have this function
Happy Camper is offline  
Old March 24th, 2005, 09:57 AM   #10 (permalink)
Brian
Guest
 
Posts: n/a
Re: Search - not finding images in sub-categories

Quote:
Originally Posted by Oreamnos
one problem may be is that i still haven't found the "Also search sub-categories" checkbox. I've searched everywhere under vBa Gallery in my admin.
It's on the search page on the user side, right under the select box where you can choose what categories to search in.
 
Old March 24th, 2005, 10:07 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 92
Re: Search - not finding images in sub-categories

Quote:
Originally Posted by Brian
It's on the search page on the user side, right under the select box where you can choose what categories to search in.
OK, i see that. thanks, i was going crazy looking in the admin.

so with the code change and that box checked, doing a search from search.php works great

still one more issue: which i brought up here is that on a page that has sub-categories and has the link to "Search This Category" it still only searches that category but not the sub-categories of that cat.

any ideas on how to fix that?

thanks
eric
Happy Camper is offline  
Old March 27th, 2005, 02:03 AM   #12 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 92
Re: Search - not finding images in sub-categories

Quote:
Originally Posted by Brian
If you'll look in your search.php file for this code:
Code:
Content visible to verified customers only.
And replace it with this:
Code:
Content visible to verified customers only.
Then that should take care of the problem.
If you do this there is a small problem that generates an error when you try to search all categories. what happens is this line ($condition .= " images.catid IN($cids) AND ";) is repeated and one of them is stuck outside of the if conditional rendering a Search All Cateogories search impossible.

Instead find this:
Code:
Content visible to verified customers only.
replace with this:
Code:
Content visible to verified customers only.
Happy Camper is offline  
 


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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Images in sub-category not showing up on search Kurisu Installs and Upgrade - vBulletin 3.5.X 0 September 3rd, 2005 05:54 PM
Finding Admin Login tdsjulie General Discussion 2 August 26th, 2004 09:41 AM
[1.8c] Search Categories selection looks a little odd memobug Classifieds Bug Reports 2 July 15th, 2004 07:40 AM
not finding mogrify even though its there? skezfx Classifieds Installation & Upgrades 1 July 1st, 2004 05:23 PM
Search Function within Categories axecity ReviewPost Suggestions 0 June 30th, 2004 01:17 PM


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

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