Hi,
Please can someone show me how to let only site members (logged in) see the search box in header (top left)?
Thanks
Hi, Please can someone show me how to let only site members (logged in) see the search box in header (top left)? Thanks
|
Hello You need to edit templates/base/scripts/BxBaseFunctions.php file -> genSiteSearch function and add the following code at the very beginning (just after ({) sign). if(!isLogged()) Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV |
great! a perfect fix for this. thanks so much but do you think it can be put into php block? any materials on the wiki in this regard?
|
Hello You are welcome. :) I cannot find anything like this in Dolphin Wiki. However it's not so had. You need: 1. Execute the following MySQL query INSERT INTO `sys_page_compose` (`Page`, `PageWidth`, `Desc`, `Caption`, `Column`, `Order`, `Func`, `Content`, `DesignBox`, `ColWidth`, `Visible`, `MinWidth`, `Cache`) VALUES
2. Add something like this in templates/base/css/index.css file. div.disignBoxFirst div#sys_search_wrapper {
3. Add translation for _site_search key via admin panel -> settings -> languages settings. 4. Move newly created block in necessary location via admin panel -> builders -> pages builder -> homepage. It's essential because cache should be recreated. That's all. You may test. Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV |