Advertisement:

Author Topic: Simple Menu Icons  (Read 13926 times)

Offline Diego Andrés

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,016
  • Gender: Male
  • We know, we'll be coming
    • DiegoCortes on GitHub
    • @comeladrillos on Twitter
    • SMF Tricks - Free & Premium Themes
Re: Simple Menu Icons
« Reply #40 on: June 03, 2016, 09:45:52 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 ?

The only think 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.

Offline skb

  • Semi-Newbie
  • *
  • Posts: 98
    • Metabolically Challenged
Re: Simple Menu Icons
« Reply #41 on: June 06, 2016, 05:01:50 AM »
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
Learning, every day.
Forum - The Diabetic Pub
Because every diabetic needs help
SMF 2.0.11 (default theme) / TP 1.2

Offline Siirist

  • Sophist Member
  • *****
  • Posts: 1,121
  • Gender: Male
  • What would Kindred or Illori do?
    • A Sanctuary (Support for Survivors of abuse/Info for Family & Friends)
Re: Simple Menu Icons
« Reply #42 on: July 10, 2016, 01:10:49 PM »
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 <--
NOTE: Mods for ver 1.x will NOT run on ver 2.x

Our Dog Training Forum (guest area)
SMF ver. 2.0.11, 15 Mods, Custom Theme-Clarity (sort of), I use SMF Admin Database to BackUp DAILY.

Offline Diego Andrés

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,016
  • Gender: Male
  • We know, we'll be coming
    • DiegoCortes on GitHub
    • @comeladrillos on Twitter
    • SMF Tricks - Free & Premium Themes
Re: Simple Menu Icons
« Reply #43 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

SMF Tricks - Free & Premium Responsive Themes for SMF.

Online br360

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,454
    • GenXcommunity
Re: Simple Menu Icons
« Reply #44 on: July 10, 2016, 02:00:58 PM »
Try naming those icons articles.png, gallery.png and kb.png

Offline Siirist

  • Sophist Member
  • *****
  • Posts: 1,121
  • Gender: Male
  • What would Kindred or Illori do?
    • A Sanctuary (Support for Survivors of abuse/Info for Family & Friends)
Re: Simple Menu Icons
« Reply #45 on: July 10, 2016, 06:59:01 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.   :)

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

Will do. Thank you br360.    ;)

EDIT: Um, which php file?

Be Well,
Siirist
« Last Edit: July 10, 2016, 07:09:50 PM by 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 <--
NOTE: Mods for ver 1.x will NOT run on ver 2.x

Our Dog Training Forum (guest area)
SMF ver. 2.0.11, 15 Mods, Custom Theme-Clarity (sort of), I use SMF Admin Database to BackUp DAILY.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 51,692
  • Gender: Male
    • Kindred-999 on GitHub
Re: Simple Menu Icons
« Reply #46 on: July 10, 2016, 11:13:27 PM »
No php file.   Name the actual image files like the action
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support forums.  Thank you.

Offline skb

  • Semi-Newbie
  • *
  • Posts: 98
    • Metabolically Challenged
Re: Simple Menu Icons
« Reply #47 on: July 11, 2016, 02:38:27 AM »

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.
Learning, every day.
Forum - The Diabetic Pub
Because every diabetic needs help
SMF 2.0.11 (default theme) / TP 1.2

Offline Siirist

  • Sophist Member
  • *****
  • Posts: 1,121
  • Gender: Male
  • What would Kindred or Illori do?
    • A Sanctuary (Support for Survivors of abuse/Info for Family & Friends)
Re: Simple Menu Icons
« Reply #48 on: July 11, 2016, 09:16:23 AM »

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

No php file.   Name the actual image files like the action

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

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 <--
NOTE: Mods for ver 1.x will NOT run on ver 2.x

Our Dog Training Forum (guest area)
SMF ver. 2.0.11, 15 Mods, Custom Theme-Clarity (sort of), I use SMF Admin Database to BackUp DAILY.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 51,692
  • Gender: Male
    • Kindred-999 on GitHub
Re: Simple Menu Icons
« Reply #49 on: July 11, 2016, 09:34:23 AM »
Yes... unlike Windoze --  variable names in php and filenames in Linux are case sensitive
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support forums.  Thank you.

Offline aegersz

  • Full Member
  • ***
  • Posts: 600
  • Gender: Male
Re: Simple Menu Icons
« Reply #50 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 ?

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.

Offline Siirist

  • Sophist Member
  • *****
  • Posts: 1,121
  • Gender: Male
  • What would Kindred or Illori do?
    • A Sanctuary (Support for Survivors of abuse/Info for Family & Friends)
Re: Simple Menu Icons
« Reply #51 on: July 15, 2016, 06:25:36 PM »
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 <--
NOTE: Mods for ver 1.x will NOT run on ver 2.x

Our Dog Training Forum (guest area)
SMF ver. 2.0.11, 15 Mods, Custom Theme-Clarity (sort of), I use SMF Admin Database to BackUp DAILY.

Offline aegersz

  • Full Member
  • ***
  • Posts: 600
  • Gender: Male
Re: Simple Menu Icons
« Reply #52 on: July 16, 2016, 01:05:15 AM »
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.