mojoBlog Itemid Over-riding Search Itemid
I’ve been working on a new website for Vermonters for a Clean Environment and came across an odd bug within the search bot for mojoBlog. Essentially, I wanted to add an Itemid to the search results from the default Joomla search module so that the results would not default to the home page’s Itemid. The new home page will have a large image on the top and some other “news” modules and the search results would get buried below the fold perhaps.
I’ve also added mojoBlog to the new site and discovered that if I used the “Set Itemid” feature in the Search module, the main menu tab for mojoBlog also became active along with whatever other Itemid I had selected.

To fix this bug, I went into the mojo.searchbot.php file within /mambots/search and edited one line. Look for function botSearchwordpress. On the following line is a global declaration of variables and at the end of that line is one for Itemid. Remove the reference to Itemid — it’s simply not needed. Your new line should look like this:
global $mosConfig_sef, $mosConfig_absolute_path, $mosConfig_absolute_path, $my, $database, $mosConfig_offset;
That fixes the override of the specified Search Itemid.
