Responsive SMF Themes. We're currently working on brand spankin' new Responsive SMF themes for SMF 2.1

Menu Icons 1.0

Mick in Mods on Dec 12, 2010

Menu Icons 1.0


COMPATIBLE WITH SMF 2.0

To install on custom themes, tick the themes you want this mod to appear upon installation. If you forget, simply copy the "menu_icons" folder to your theme's image folder.


Bug Fixes / Updates
1.) Created v.1.0 on December 12th 2010
2.) Added 'ALT' tags to make images valid xhmtl.   December 13th 2010
3.) Fixed an Undifined error December 16th 2010
4.) Added support to rc2 & rc3. December 17th 2010
5.) Added support to RC5. March 2011
6.) Updated to SMF 2.0 | June 2011
7.) Updated to SMF 2.0.2 | December 2012
8.) Updated to SMF 2.0 | July 2018


This mod installs a set of icons on your SMF menu.

Images used: Fam Fam Fam Icons

If you need support or need customize help, please post in the thread at SimpleMachines.org and @ idesignSMF.com Thanks!!

Tagged with: menu icons rc4 mod 


Mick

Mick G

idesignsmf.com

    

Mick is an American theme designer for Simple Machines Forum software currently living in South Florida, USA. He runs idesignSMF and started tinkering with SMF in 2006 where he created several SMF forums of his own before he founded idesignSMF in 2009 to which he is dedicated full time and has a weakness for Tacos and Pizza.


46 Comments

Updated with 'ALT' tags to make images valid xhmtl.  ;)
1

Fixed an Undefined error.  Zip updated  ;)
2

For those using mods like: gallery, arcade, etc..


Open:
/Sources/Subs.php

For SMF Gallery mod:

Find:

				'title' => $txt['smfgallery_menu'],

Replace with:

				'title' => '<img align="absMiddle" src="'. $settings['images_url']. '/menu_icons/yourimage.png" alt="'.$txt['smfgallery_menu']. '"/>&nbsp; ' . $txt['smfgallery_menu'],



For SMF Arcade mod:

Find:

				'title' => $txt['arcade'],

Replace with:

				'title' => '<img align="absMiddle" src="'. $settings['images_url']. '/menu_icons/yourimage.png" alt="'.$txt['arcade']. '"/>&nbsp; ' . $txt['arcade'],


For custom menus....


				'title' => '<img align="absMiddle" src="[url=http://www.yoursite.com/Themes/default/images/menu_icons/yourimage.png"]yoursite.com: The Leading Website Site on the Net[/url] alt="My websites" />&nbsp; ' .'My Websites',



Replace:
-'My Websites' with your own menu title.
-'yourimage.png' with the name of your image of choice.
-'yoursite.com' with your own URL.

Load your images to:
your_theme/images/menu_icons

Image list:
http://www.famfamfam.com/lab/icons/silk/previews/index_abc.png

Icons ZIP included below....
3

New zip loaded to cover all  rc2, rc3, rc4 versions.  ;)
4

Hey, i need some help, could you take a look at this please?

Link to my site: http://www.efclan.eu
SMF version: SMF2 RC4
TP version: TinyPortal 1.0 RC1
Default Forum Language: English
Theme name and version: Catamosphere by Shine-Art & Smf Personal
Browser Name and Version: Firefox
Mods installed: Aeva Media 1.4c - MCLegendII RC3 3.0 - Member Color Link 3.0.8 - Curve_centered_menu 1.2 - Menu_Icons 1.0 - Custom Buttons / tabs and menus
Related Error messages: Error message here

I have also posted over at SMF about my problems, but days goes by and i dont get support for it, was wondering if someone here was willing to help me. I have installed silk famfamfam icons to my main menu using this MOD: http://www.simplemachines.org/community/index.php?topic=413131.0, but i am missing for the following buttons, since the code is not same. Can you show me how to add a button for TP, AEVA and for Custom buttons?

Tinyportal

'tpadmin' => array(
'title' => 'TinyPortal',
'href' => $scripturl . '?action=tpadmin',
'show' =>  TPcheckAdminAreas(),
'sub_buttons' => array(
),
),

Aeva

// Aeva Media changes
         'media' => array(
            'title' => (isset($txt['aeva_gallery']) ? $txt['aeva_gallery'] : 'Media') . (!allowedTo('aeva_access_unseen') || empty($user_info['aeva_unseen']) || $user_info['aeva_unseen'] == -1 ? '' : ' [<b>' . $user_info['aeva_unseen'] . '</b>]'),
            'href' => $scripturl . '?action=media',
            'show' => allowedTo('aeva_access'),
            'sub_buttons' => !allowedTo('aeva_access_unseen') || empty($user_info['aeva_unseen']) || $user_info['aeva_unseen'] == -1 ? array() : array(
               'aeva_home' => array(
                  'title' => $txt['aeva_home'],
                  'href' => $scripturl . '?action=media',
                  'show' => true,
               ),
               'aeva_unseen' => array(
                  'title' => $txt['aeva_unseen'],
                  'href' => $scripturl . '?action=media;sa=unseen',
                  'show' => true,
                  'is_last' => true,
               ),
            ),
         ),

Custom Buttons / tabs and menus

            '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
                        ),

5

I'm at work now. I will look at it and help you tonight ;)
6

hey again,
are you available today? Would really be nice if this got fixed, since the site looks incomplete when vital icons are missing from mainmenu.. Thanks again.

Greets
Kimmen
7

What is "custom1"?   Is that the custom menu mod by Tyresson?

I want to replicate it in my test site.  ;)
8


Still need some help with this.
10

For tinyportal...

'tpadmin' => array(
'title' => '<img align="absMiddle" src="http://www.yoursite.com/Themes/default/images/menu_icons/yourimage.png" alt="TinyPortal" />&nbsp; 'TinyPortal',
'href' => $scripturl . '?action=tpadmin',
'show' =>  TPcheckAdminAreas(),
'sub_buttons' => array(
),
),


For Aeva....

// Aeva Media changes
         'media' => array(
            'title' => '<img align="absMiddle" src="http://www.yoursite.com/Themes/default/images/menu_icons/yourimage.png" alt="Media" />&nbsp;' . (isset($txt['aeva_gallery']) ? $txt['aeva_gallery'] : 'Media') . (!allowedTo('aeva_access_unseen') || empty($user_info['aeva_unseen']) || $user_info['aeva_unseen'] == -1 ? '' : ' [<b>' . $user_info['aeva_unseen'] . '</b>]'),
            'href' => $scripturl . '?action=media',
            'show' => allowedTo('aeva_access'),
            'sub_buttons' => !allowedTo('aeva_access_unseen') || empty($user_info['aeva_unseen']) || $user_info['aeva_unseen'] == -1 ? array() : array(
               'aeva_home' => array(
                  'title' => '<img align="absMiddle" src="http://www.yoursite.com/Themes/default/images/menu_icons/yourimage.png" alt="Media" />&nbsp;' . $txt['aeva_home'],
                  'href' => $scripturl . '?action=media',
                  'show' => true,
               ),
               'aeva_unseen' => array(
                  'title' => '<img align="absMiddle" src="http://www.yoursite.com/Themes/default/images/menu_icons/yourimage.png" alt="UnSeen" />&nbsp;' . $txt['aeva_unseen'],
                  'href' => $scripturl . '?action=media;sa=unseen',
                  'show' => true,
                  'is_last' => true,
               ),
            ),
         ),


Im still working on your other code..
11

Thanks, AEVA works, but Tinyportal not.
12

Thanks, AEVA works, but Tinyportal not.

Ooops,

'tpadmin' => array(
'title' => '<img align="absMiddle" src="http://www.yoursite.com/Themes/default/images/menu_icons/yourimage.png" alt="TinyPortal" />&nbsp; ' . 'TinyPortal',
'href' => $scripturl . '?action=tpadmin',
'show' =>  TPcheckAdminAreas(),
'sub_buttons' => array(
),
),
13

Awesome, that works like a charm  ;D
14



Connect with us:


Improve SMF

If you wish to contribute to the development of SMF you can contribute to the coding discussions taking place on Github. You are also welcome to suggest features which you would like to see added to the software in the Feature Requests board.

  Receive our monthly newsletter right in your inbox.
Commitment issues? Unsubscribe at any time.


Get 100% complete access to our entire collection and find out why SMF owners prefer our themes





Latest Discussions

Join the conversation