News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Hide Members drop down menu from all members

Started by cector, October 16, 2010, 12:56:26 AM

Previous topic - Next topic

cector

I want to hide Members drop down menu from all members. Hoe can I do that?
Computers & Technology | Entertainment | Movies | Health | Artist's Corner | Fashion & Style Forums

http://forum.digitallylink.com

cector

I want to hide view memberlist from members drop down menu...
Computers & Technology | Entertainment | Movies | Health | Artist's Corner | Fashion & Style Forums

http://forum.digitallylink.com

Hj Ahmad Rasyid Hj Ismail

The main menu which includes members menu is editable in Subs.php file. This file is available inside your forum Sources folder. You may have made some modifications to it, so if you want us to help you better, please attach that file here.

cector

Please find the attached file.

Please tell me what will change in code ?
Computers & Technology | Entertainment | Movies | Health | Artist's Corner | Fashion & Style Forums

http://forum.digitallylink.com

Hj Ahmad Rasyid Hj Ismail

Sure. I'll just post the changes to be made here then. Find:

            'mlist' => array(
                'title' => $txt['members_title'],
                'href' => $scripturl . '?action=mlist',
                'show' => $context['allow_memberlist'],
                'sub_buttons' => array(
                    'mlist_view' => array(
                        'title' => $txt['mlist_menu_view'],
                        'href' => $scripturl . '?action=mlist',
                        'show' => true,
                    ),
                    'mlist_search' => array(
                        'title' => $txt['mlist_search'],
                        'href' => $scripturl . '?action=mlist;sa=search',
                        'show' => true,
                        'is_last' => true,
                    ),
                ),
            ),

For your first question, you can just delete the above lines. For your second question, replace the above lines with:
            'mlist' => array(
                'title' => $txt['members_title'],
                'href' => $scripturl . '?action=mlist',
                'show' => $context['allow_memberlist'],
                'sub_buttons' => array(
                    'mlist_search' => array(
                        'title' => $txt['mlist_search'],
                        'href' => $scripturl . '?action=mlist;sa=search',
                        'show' => true,
                        'is_last' => true,
                    ),
                ),
            ),

cector

Thanks dear its working. But memberlist also not showing for administrator. I want to hide memberlist from all members but not from Admin..

Please help me in this regard...
Computers & Technology | Entertainment | Movies | Health | Artist's Corner | Fashion & Style Forums

http://forum.digitallylink.com

Hj Ahmad Rasyid Hj Ismail

Next time try to give a clear description of what you want (and if necessary with details information of your forum versions, mods and themes. Do attach some pictures too).

Back to the topic. Restore the original lines back and change it to this:

            'mlist' => array(
                'title' => $txt['members_title'],
                'href' => $scripturl . '?action=mlist',
                'show' => $context['allow_admin'],
                'sub_buttons' => array(
                    'mlist_view' => array(
                        'title' => $txt['mlist_menu_view'],
                        'href' => $scripturl . '?action=mlist',
                        'show' => true,
                    ),
                    'mlist_search' => array(
                        'title' => $txt['mlist_search'],
                        'href' => $scripturl . '?action=mlist;sa=search',
                        'show' => true,
                        'is_last' => true,
                    ),
                ),
            ),

cector

Computers & Technology | Entertainment | Movies | Health | Artist's Corner | Fashion & Style Forums

http://forum.digitallylink.com

Advertisement: