News:

Wondering if this will always be free?  See why free is better.

Main Menu

Simple Menu Icons

Started by Diego Andrés, December 28, 2012, 05:00:10 PM

Previous topic - Next topic

Diego Andrés

Link to the mod




Simple Menu Icons
Developed by: Diego Andrés

Introduction
Simple Menu Icons you can put icons in the menu, and if you add new buttons, you don't have to make manually changes, only add images.

Features

  • Enable/disable menu icons

Languages



GitHub

Credits
FatCow-Farm Fresh Icons: Thanks to FatCow.com. Licensed under CCL

SMF Tricks - Free & Premium Responsive Themes for SMF.

novill

Nice mod, thanks. :)

It seems that i make a ico file to the Themes/../images/smi/ folder and its ready to use. There is no more settings to this mod? In the Administration Center » Modification Settings » Simple Menu Icons is just the enable Simple Menu Icons option.

Diego Andrés

Yes, that's the only setting that this mod have.

SMF Tricks - Free & Premium Responsive Themes for SMF.

teos55

smf 2.0.3  default theme simple portal 2.3.5

  Can you pls clerify "if you add new buttons, you don't have to make manually changes, only add images"


Will the image name be the same with the button name ?

eg.  Google Tagged   is the button, what will be the image name ?

Diego Andrés

Doesn't mean I have EVERYTHING.
You can always find or install a mod and then ask here to add it.

Regards.

When i get home i attach you de image to upload.

SMF Tricks - Free & Premium Responsive Themes for SMF.

teos55

Thanks for the clerification.  I have the famfamfam icons copied to my locak disk, so I can use one of the proper one for
Google Tagged.
  My quesiton was the naming convention.
If I copy one of the famfamfam icon and rename it to "Google Tagged.png" , will it work ?
Thanks


nb.  I tried what I planned but didnt work.


Diego Andrés

No, I can't see the mod right now as I said.
Check what you see on ?action= and type the name of the action for name de image.
Don't now if is right because i can't see in this moment.
Try with that.

Regards

SMF Tricks - Free & Premium Responsive Themes for SMF.

teos55

Great !

  ?action is the answer.  Copied an icon and renamed to tagged.png  and worked  ..

Thanks again.


smitch6

i will be using this mod soon once i figure out how to install it
as it is showing an error in .sources/subs.php   so i will have to change that manually.

as for the icons i gather that you just name them the same as the tab?
ie. home would be home.png
admin would be admin.png
etc etc
and then upload the image to the smi folder
Friendly, reliable web hosting at affordable prices
www.normanboatforum.co.uk l www.PatTesterSuffolk.co.uk

teos55

Please read above for file name convention.

"Check what you see on ?action= and type the name of the action for the name of the image."

Place your cursor on the menubutton  for that funciton and look down left for the name in the browser after "?action=xyz"
xyz is the file name for the image.

smitch6

yes got it sorted thanks :)
just changed the sources/subs.php file and did what i said in my previous post just changed the name of the icon to what was needed and it's all working

great mod thanks :)
Friendly, reliable web hosting at affordable prices
www.normanboatforum.co.uk l www.PatTesterSuffolk.co.uk

GL700Wing

Fantastic mod - very elegant in its simplicity!!

I made a minor change to also show icons for third level/grandchildren menus.
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

N i g h t m a r e

I see to get Two icons for each Menu Option, any idea why or how i can fix this?

Diego Andrés

Maybe you installed the mod twice, or you have also the other mod "menu icons" installed at the same time.

SMF Tricks - Free & Premium Responsive Themes for SMF.

N i g h t m a r e

Quote from: Diego Andrés on September 29, 2013, 11:25:32 PM
Maybe you installed the mod twice, or you have also the other mod "menu icons" installed at the same time.


I figured it out, i had my theme installed twice on accident and i clicked it twice. Hard to explain but anyways, I fixed it.

GamePersia

How to add more icons,..in different tab,..like contact tab ??

Diego Andrés

Quote from: GamePersia on February 06, 2014, 07:07:21 AM
How to add more icons,..in different tab,..like contact tab ??

Do you mean adding an icon to another button?
You just have to upload your icon in Themes/default/images/smi/
Remember that it has to be named action.png
If your page is something like action=contactform
Then the icon name should be contactform.png

SMF Tricks - Free & Premium Responsive Themes for SMF.

GamePersia

Quote from: Diego Andrés on February 06, 2014, 07:29:05 AM
Quote from: GamePersia on February 06, 2014, 07:07:21 AM
How to add more icons,..in different tab,..like contact tab ??

Do you mean adding an icon to another button?
You just have to upload your icon in Themes/default/images/smi/
Remember that it has to be named action.png
If your page is something like action=contactform
Then the icon name should be contactform.png
I have done as you said,..But not showing that icon in menu !...... :'(
I have inserted icon in : Themes/default/images
But i cannot find smi.,..So i placed 16x16 logo in images folder,..where other icons is placed !!
My smf is 2.0.7
Help Needed !!!

Diego Andrés

Please check that the icon is named correctly.
Leave the URL of your website to see.

SMF Tricks - Free & Premium Responsive Themes for SMF.

GamePersia

Quote from: Diego Andrés on February 07, 2014, 07:24:33 AM
Please check that the icon is named correctly.
Leave the URL of your website to see.
Yes i checked twice,..but not working !!
url : http://gamepersia.url.ph/index.php

medialiveshere

Hi!

I installed the Simple Menu Icons mod on SMF 2.0.7 but the mod was in a conflict with the theme so I uninstalled it. Unfortunately, something of it was not unstalled properly because in the mod settings in the admin panel there is an empty space in the submenu which is linked and points to a page with url .... /index.php?action=admin;area=modsettings;sa=smi.... But as there is no Simple Menu Icons Mod, it points to Miscellaneous.

Can you help me fix this bug? Thank you!

Diego Andrés

Quote from: GamePersia on February 07, 2014, 09:21:01 AM
Quote from: Diego Andrés on February 07, 2014, 07:24:33 AM
Please check that the icon is named correctly.
Leave the URL of your website to see.
Yes i checked twice,..but not working !!
url : http://gamepersia.url.ph/index.php

I just checked your website, but you seem to be confused, you're not using my mod, you are using "Menu Icons". http://www.simplemachines.org/community/index.php?topic=413131.0



Quote from: medialiveshere on February 07, 2014, 06:42:32 PM
Hi!

I installed the Simple Menu Icons mod on SMF 2.0.7 but the mod was in a conflict with the theme so I uninstalled it. Unfortunately, something of it was not unstalled properly because in the mod settings in the admin panel there is an empty space in the submenu which is linked and points to a page with url .... /index.php?action=admin;area=modsettings;sa=smi.... But as there is no Simple Menu Icons Mod, it points to Miscellaneous.

Can you help me fix this bug? Thank you!

Hey there, just use follow the instructions of the parser for the mod. But in an inverted way. If you have problems attach the file/files. (ManageSettings.php, Subs.php, Admin.php)

SMF Tricks - Free & Premium Responsive Themes for SMF.

medialiveshere

QuoteHey there, just use follow the instructions of the parser for the mod. But in an inverted way. If you have problems attach the file/files. (ManageSettings.php, Subs.php, Admin.php)
Thanks a lot for the help! I found the line that caused it in admin.php:

// Note the comma!! The setting with automatically appear with the first mod to be added.
                  'smi' => array($txt['smi']),


and I removed    'smi' => array($txt['smi']),
now it is fine

GamePersia

Quote from: Diego Andrés on February 07, 2014, 11:43:22 PM
Quote from: GamePersia on February 07, 2014, 09:21:01 AM
Quote from: Diego Andrés on February 07, 2014, 07:24:33 AM
Please check that the icon is named correctly.
Leave the URL of your website to see.
Yes i checked twice,..but not working !!
url : http://gamepersia.url.ph/index.php

I just checked your website, but you seem to be confused, you're not using my mod, you are using "Menu Icons". http://www.simplemachines.org/community/index.php?topic=413131.0
Oh,...i removed previous mod,..And installed your mod.!!
But now not a single icon is showing on menu bar !!... :'(

Diego Andrés

Did you enable the mod in the admin center?

SMF Tricks - Free & Premium Responsive Themes for SMF.

GamePersia

Quote from: Diego Andrés on February 09, 2014, 10:05:01 PM
Did you enable the mod in the admin center?
;D ;D ;D
It worked,...Thanks,..

WBSI

Installed this mod successfully, and menu icons are not showing up.  Ideas?

Diego Andrés


SMF Tricks - Free & Premium Responsive Themes for SMF.

WBSI

Thank you for the quick response!  Yes I have...it is showing with a check mark.  Running version 2.06...mod installed automatically using the admin interface.  Verified that the smi folder is in place on the server.

Diego Andrés

Did the mod install correctly on your theme?

SMF Tricks - Free & Premium Responsive Themes for SMF.

WBSI

Thank you, I emailed you my forum details.

WBSI

OK, so I should uninstall the mod, and reinstall making sure that the checkbox is checked for the installed theme also.  I believe it was, but will try again.  I apologize for the basic questions, but I have not had much experience isntalling mods for SMF.

WBSI

That worked!  Your support was timely and excellent.  Cheers!   :)

Siirist

Okay,

I installed the mod. It did say that it had issues with ONE of my themes, but that theme is not being used so I didn't "check" it.

Mod installed without issues.

Refreshed screen and no icons.  :(

Went and verified smi folder in themes/default/images folder.

Parsed for SMF ver. 2.0.11

Checked for each and every change and all changes were made.

Still have NO ICONS.   :-\

Hoping that some one will have some idea of what to do next.

Again, I am running SMF ver 2.0.11 ,  I have Ostara as the default template for 5 days now. I have the following themes -> "SMF Default Theme - Curve, Bright Forest, Habbingo, Habboland (didn't install on this theme because it failed) and Ostara

I have the following mods installed:
1.    Custom Copyright    1.0.4    Installed yesterday without any visible issues
2.    Simple Menu Icons    1.0
3.    SMF Gallery Lite    5.6    Installed 12 hours ago without any visible issues
4.    PM Warning    1.0
5.    Topic Solved    1.1.1
6.    Google Translate for SMF 2.0    1.4
7.    SMF 2.0.11 Update    1.0
8.    Optimus Brave    1.8.7   Installed yesterday without any visible issues
9.    Default_Membergroup    2.0
10.    Welcome Back    1.0      Installed 2 days ago without any visible issues
11.    Enhanced Dropdown    1.3
12.    Board-color-and-icons    1.1
13.    Caps_Lock_Detection_on_Login    1.1.0.2

I await a reply.

Be Well,
Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Diego Andrés

Have you enabled the mod in mod settings?

SMF Tricks - Free & Premium Responsive Themes for SMF.

Siirist

Quote from: Diego Andrés on January 11, 2016, 04:12:15 PM
Have you enabled the mod in mod settings?

Diego,

Thanks for your reply  :)

That was "Simple".

Fully functional as well.  :-[

The Admin icon is using
What file do I edit   :-\

Be Well,
Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Siirist

Hi,

The way I corrected this was to delete the search.png (magnifying glass) AND the admin.png (gear) = no icon,

then I uploaded the admin.png (gear) = no icon,

then I renamed admin.png (gear) to search.png,

and then I got the gear to appear next to Admin.   ;D

Not the right way, but it worked.   ;)

Be Well,
Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

skb

Hi Diego,

Want to use the Mod, but have some problems. I have installed a few Mods that add buttons to the Menu, like Notepad, Like and Enhancement to recent posts, which have sub menus.

In the second one, the "Posts" & "New Posts" (child of Posts) both use "action=unread". How do I deal with that ?
Notepad has a "pop up in new window" option that also uses action=notepad. Any suggestions ?

SMF 2.1.4 / TP 2.2.2

Siirist

Quote from: skb on June 03, 2016, 03:54:39 AM
Hi Diego,

Want to use the Mod, but have some problems. I have installed a few Mods that add buttons to the Menu, like Notepad, Like and Enhancement to recent posts, which have sub menus.

In the second one, the "Posts" & "New Posts" (child of Posts) both use "action=unread". How do I deal with that ?
Notepad has a "pop up in new window" option that also uses action=notepad. Any suggestions ?

Hi skb,
I believe to answer your question, the person answering will find this information helpful:
- What MODs are installed?
- What Theme are you using?
- What SMF version are you using?
- a link to your site can be helpful.

Best Wishes,
Siriist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Diego Andrés

#40
Quote from: skb on June 03, 2016, 03:54:39 AMHi Diego,

Want to use the Mod, but have some problems. I have installed a few Mods that add buttons to the Menu, like Notepad, Like and Enhancement to recent posts, which have sub menus.

In the second one, the "Posts" & "New Posts" (child of Posts) both use "action=unread". How do I deal with that ?
Notepad has a "pop up in new window" option that also uses action=notepad. Any suggestions ?

The only thing you would need to know is the action.
Once you got that, you just go to the SMI folder and add your icons, the name of each file should be action.png

SMF Tricks - Free & Premium Responsive Themes for SMF.

skb

I sorted out the problem with the Right Click / Open image in New Tab
and then using those names. With the action="name" process I was having difficulty with things like this
action=unread;all;start=0

SMF 2.1.4 / TP 2.2.2

Siirist

Hi Diego,

I am using ver 2.0.11

I installed a newly created theme, and I have installed SF Knowledge Base Mod and SMF Article Mod, and SMF Gallery.

The menu didn't appear on the new theme so I un-installed and re-installed. Worked perfect.

Problem = Knowledge Base, SMF Article, and SMF Gallery are in the menu, but there are no icons for them.

I know to upload the attached ones to Themes/default/images/smi, but don't know how to write the path to them.

I thank you in advance for any help you can give.

Be Well,
Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Diego Andrés

You need to name the icons with the menu action.
E.g, if the gallery link says action=gallery, the icon should be gallery.png

SMF Tricks - Free & Premium Responsive Themes for SMF.

br360

Try naming those icons articles.png, gallery.png and kb.png

Siirist

#45
Quote from: Diego Andrés on July 10, 2016, 01:59:50 PM
You need to name the icons with the menu action.
E.g, if the gallery link says action=gallery, the icon should be gallery.png

Thank you Diego, I read that in a previous post, but it didn't make sense. Sorry.   :-[    I understand it now.   :)

Quote from: br360 on July 10, 2016, 02:00:58 PM
Try naming those icons articles.png, gallery.png and kb.png

Will do. Thank you br360.    ;)

EDIT: Um, which php file?

Be Well,
Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Kindred

No php file.   Name the actual image files like the action
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

skb

Quote from: Siirist on July 10, 2016, 01:10:49 PM

Problem = Knowledge Base, SMF Article, and SMF Gallery are in the menu, but there are no icons for them.


Another method. Right click on the missing icon and select "open image in new tab". That tab will say 404 / Not found but will give you the name for the icon that the software is searching for. Upload your icons with those names & it will begin to work.

SMF 2.1.4 / TP 2.2.2

Siirist

Quote from: skb on July 11, 2016, 02:38:27 AM
Quote from: Siirist on July 10, 2016, 01:10:49 PM

Problem = Knowledge Base, SMF Article, and SMF Gallery are in the menu, but there are no icons for them.


Another method. Right click on the missing icon and select "open image in new tab". That tab will say 404 / Not found but will give you the name for the icon that the software is searching for. Upload your icons with those names & it will begin to work.

Hi skb,
Doing this just loaded the window, no error. A good thing I believe.  :P

Quote from: Kindred on July 10, 2016, 11:13:27 PM
No php file.   Name the actual image files like the action

Hey Kindred,   :)
Yup, perfectly, exactly, correct.

Quote from: br360 on July 10, 2016, 02:00:58 PM
Try naming those icons articles.png, gallery.png and kb.png

*nods* uh huh



So, what was my issue?  Why didn't it work? 
I had uploaded the files: Article.png, Gallery.png, and KB.png
What was the problem?

The solution=

  • Rename Article.png to articles.png
  • Rename Gallery.png to gallery.png
  • Rename KB.png to kb.png

Amazing that just Capitalizing a single letter can do.

Be Well,
Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Kindred

Yes... unlike Windoze --  variable names in php and filenames in Linux are case sensitive
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

aegersz

is is too much of a hassle to simply not display any icon for the menu buttons that it can't find ?

i like the mod but have many mods and changes to the app bar and i don't want to mess around adding images for them.

if it's too much hassle then i will not bother but thanks anyway.
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Siirist

Quote from: aegersz on July 15, 2016, 08:26:33 AM
is is too much of a hassle to simply not display any icon for the menu buttons that it can't find ?
The purpose of the mod is to add icons to the menu.
If there is no image "directed" at the menu item, that menu item will appear like this   Profile Profile


Quote
i like the mod

What is it that you like?

Quote
but have many mods and changes to the app bar and i don't want to mess around adding images for them.

The number of mods that you have has no bearing on the functionality of this mod.


Best Wishes,
Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

aegersz

I like the little icons because it looks nice.

what I mean is that I have many options on the app bar and the doubling up of the functions without the little icons goes over 3 lines.

eg. Downloads, Knowledge Base, Gallery - all mods that end up on the app bar ... i have 95 mods on.

no problem, just thought it would be an easy change.
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Advertisement: