Recent Topics

Subcategory Searching BUG

started by on Mar 03, 2006 – Last touched: Mar 03, 2006

Mar 03, 2006 19:30    

.

By searching the aggregate blog (blog_all -or- blog #1), a search can be widened across ALL of your blogs. Add the code below to your search form to do this:

Code

<input type='hidden' name='blog' value='1' />

One can also restrict searches to specific categories (or main categories and their subcategories) by using the code below

Code

<input type='hidden' name='cat' value='25,32,48' />  // main cats (25, 32 & 48) AND all their subcats (if any).
<input type='hidden' name='catsel' value='25,32,48' />  // main cats only

PROBLEM?

The "cat=" search doesn't work in either v1.6 (alpha) or v1.8 (CVS). BUG! The search returns ONLY POSTS in the MAIN CAT (skipping any posts in the subcats), even though the TITLES correctly indicate that the subcats have been searched.

VERIFY: Unfortunately, there are no subcat entries on the CVS v1.8 demo blog. :roll: BUT ... if you make an entry in Blog B (assign it to MAIN CAT== FUN and subcat==sports). Include the word "broken" ... and then conduct the following searches, you'll see that the "cat=" search is not finding the post in the subcategory, EVEN THOUGH, the TITLE indicates that the subcat has been searched. :'(

Verify the entry exists
http://demo.b2evolution.net/post-phoenix.php4/blogs/index.php?blog=3&s=broken&sentence=AND

Verify the bug: (Doesn't show entry, but SHOULD "CAT=" bug subcat listing is correct)
http://demo.b2evolution.net/post-phoenix.php4/blogs/index.php?blog=3&cat=5&s=broken&sentence=AND

Verify the title: (Correct "CATSEL" return - main cat title only)
http://demo.b2evolution.net/post-phoenix.php4/blogs/index.php?blog=3&catsel=5&s=broken&sentence=AND
Hope this helps.


Form is loading...

multiple blogs – This forum is powered by b2evolution CMS, a complete engine for your website.