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 and Birthdays in the Browse users section | Forum

Topic location: Forum home » Support » General Questions
Surendra
Surendra Feb 13 '13
how to remove Search and Birthdays in Browse users section



Bob (Coder Whacker)
Bob (Coder Whacker) Feb 13 '13
Note this is not really needed but

 ow_system_plugins/base/controllers/user_list.php:

Down load the file to your computer prior to making the following change.

Delete....

 array(
                'label' => $language->text('base', 'user_search_menu_item_label'),
                'url' => OW::getRouter()->urlForRoute('users-search'),
                'iconClass' => 'ow_ic_lens',
                'key' => 'search',
                'order' => 4
            )


Then save the file.

Then go to your profile questions in your admin panel and make sure the birthday questions search option is not ticked. 
The Forum post is edited by Bob (Coder Whacker) Feb 13 '13
Bob (Coder Whacker)
Bob (Coder Whacker) Feb 13 '13
Always keep a record of your changes because an update can over write the script file you have changed.

It is your risk to make such changes.

To eradicate the risk I would advise that you reinstall the original file before any update, so keep it safe. 
The Forum post is edited by Bob (Coder Whacker) Feb 13 '13
Surendra
Surendra Feb 13 '13
How to remove birthdays section in browse users


Bob (Coder Whacker)
Bob (Coder Whacker) Feb 13 '13
Then go to your profile questions in your admin panel and make sure the birthday questions search option is not ticked.

It only shows up if the birthday profile question is ticked as being shown in search

There is no array to delete for search on birthday as that is set up in the profile Questions.

Basically there is no need to delete the search option because this can be restricted in your user roles?

Why invent the wheel when it been invented already?



The Forum post is edited by Bob (Coder Whacker) Feb 13 '13
Surendra
Surendra Feb 13 '13
I have unchecked birthday in profile question even it appearing. This is because of birthday plugin
Bob (Coder Whacker)
Bob (Coder Whacker) Feb 13 '13
No sorry its me I did not have the birthday plugin installed on my test site.
Bob (Coder Whacker)
Bob (Coder Whacker) Feb 13 '13
I now understand the need to remove these items off the menu,that did confuse me

Its in another file not sure where I think the field is user_list_menu_item_birthdays but could not find the file the for array when it comes to php I am a novist at the moment. You need the help of Aliia.

  
The Forum post is edited by Bob (Coder Whacker) Feb 13 '13
Surendra
Surendra Feb 14 '13
Someone please help me on this
Erlan
Erlan Feb 20 '15
how to remove or hide LATEST AND ONLINE from that menu tab or change it so only you see people who are your friends, not for people who are not, i dont want my users looking at everyone online or offline on the site if they are not friends.
Taissa Team
Taissa Feb 24 '15
Erlan, you can simply hide Latest and Online tabs by using CSS code modifications. Go to Admin Area>Appearence>Edit Theme>CSS tab and add code:

li._latest.active {
    display: none;
}

li._online {
    display: none;
}

But if you need functionality to show only friends in this tabs, this is considered as a custom code modification or new plugin development. If you don't have programming skills you can find a third-party developer here: http://www.oxwall.org/market/specialists

Erlan
Erlan Feb 24 '15
it works but it dosnt. it works because it hides those tabs but it still by default goes to latest even though its hidden. any clues ? appreciate the support
Erlan
Erlan Feb 24 '15
If I can make it that search is default when click browse users then it could work. any clues ?
Erlan
Erlan Feb 24 '15
also have another question related to that field, where it says search by Name in the text box it says username and its kind of redundant since there is another username text box, how can I change that to Full Name or something ?
Taissa Team
Taissa Feb 25 '15
Erlan, it's a custom code modification to display another tab instead the Latest tab as default.
I can give you instructions how to set Featured tab as default. You need to modify /ow_system_plugins/base/init.php file.
Find the line which contains: array('list' => array(OW_Route::PARAM_OPTION_HIDDEN_VAR => 'latest'))));  code and replace the "latest" on the "featured"

After changing the code make sure you've cleaned browser and site cache. To clear site's cache enable DEV_MODE. Follow the instructions: https://docs.oxwall.org/plugin-tuts:enable-debug
 
If you still need to set the Search tab as default, you can make a post in the custom code modification forum, probably some community member will assist you with that.

Concerning the fields on the Search form, you can hide them selectively.
For example, if you do not want to use Username field you can hide it in Admin Area> Users> Profile Questions> Profile Questions tab. Hover mouse over the Username field and click Edit option. Uncheck "On Search" option. In the same way you may rename titles of profile questions. Be note, if you change profile question title, it will change for every page where it's used.
ben
ben Apr 29 '15
taissa, how to hide online tab on mobile?
Taissa Team
Taissa May 5 '15
ben,  this is considered as a custom code modification. Unfortunately I can not provide you  detailed instructions. All I can just show you the direction. So, you will need to modify the /ow_system_plugins/base/mobile/controllers/user_list.php file.

However you need to remember that all your customizations will be overwritten while next update of the software, so you need to remember them and apply again, or implement the changes via custom plugin.
ben
ben May 7 '15
i hope i can hide online tab on mobile with css code
Taissa Team
Taissa May 7 '15
ben, you are right. It's possible to hide this button using CSS code but you have to be sure that the CSS code will not hide the elements on other pages.
jassonleo
jassonleo Jun 12
South Korea Online Gambling: Explore the world of online gambling from the comfort of your home in South Korea. south korea online gambling