searchKeyword.php options - can they be removed?

In my searchKeyword.php file, I see the following options:

 

  • Profiles
  • Photos
  • Sounds
  • Videos
  • Files
  • Polls
  • Blogs
  • Flocks

 

I want to be able to remove "Photos", "Sounds", "Files", "Polls", and "Blogs" from the list.  Does anyone know how to remove them?

Thanks,

Brian

Quote · 24 Aug 2010

These items are spit out with a foreach... from the modules installed. `sys_objects_search` table. They are read from a cache file also in cache folder of the same name(db_sys_objects_search.php)...i am very tired...going on memory .. ah just remove items from the databse via phpmyadmin after you backup/export it then delete the cache file and view them gone.

.have fun..

I have video tutorials to help you mrpowless.com
Quote · 24 Aug 2010

Wow!  That's sad that I can't filter out those items any other way.  Thanks for the info.  I'll see if I can find a way to add an "if" statement that will do the filtering for me.  Thanks for the help!

Quote · 24 Aug 2010

This turned out to be a pretty easy fix.  In the searchKeyword.php file, change this:

 

foreach ($aList as $sKey => $aValue) {

 

$aValues[$sKey] = _t($aValue['title']);

 

if (!class_exists($aValue['class'])) {

$sPath = BX_DIRECTORY_PATH_ROOT . str_replace('{tmpl}', $GLOBALS['tmpl'], $aValue['file']);

require_once($sPath);

}

$oClass = new $aValue['class']();

$oClass->addCustomParts();

 

}

 


To this:

 

 

foreach ($aList as $sKey => $aValue) {

$somevalue = _t($aValue['title']);

if ($somevalue!= "Sounds" && $somevalue!= "Files" && $somevalue!= "Polls" && $somevalue!="Blogs") {

$aValues[$sKey] = _t($aValue['title']);

}

if (!class_exists($aValue['class'])) {

$sPath = BX_DIRECTORY_PATH_ROOT . str_replace('{tmpl}', $GLOBALS['tmpl'], $aValue['file']);

require_once($sPath);

}

$oClass = new $aValue['class']();

$oClass->addCustomParts();

 

}

 

Thanks for the direction 

Quote · 25 Aug 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.