Advertisement:

Author Topic: Menu Icons  (Read 56771 times)

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,971
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Menu Icons
« on: December 13, 2010, 05:13:55 PM »
Link to Mod

Menu Icons 1.0
By Mick G. idesignSMF.com

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.15 | 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!
« Last Edit: December 17, 2010, 04:57:47 PM by bluedevil »

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,971
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Menu Icons
« Reply #1 on: December 13, 2010, 05:21:32 PM »
For those using mods like: gallery, arcade, etc..


Open:
/Sources/Subs.php

For SMF Gallery mod:

Find:
Code: [Select]
'title' => $txt['smfgallery_menu'],
Replace with:
Code: [Select]
'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:
Code: [Select]
'title' => 'title' => $txt['arcade'],
Replace with:
Code: [Select]
'title' => '<img align="absMiddle" src="'. $settings['images_url']. '/menu_icons/yourimage.png" alt="'.$txt['arcade']. '"/>&nbsp; ' . $txt['arcade'],

For custom menus....

Code: [Select]
'title' => '<img align="absMiddle" src="http://www.yoursite.com/Themes/default/images/menu_icons/yourimage.png" alt="My websites" />&nbsp; ' .'My Websites',

SimplePortal

Find:

Code: [Select]
'title' => empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'],
Replace
Code: [Select]
'title' => '<img align="absMiddle" src="'. $settings['images_url']. '/menu_icons/yourimage.png" alt="'.$txt['sp-forum']. '"/>&nbsp; ' .  $txt['sp-forum'],



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....

« Last Edit: December 19, 2010, 11:02:32 AM by bluedevil »

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,188
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Menu Icons
« Reply #2 on: December 13, 2010, 05:22:35 PM »
Awesome idea it looks great on the default install will be adding it to my sites or something similar.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,971
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Menu Icons
« Reply #3 on: December 13, 2010, 05:24:14 PM »
Awesome idea it looks great on the default install will be adding it to my sites or something similar.


Thank you vb.  I saw a couple support threads asking about images on the menu. I figured why not. ;)

Offline Spoogs

  • SMF Hero
  • ******
  • Posts: 1,676
  • Gender: Male
Re: Menu Icons
« Reply #4 on: December 13, 2010, 06:45:16 PM »
Nice indeed :)

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,971
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Menu Icons
« Reply #5 on: December 13, 2010, 06:58:43 PM »

Offline tfs

  • Full Member
  • ***
  • Posts: 442
  • Gender: Male
Re: Menu Icons
« Reply #6 on: December 14, 2010, 01:22:10 AM »
Nice idea.  Looking forward to the writeup on adding to custom menus.
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

Offline kadhafi

  • Newbie
  • *
  • Posts: 8
Re: Menu Icons
« Reply #7 on: December 14, 2010, 06:41:32 AM »
How about rc3 brother?Please can you provide a tutorial on how to do it manually? I have gallery,downloads,smf portal installed

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,971
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Menu Icons
« Reply #8 on: December 14, 2010, 07:25:53 AM »
Nice idea.  Looking forward to the writeup on adding to custom menus.

I will today ;)


How about rc3 brother?Please can you provide a tutorial on how to do it manually? I have gallery,downloads,smf portal installed
Click on advanced at the bottom of your mod list and change it to rc3. Then install. ;)

Offline tesser

  • Jr. Member
  • **
  • Posts: 262
Re: Menu Icons
« Reply #9 on: December 14, 2010, 07:37:57 PM »
I found a bug on rc4

IF you have some of the menu tabs hidden then it files up the error logs like mad   here are my menu tabe i use

    * Admin
         
    * Moderate
         
    * Home

    * Search

    * Profile
         
    * My Messages
       
    * Members
         
    * Logout

my site action=admin
Apply Filter: Only show the errors with the same message
8: Undefined index: modsettings_title
Apply Filter: Only show the errors from this file
File: F:/xampp/htdocs/Sources/Subs.php
Line: 4095

my site action=shoutbox;sa=get;xml;row=0;restart
Apply Filter: Only show the errors with the same message
8: Undefined index: modsettings_title
Apply Filter: Only show the errors from this file
File: F:/xampp/htdocs/Sources/Subs.php
Line: 4095


my site /index.php?
Apply Filter: Only show the errors with the same message
8: Undefined index: modsettings_title
Apply Filter: Only show the errors from this file
File: F:/xampp/htdocs/Sources/Subs.php
Line: 4095

here is line 4095

Code: [Select]
==>4095:

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


unistall it no errors at all in my logs  no matter what i do i dont get errors

install it and im full of error  even if i stay on the log page and just click  refresh

it installs  perfect on rc4  no alerts on installing

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,971
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Menu Icons
« Reply #10 on: December 14, 2010, 08:16:22 PM »
@tesser

Do you have
Code: [Select]
$txt['modSettings_title'] = 'Features and Options'; in Themes/default/languages/index.english.php ??

Offline tesser

  • Jr. Member
  • **
  • Posts: 262
Re: Menu Icons
« Reply #11 on: December 14, 2010, 09:15:45 PM »
yes i do  have

Code: [Select]
$txt['modSettings_title'] = 'Features and Options';
« Last Edit: December 15, 2010, 08:02:59 PM by tesser »

Offline tesser

  • Jr. Member
  • **
  • Posts: 262
Re: Menu Icons
« Reply #12 on: December 16, 2010, 05:58:52 AM »
A bump on this if i may ?

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,971
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Menu Icons
« Reply #13 on: December 16, 2010, 02:47:45 PM »
@tesser

Load your Subs.php file so I can take a looksie.

Offline tesser

  • Jr. Member
  • **
  • Posts: 262
Re: Menu Icons
« Reply #14 on: December 16, 2010, 05:05:02 PM »
Is this what your after ? i did look for subs.php but could not see it.

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,971
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Menu Icons
« Reply #15 on: December 16, 2010, 05:09:35 PM »
Is this what your after ? i did look for subs.php but could not see it.


No.

Look in Sources/Subs.php

also please list your mods installed here..

Offline tesser

  • Jr. Member
  • **
  • Posts: 262
Re: Menu Icons
« Reply #16 on: December 16, 2010, 05:12:54 PM »
mods installed

1.    Effectively Remove SMF Logo    1.2    [ Uninstall ]
2.    SubAccounts Mod    1.0.1    [ Uninstall ]
3.    Registered Links    3.0    [ Uninstall ]
4.    Copyright & Footer Links | S-Ace    3.1    [ Uninstall ]
5.    Member Color Link    3.0.8    [ Uninstall ]
6.    Tidy Child Boards    1.3    [ Uninstall ]
7.    Menu Buttons    1.1    [ Uninstall ]
8.    InformationBar    1.0    [ Uninstall ]
9.    Add Honey Pot to Track IP    1.1    [ Uninstall ]
10.    Hide Edited Line    1.0.0    [ Uninstall ]
11.    Favicon    1.3    [ Uninstall ]
12.    Alternate User Posting    1.0    [ Uninstall ]
13.    ResizeImagesToFitScreen    0.1.6    [ Uninstall ]
14.    Errors in Who's Online    1.0    [ Uninstall ]
15.    Attachment MP3 Player    1.0.1    [ Uninstall ]
16.    Remove XHTML, RSS & WAP2 Links in Footer    v1.1    [ Uninstall ]
17.    sa_downloads    0.3.1 Rev23    [ Uninstall ]
18.    InLine Attachments    1.08    [ Uninstall ]
19.    Add IP2Location to Track IP    1.3    [ Uninstall ]
20.    SMFPacks Shoutbox    1.0    [ Uninstall ]
21.    Users Online Today    1.5.6    [ Uninstall ]
22.    SoLoSMiLeYS    1.0    [ Uninstall ]
23.    Search Focus Dropdown    1.51    [ Uninstall ]
24.    Read Sticky Topics    1.0.3    [ Uninstall ]
25.    Project Snow 1.1    1.1    [ Uninstall ]
26.    PM Sent Notification    1.0.5    [ Uninstall ]
27.    New Topic Button    1.0    [ Uninstall ]
28.    More Spiders    1.2    [ Uninstall ]
29.    Menu Order    0.2.5    [ Uninstall ]
30.    LMGTFY BBcode    3.0    [ Uninstall ]
31.    Install & Uninstall Mods Quickly    1.3    [ Uninstall ]
32.    H1 BBCode    1.1    [ Uninstall ]
33.    ENotify    2.0    [ Uninstall ]
34.    Align text with Smiley    1.1    [ Uninstall ]
35.    2-SI Chat    rev34

edit: i should point out Menu Icons is on my server but unistalled
« Last Edit: December 16, 2010, 05:17:14 PM by tesser »

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,971
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Menu Icons
« Reply #17 on: December 16, 2010, 05:20:27 PM »
Im going to look at your file but my guess is this mod is affecting it. 

29.    Menu Order    0.2.5     ......Dont know yet.....brb.

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,971
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Menu Icons
« Reply #18 on: December 16, 2010, 05:32:57 PM »
Its not your file.  Its a mess up of my part in the code.  I will update the zip in a minute.


Code: [Select]
'title' => '<img align="absMiddle" src="'. $settings['images_url']. '/menu_icons/joystick.png" alt="'.$txt['modsettings_title']. '"/>&nbsp; ' . $txt['modSettings_title'],
Notice "modsettings_title" ?  It should be "modSettings_title".




Offline tesser

  • Jr. Member
  • **
  • Posts: 262
Re: Menu Icons
« Reply #19 on: December 16, 2010, 05:37:25 PM »
Ty very much as this is one cool mod it realy makes a different look

Wonders how come no one else noticed the errors ???