News:

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

Main Menu

6 Custom buttons / tabs and menu's (upto 4)

Started by ɔɔɔɔɔɔuɥoɾ, July 26, 2010, 03:35:28 PM

Previous topic - Next topic

Hj Ahmad Rasyid Hj Ismail

Bingham go to ACP > Configuration > Modification Settings > Custom button settings. Enter the wanted menu there (and tick it to enable it).

Bingham

Quote from: johncccccc on August 04, 2010, 05:54:55 PM
Go to the modifications area / custom button settings, enable buttons as needed..
okay thnakyou :) but thing is now i have all the others aswell how do i get rid ect..

ɔɔɔɔɔɔuɥoɾ

Quote from: Bingham on August 04, 2010, 06:25:09 PM
Quote from: johncccccc on August 04, 2010, 05:54:55 PM
Go to the modifications area / custom button settings, enable buttons as needed..
okay thnakyou :) but thing is now i have all the others aswell how do i get rid ect..

Simple, Click "my mods ( 9)" in my signature, install the mod (Add or Remove Buttons) too, then turn off any non-needed buttons.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

ɔɔɔɔɔɔuɥoɾ

Version 0.5 Released


Added the ability to use SMF permissions.

Enjoy

Current mod users..

To use the new version, uninstall your old version then install this version, all you button configurations will be saved.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Ken.

John, as you may recall, some of my buttons are hard-coded in. Am I correct in thinking that installing this new version would remove those hard coded lines?
http://www.simplemachines.org/community/index.php?topic=392714.msg2725346#msg2725346

ɔɔɔɔɔɔuɥoɾ

Quote from: Ken. on August 06, 2010, 07:42:53 PM
John, as you may recall, some of my buttons are hard-coded in. Am I correct in thinking that installing this new version would remove those hard coded lines?
http://www.simplemachines.org/community/index.php?topic=392714.msg2725346#msg2725346

You are lol
but uninstall will fail however.
Save your hardcoded part on like notepad maybe then restore the modification to the way it supposed to be, then reinstall then add your hard coded mod, any thing that s in the sub menus will co-operate with the permissions, even hard coded since you cannot see the button, you cannot see anything in its menu.

Original code for Subs.php


            'custom1' => array(
                'title' => !empty ($modSettings['label_custombuttons_1']) ? $modSettings['label_custombuttons_1'] : $txt['cb_default_1'],
                'href' => !empty ($modSettings['url_custombuttons_1']) ? $modSettings['url_custombuttons_1'] : $scripturl,
                'show' => !empty ($modSettings['enable_custombuttons_1']) ? true : false,
                'sub_buttons' => array(
                    'subbutton1' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons1_1']) ? $modSettings['label_subcustombuttons1_1'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons1_1']) ? $modSettings['url_subcustombuttons1_1'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons1_1']) ? true : false
                        ),
                    'subbutton2' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons1_2']) ? $modSettings['label_subcustombuttons1_2'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons1_2']) ? $modSettings['url_subcustombuttons1_2'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons1_2']) ? true : false
                        ),                       
                    'subbutton3' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons1_3']) ? $modSettings['label_subcustombuttons1_3'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons1_3']) ? $modSettings['url_subcustombuttons1_3'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons1_3']) ? true : false
                        ),
                    'subbutton4' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons1_4']) ? $modSettings['label_subcustombuttons1_4'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons1_4']) ? $modSettings['url_subcustombuttons1_4'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons1_4']) ? true : false
                        ),
                    ),                       
            ),
            'custom2' => array(
                'title' => !empty ($modSettings['label_custombuttons_2']) ? $modSettings['label_custombuttons_2'] : $txt['cb_default_2'],
                'href' => !empty ($modSettings['url_custombuttons_2']) ? $modSettings['url_custombuttons_2'] : $scripturl,
                'show' => !empty ($modSettings['enable_custombuttons_2']) ? true : false,
                'sub_buttons' => array(
                    'subbutton1' => array(
                    'title' => !empty ($modSettings['label_subcustombuttons2_1']) ? $modSettings['label_subcustombuttons2_1'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons2_1']) ? $modSettings['url_subcustombuttons2_1'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons2_1']) ? true : false
                        ),
                    'subbutton2' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons2_2']) ? $modSettings['label_subcustombuttons2_2'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons2_2']) ? $modSettings['url_subcustombuttons2_2'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons2_2']) ? true : false
                        ),                       
                    'subbutton3' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons2_3']) ? $modSettings['label_subcustombuttons2_3'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons2_3']) ? $modSettings['url_subcustombuttons2_3'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons2_3']) ? true : false
                        ),
                    'subbutton4' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons2_4']) ? $modSettings['label_subcustombuttons2_4'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons2_4']) ? $modSettings['url_subcustombuttons2_4'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons2_4']) ? true : false
                    ),
                ),
            ),
            'custom3' => array(
                'title' => !empty ($modSettings['label_custombuttons_3']) ? $modSettings['label_custombuttons_3'] : $txt['cb_default_3'],
                'href' => !empty ($modSettings['url_custombuttons_3']) ? $modSettings['url_custombuttons_3'] : $scripturl,
                'show' => !empty ($modSettings['enable_custombuttons_3']) ? true : false,
                'sub_buttons' => array(
                    'subbutton1' => array(
                    'title' => !empty ($modSettings['label_subcustombuttons3_1']) ? $modSettings['label_subcustombuttons3_1'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons3_1']) ? $modSettings['url_subcustombuttons3_1'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons3_1']) ? true : false
                        ),
                    'subbutton2' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons3_2']) ? $modSettings['label_subcustombuttons3_2'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons3_2']) ? $modSettings['url_subcustombuttons3_2'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons3_2']) ? true : false
                        ),                       
                    'subbutton3' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons3_3']) ? $modSettings['label_subcustombuttons3_3'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons3_3']) ? $modSettings['url_subcustombuttons3_3'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons3_3']) ? true : false
                        ),
                    'subbutton4' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons3_4']) ? $modSettings['label_subcustombuttons3_4'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons3_4']) ? $modSettings['url_subcustombuttons3_4'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons3_4']) ? true : false
                    ),
                ),
            ),
            'custom4' => array(
                'title' => !empty ($modSettings['label_custombuttons_4']) ? $modSettings['label_custombuttons_4'] : $txt['cb_default_4'],
                'href' => !empty ($modSettings['url_custombuttons_4']) ? $modSettings['url_custombuttons_4'] : '',
                'show' => !empty ($modSettings['enable_custombuttons_4']) ? true : false,
                'sub_buttons' => array(
                    'subbutton1' => array(
                    'title' => !empty ($modSettings['label_subcustombuttons4_1']) ? $modSettings['label_subcustombuttons4_1'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons4_1']) ? $modSettings['url_subcustombuttons4_1'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons4_1']) ? true : false
                        ),
                    'subbutton2' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons4_2']) ? $modSettings['label_subcustombuttons4_2'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons4_2']) ? $modSettings['url_subcustombuttons4_2'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons4_2']) ? true : false
                        ),                       
                    'subbutton3' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons4_3']) ? $modSettings['label_subcustombuttons4_3'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons4_3']) ? $modSettings['url_subcustombuttons4_3'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons4_3']) ? true : false
                        ),
                    'subbutton4' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons4_4']) ? $modSettings['label_subcustombuttons4_4'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons4_4']) ? $modSettings['url_subcustombuttons4_4'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons4_4']) ? true : false
                    ),
                ),
            ),
            'custom5' => array(
                'title' => !empty ($modSettings['label_custombuttons_5']) ? $modSettings['label_custombuttons_5'] : $txt['cb_default_5'],
                'href' => !empty ($modSettings['url_custombuttons_5']) ? $modSettings['url_custombuttons_5'] : '',
                'show' => !empty ($modSettings['enable_custombuttons_5']) ? true : false,
                'sub_buttons' => array(
                    'subbutton1' => array(
                    'title' => !empty ($modSettings['label_subcustombuttons5_1']) ? $modSettings['label_subcustombuttons5_1'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons5_1']) ? $modSettings['url_subcustombuttons5_1'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons5_1']) ? true : false
                        ),
                    'subbutton2' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons5_2']) ? $modSettings['label_subcustombuttons5_2'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons5_2']) ? $modSettings['url_subcustombuttons5_2'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons5_2']) ? true : false
                        ),                       
                    'subbutton3' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons5_3']) ? $modSettings['label_subcustombuttons5_3'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons5_3']) ? $modSettings['url_subcustombuttons5_3'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons5_3']) ? true : false
                        ),
                    'subbutton4' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons5_4']) ? $modSettings['label_subcustombuttons5_4'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons5_4']) ? $modSettings['url_subcustombuttons5_4'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons5_4']) ? true : false
                    ),
                ),
            ),
            'custom6' => array(
                'title' => !empty ($modSettings['label_custombuttons_6']) ? $modSettings['label_custombuttons_6'] : $txt['cb_default_6'],
                'href' => !empty ($modSettings['url_custombuttons_6']) ? $modSettings['url_custombuttons_6'] : '',
                'show' => !empty ($modSettings['enable_custombuttons_6']) ? true : false,
                'sub_buttons' => array(
                    'subbutton1' => array(
                    'title' => !empty ($modSettings['label_subcustombuttons6_1']) ? $modSettings['label_subcustombuttons6_1'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons6_1']) ? $modSettings['url_subcustombuttons6_1'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons6_1']) ? true : false
                        ),
                    'subbutton2' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons6_2']) ? $modSettings['label_subcustombuttons6_2'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons6_2']) ? $modSettings['url_subcustombuttons6_2'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons6_2']) ? true : false
                        ),                       
                    'subbutton3' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons6_3']) ? $modSettings['label_subcustombuttons6_3'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons6_3']) ? $modSettings['url_subcustombuttons6_3'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons6_3']) ? true : false
                        ),
                    'subbutton4' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons6_4']) ? $modSettings['label_subcustombuttons6_4'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons6_4']) ? $modSettings['url_subcustombuttons5_4'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons6_4']) ? true : false
                    ),
                ),
            ),


I would just remove all of that in your file (after saving your hard coded extended menu).To do that,  find the search button array, make sure to remove those 3 " ), " too

all the way up to the custom1 array.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Ken.


lowburb

Any chance of being able to define where these buttons/menus are located? I like the location of the extra buttons on this forum and would like to mimic it (top-right of the header instead of the main menu for the forum)

ɔɔɔɔɔɔuɥoɾ

Their is another mod for that, called "top center menu" or something like that :)


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

lowburb

#69
Will the "top center menu" move everything or just the custom +6 mod?

EDIT* if you're talking about this one it simply centers the menu. It doesn't relocate the +6 custom to where the default SMF logo is located on a default theme

ɔɔɔɔɔɔuɥoɾ

Quote from: lowburb on August 07, 2010, 08:51:22 PM
Will the "top center menu" move everything or just the custom +6 mod?

EDIT* if you're talking about this one it simply centers the menu. It doesn't relocate the +6 custom to where the default SMF logo is located on a default theme

I'm talking about This One it does the same thing as mine with slightly less features, but not in the standard button area, it does it in the top right of the forum.

My bad on the title, I didn't remember it off the top of my head, top custom menu lol


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

lowburb

Quote from: JohnCcCcCc on August 07, 2010, 10:27:51 PM

I'm talking about This One it does the same thing as mine with slightly less features, but not in the standard button area, it does it in the top right of the forum.

My bad on the title, I didn't remember it off the top of my head, top custom menu lol

Yup. That'll do it. Thanks a bunch! Although, I do like the features yours has more, but this will do for now.

ɔɔɔɔɔɔuɥoɾ

Who said you cant use both :)
Just use mine for something else lol :) their is plenty it can be used for


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

lowburb

Quote from: JohnCcCcCc on August 07, 2010, 11:23:51 PM
Who said you cant use both :)
Just use mine for something else lol :) their is plenty it can be used for

Oh most definitely! Next, I'll be searching for a way to remove some of the standard buttons in the center menu, like the Help and Search. Help has it's on input dialog at the top, I don't see a reason to have it twice. And the Help I could link in the top header menu bar.

lowburb

hahahaha, Nevermind. I think I found a mod that I can remove the buttons and show only the ones I want.

Thanks lowburb for the help  8)

ɔɔɔɔɔɔuɥoɾ

Quote from: lowburb on August 08, 2010, 12:00:48 AM
hahahaha, Nevermind. I think I found a mod that I can remove the buttons and show only the ones I want.

Thanks lowburb for the help  8)

I made a mod for that too, probably the on you found, "Add or Remove buttons" lol :)
It removes a selection of buttons at your choice :)


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

BrownBuc

Quote from: JohnCcCcCc on July 26, 2010, 03:35:28 PM
Link to Mod
This mod will add 6 custom buttons to your forum with customizable sub menus, upto 4 per button, that's a total of 24 customizable links you can add to your forum.
I made this since for the last few weeks, its all I have been hearing in the support forums. Since its similar to another mod, I added more features, like sub menus and an extra button.

The mod lets you enable which ever amount of buttons you need, up to 6. The mod also lets you have upto 4 menu items for each menu, which are also completely customizable.

You can change the label of the button, and the URL.
To support my mods, please use the following link to download the mod, the mod will still be downloaded from the mod site


Ok, I am having some issues with this install.  I was able to extract it into my c-panel (hosting24.com) but am unable to get this mod to work.  Will someone please provide me with step-by-step install instructions for this mod?  I need the option to navigate back to my home page on the website, and the provided links do not give me that option.  This mod will fix all that and allow me to customize the buttons to allow my members move where they want.

Call me an idiot oer whatever..I have looked for step by step install instructions and I can not find it.  I tried to upload it from my desktop....nope...ain't happening....

help

ɔɔɔɔɔɔuɥoɾ

The is no need to extract any mod packages,
Simply use the package manager to install this mod and all others.
Admin / Packages / Download Packages /

Upload the package from your PC then click install


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

thellie

#78
hey there :)
is the appearance of the buttons meant to be instantaneous? or do i have to reboot?

i've installed both the custom buttons and add/remove mods - i've input 3 buttons with subs and links, and they are saving ok... but nothing is showing anywhere - whether i am logged in as admin or just as guest.

the add/remove list isn't showing the buttons either...

i'm going to check the subs.php now, but thought i'd send this in anyway (i installed 2.0 rc3 yesterday and am adding/checking mods as i go).

EDIT: here's the relevant part of the subs.php - from the start of the function, down to the search button coding...
function setupMenuContext()
{
global $context, $modSettings, $user_info, $txt, $scripturl, $boarddir;

// Set up the menu privileges.
$context['allow_search'] = allowedTo('search_posts');
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));
$context['allow_edit_profile'] = !$user_info['is_guest'] && allowedTo(array('profile_view_own', 'profile_view_any', 'profile_identity_own', 'profile_identity_any', 'profile_extra_own', 'profile_extra_any', 'profile_remove_own', 'profile_remove_any', 'moderate_forum', 'manage_membergroups', 'profile_title_own', 'profile_title_any'));
$context['allow_memberlist'] = allowedTo('view_mlist');
$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);
$context['allow_view_smfarticles'] = allowedTo('view_articles');

$context['allow_view_smflinks'] = allowedTo('view_smflinks');

$context['allow_view_stafflist'] = allowedTo('view_stafflist');

$context['allow_downloads_view'] = allowedTo('downloads_view');

$context['allow_view_contact'] = allowedTo('view_contact');

$context['allow_moderation_center'] = $context['user']['can_mod'];
$context['allow_pm'] = allowedTo('pm_read');
$context['show_buddypage'] = allowedTo('user_buddypage');

    $context['allow_custom_button1'] = allowedTo('custombuttons_showbutton1');
    $context['allow_custom_button2'] = allowedTo('custombuttons_showbutton2');
    $context['allow_custom_button3'] = allowedTo('custombuttons_showbutton3');
    $context['allow_custom_button4'] = allowedTo('custombuttons_showbutton4');
    $context['allow_custom_button5'] = allowedTo('custombuttons_showbutton5');
    $context['allow_custom_button6'] = allowedTo('custombuttons_showbutton6');

// Aeva Media changes - recalculate number of unseen items
if (!empty($user_info['aeva_unseen']) && $user_info['aeva_unseen'] == -1)
{
global $sourcedir;
require_once($sourcedir . '/Aeva-Subs.php');
aeva_loadSettings();
}
// End Aeva Media changes

$cacheTime = $modSettings['lastActive'] * 60;

// All the buttons we can possible want and then some, try pulling the final list of buttons from cache first.
if (($menu_buttons = cache_get_data('menu_buttons-' . implode('_', $user_info['groups']) . '-' . $user_info['language'], $cacheTime)) === null || time() - $cacheTime <= $modSettings['settings_updated'])
{
$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => empty($modSettings['addremovetab_home']) ? true : false,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
// 'target' => '_blank',
),
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => empty($modSettings['addremovetab_help']) ? true : false,
'sub_buttons' => array(
),
),
            'custom1' => array(
                'title' => !empty ($modSettings['label_custombuttons_1']) ? $modSettings['label_custombuttons_1'] : $txt['cb_default_1'],
                'href' => !empty ($modSettings['url_custombuttons_1']) ? $modSettings['url_custombuttons_1'] : $scripturl,
                'show' => $context['allow_custom_button1'] && !empty ($modSettings['enable_custombuttons_1']) ? true : false,
                'sub_buttons' => array(
                    'subbutton1' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons1_1']) ? $modSettings['label_subcustombuttons1_1'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons1_1']) ? $modSettings['url_subcustombuttons1_1'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons1_1']) ? true : false
                        ),
                    'subbutton2' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons1_2']) ? $modSettings['label_subcustombuttons1_2'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons1_2']) ? $modSettings['url_subcustombuttons1_2'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons1_2']) ? true : false
                        ),                       
                    'subbutton3' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons1_3']) ? $modSettings['label_subcustombuttons1_3'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons1_3']) ? $modSettings['url_subcustombuttons1_3'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons1_3']) ? true : false
                        ),
                    'subbutton4' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons1_4']) ? $modSettings['label_subcustombuttons1_4'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons1_4']) ? $modSettings['url_subcustombuttons1_4'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons1_4']) ? true : false
                        ),
                    ),                       
            ),
            'custom2' => array(
                'title' => !empty ($modSettings['label_custombuttons_2']) ? $modSettings['label_custombuttons_2'] : $txt['cb_default_2'],
                'href' => !empty ($modSettings['url_custombuttons_2']) ? $modSettings['url_custombuttons_2'] : $scripturl,
                'show' => $context['allow_custom_button2'] && !empty ($modSettings['enable_custombuttons_2']) ? true : false,
                'sub_buttons' => array(
                    'subbutton1' => array(
                    'title' => !empty ($modSettings['label_subcustombuttons2_1']) ? $modSettings['label_subcustombuttons2_1'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons2_1']) ? $modSettings['url_subcustombuttons2_1'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons2_1']) ? true : false
                        ),
                    'subbutton2' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons2_2']) ? $modSettings['label_subcustombuttons2_2'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons2_2']) ? $modSettings['url_subcustombuttons2_2'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons2_2']) ? true : false
                        ),                       
                    'subbutton3' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons2_3']) ? $modSettings['label_subcustombuttons2_3'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons2_3']) ? $modSettings['url_subcustombuttons2_3'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons2_3']) ? true : false
                        ),
                    'subbutton4' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons2_4']) ? $modSettings['label_subcustombuttons2_4'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons2_4']) ? $modSettings['url_subcustombuttons2_4'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons2_4']) ? true : false
                    ),
                ),
            ),
            'custom3' => array(
                'title' => !empty ($modSettings['label_custombuttons_3']) ? $modSettings['label_custombuttons_3'] : $txt['cb_default_3'],
                'href' => !empty ($modSettings['url_custombuttons_3']) ? $modSettings['url_custombuttons_3'] : $scripturl,
                'show' => $context['allow_custom_button3'] && !empty ($modSettings['enable_custombuttons_3']) ? true : false,
                'sub_buttons' => array(
                    'subbutton1' => array(
                    'title' => !empty ($modSettings['label_subcustombuttons3_1']) ? $modSettings['label_subcustombuttons3_1'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons3_1']) ? $modSettings['url_subcustombuttons3_1'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons3_1']) ? true : false
                        ),
                    'subbutton2' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons3_2']) ? $modSettings['label_subcustombuttons3_2'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons3_2']) ? $modSettings['url_subcustombuttons3_2'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons3_2']) ? true : false
                        ),                       
                    'subbutton3' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons3_3']) ? $modSettings['label_subcustombuttons3_3'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons3_3']) ? $modSettings['url_subcustombuttons3_3'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons3_3']) ? true : false
                        ),
                    'subbutton4' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons3_4']) ? $modSettings['label_subcustombuttons3_4'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons3_4']) ? $modSettings['url_subcustombuttons3_4'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons3_4']) ? true : false
                    ),
                ),
            ),
            'custom4' => array(
                'title' => !empty ($modSettings['label_custombuttons_4']) ? $modSettings['label_custombuttons_4'] : $txt['cb_default_4'],
                'href' => !empty ($modSettings['url_custombuttons_4']) ? $modSettings['url_custombuttons_4'] : '',
                'show' => $context['allow_custom_button4'] && !empty ($modSettings['enable_custombuttons_4']) ? true : false,
                'sub_buttons' => array(
                    'subbutton1' => array(
                    'title' => !empty ($modSettings['label_subcustombuttons4_1']) ? $modSettings['label_subcustombuttons4_1'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons4_1']) ? $modSettings['url_subcustombuttons4_1'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons4_1']) ? true : false
                        ),
                    'subbutton2' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons4_2']) ? $modSettings['label_subcustombuttons4_2'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons4_2']) ? $modSettings['url_subcustombuttons4_2'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons4_2']) ? true : false
                        ),                       
                    'subbutton3' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons4_3']) ? $modSettings['label_subcustombuttons4_3'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons4_3']) ? $modSettings['url_subcustombuttons4_3'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons4_3']) ? true : false
                        ),
                    'subbutton4' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons4_4']) ? $modSettings['label_subcustombuttons4_4'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons4_4']) ? $modSettings['url_subcustombuttons4_4'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons4_4']) ? true : false
                    ),
                ),
            ),
            'custom5' => array(
                'title' => !empty ($modSettings['label_custombuttons_5']) ? $modSettings['label_custombuttons_5'] : $txt['cb_default_5'],
                'href' => !empty ($modSettings['url_custombuttons_5']) ? $modSettings['url_custombuttons_5'] : '',
                'show' => $context['allow_custom_button5'] && !empty ($modSettings['enable_custombuttons_5']) ? true : false,
                'sub_buttons' => array(
                    'subbutton1' => array(
                    'title' => !empty ($modSettings['label_subcustombuttons5_1']) ? $modSettings['label_subcustombuttons5_1'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons5_1']) ? $modSettings['url_subcustombuttons5_1'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons5_1']) ? true : false
                        ),
                    'subbutton2' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons5_2']) ? $modSettings['label_subcustombuttons5_2'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons5_2']) ? $modSettings['url_subcustombuttons5_2'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons5_2']) ? true : false
                        ),                       
                    'subbutton3' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons5_3']) ? $modSettings['label_subcustombuttons5_3'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons5_3']) ? $modSettings['url_subcustombuttons5_3'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons5_3']) ? true : false
                        ),
                    'subbutton4' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons5_4']) ? $modSettings['label_subcustombuttons5_4'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons5_4']) ? $modSettings['url_subcustombuttons5_4'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons5_4']) ? true : false
                    ),
                ),
            ),
            'custom6' => array(
                'title' => !empty ($modSettings['label_custombuttons_6']) ? $modSettings['label_custombuttons_6'] : $txt['cb_default_6'],
                'href' => !empty ($modSettings['url_custombuttons_6']) ? $modSettings['url_custombuttons_6'] : '',
                'show' => $context['allow_custom_button6'] && !empty ($modSettings['enable_custombuttons_6']) ? true : false,
                'sub_buttons' => array(
                    'subbutton1' => array(
                    'title' => !empty ($modSettings['label_subcustombuttons6_1']) ? $modSettings['label_subcustombuttons6_1'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons6_1']) ? $modSettings['url_subcustombuttons6_1'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons6_1']) ? true : false
                        ),
                    'subbutton2' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons6_2']) ? $modSettings['label_subcustombuttons6_2'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons6_2']) ? $modSettings['url_subcustombuttons6_2'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons6_2']) ? true : false
                        ),                       
                    'subbutton3' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons6_3']) ? $modSettings['label_subcustombuttons6_3'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons6_3']) ? $modSettings['url_subcustombuttons6_3'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons6_3']) ? true : false
                        ),
                    'subbutton4' => array(
                        'title' => !empty ($modSettings['label_subcustombuttons6_4']) ? $modSettings['label_subcustombuttons6_4'] : '',
                        'href' => !empty ($modSettings['url_subcustombuttons6_4']) ? $modSettings['url_subcustombuttons5_4'] : $scripturl,
                        'show' => !empty ($modSettings['label_subcustombuttons6_4']) ? true : false
                    ),
                ),
            ),

'search' => array(
'title' => $txt['search'],
'href' => $scripturl . '?action=search',
'show' => $context['allow_search'] && empty($modSettings['addremovetab_search']) ? true : false,
'sub_buttons' => array(
),
),


the only thing that looks weird to me is the code above yours, which is aeva media's, then above that it loks like yours as well...? weird because i installed aeva's mod well before yours...
If you have any support questions, feel free to ask - be safe in the knowledge that I won't help because... I know nothing!

thellie

#79
now i'm getting failures when trying to uninstall - will do so manually.
EDIT: that's just a stupid comment - i've added more mods since, so of course it won't uninstall automatically...  :-[

there isn't some hidden enabling checkbox is there...?



however, since the install aeva's button isn't showing up either.
If you have any support questions, feel free to ask - be safe in the knowledge that I won't help because... I know nothing!

Advertisement: