Search only for members!

Can anyone say how can I hide this "Search Section" in topFooter? And make it accessible for members ONLY.

How this and, f.ex. templates switcher are setable. In admin there are nothing about it. Or I am blind.

Quote · 4 Feb 2010

Hello, this search box was hard coded in navigation. menu, you will can remove it only in manual mode!
@see it : templates/base/scripts/BxBaseMenu.php
@function : genSearchElement()

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 4 Feb 2010

Dear Sasha.

Can you advise me how can I do, that Search comes for members only by default?

-----------------------------------------------

/*
* Generate top footer part
*/
function genTopFooter() {
global $oSysTemplate;

$sResult = '';
$aFunctions = array('genMoreLanguagesElement', 'genMoreTemplatesElement', 'genSearchElement');
foreach($aFunctions as $sFunction) {
$aVariables = $this->$sFunction();
if(!empty($aVariables)) {
$aVariables['right'] = empty($sResult) ? 'right' : '';
$sResult = $oSysTemplate->parseHtmlByName('navigation_menu_item.html', $aVariables) . $sResult;
}
}       

$this->sCode .= $sResult . "</tr></table>";
}
------------------------------------------------

this should be simple with it - if(!isMember())

But how exactly

That would be nice from you site.

hello you will can to do as these :

function genTopFooter() {
global $oSysTemplate;
if(!isMember()) {

return;

}

Quote · 5 Feb 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.