We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How to remove "Search by real name"-searchbox in the /users/search-page? | Forum

Katrine Christensen
Katrine Christensen Jan 22 '14
I cannot access this from the admin-panel, so I have to edit the code. I have found coding for this real name-searchbox in ../ow_system_plugins/base/controllers/user_search.php, but I'm not sure what code to remove to stop showing the searchbox on the page?


Help is much appreciated :)

Daisy Team
Daisy Mar 10 '14
Katerine, you should make changes in this file: /ow_system_plugins/admin/views/controllers/users_index.html
Simply comment the following lines:

    <div class="ow_box ow_admin_search_box ow_smallmargin">
           {text key='admin+search_by'}
           <select name="search_by">
               {foreach from=$searchQ item='label' key='question'}
               <option value="{$question}"{if $currentSearch.question==$question} selected="selected"{/if}>{$label}</option>
               {/foreach}
           </select> :
           <input type="text" name="search" id="username-search-input" style="width: 280px" value="{$currentSearch.value}" />
           {decorator name='button' type="submit" langLabel='admin+go'}
        </div>

P.S. Do not forget to enable DEV and DEBUG modes: http://docs.oxwall.org/plugin-tuts:enable-debug?s[]=debug