News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Menu Icons

Started by Mick., December 13, 2010, 05:13:55 PM

Previous topic - Next topic

Raffoz

#140
thanks for the mod!

i installed it, ok...

i have Simple Portal and Menu Order.

I inserted the edit for SP

when i modify my subs.php, i can't see any icons in the primary menu, neither i can add to custom menu following your rules... :(
i see them only in sub menus!?! :(

i use italian language

can someone help me?
i attach the file...

thanks!!!
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

teh_Krall

Quote from: C4G-TK on July 06, 2011, 02:44:40 PM
Quote from: Jorge D. Fuentes on July 06, 2011, 02:20:46 PM
LOVE this.

However, since I also have the Aeva Media, the Google Member Map, and the Tag mods, some of the menu items (the ones corresponding to these mods) do not have their own little icon, so it looks slightly weird.  But yes, totally awesome-looking.  Gonna have to change the icons to match my theme though.  No biggie.

I added what you need to do for the Google Member Map above. (with help from Kindred and Spuds)

Also, I have it working for AEVA, so if you need any help let me know.  I normally check boards where I've posted.

I'm interested to know how you got it to work for AEVA please :)

Kindred

Quote from: Kindred on December 22, 2010, 09:38:39 AM

// Aeva Media changes
'media' => array(
'title' => '<img align="absMiddle" src="'. $settings['images_url']. '/menu_icons/gallery.png" alt="'.$txt['aeva_gallery']. '"/>&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' => !empty($modSettings['aeva_enable_gallery']) && 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="'. $settings['images_url']. '/menu_icons/gallery.png" alt="'.$txt['aeva_home']. '"/>&nbsp; ' .$txt['aeva_home'],
'href' => $scripturl . '?action=media',
'show' => true,
),
'aeva_unseen' => array(
'title' => '<img align="absMiddle" src="'. $settings['images_url']. '/menu_icons/gallery.png" alt="'.$txt['aeva_unseen']. '"/>&nbsp; ' .$txt['aeva_unseen'],
'href' => $scripturl . '?action=media;sa=unseen',
'show' => true,
'is_last' => true,
),
),
),
// End Aeva Media changes


and I found a good gallery image using the fam fam fam silk icons...
Сл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."

teh_Krall

Thanks Kindred, you da man :)

It would be cool if there was a way to mark posts that have work arounds/solutions somehow or have them kept in a sub forum. 

Kindred

you know...... there is a little "Search" box up there on the screen...    you can search for key words within only a single thread....
Сл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."

teh_Krall

Quote from: Kindred on September 06, 2011, 12:00:05 PM
you know...... there is a little "Search" box up there on the screen...    you can search for key words within only a single thread....

Actually I forgot that was available on SMF and usually go through a thread page by page looking for stuff.

keyboard

Hi

I was using 2.0.0 and installed "menu Icons",  works great !!!!     I updated to 2.0.1  and still works great !!!   

The problem that I am having , is I cannot completely remove " Menu Icons ".....There is a theme that I would like to try, but I need to remove the menu icons first. And no matter what I do, I cannot remove this mod...

How do I do this without starting over again ?   
Слaва
Украинi

Kindred

Use the emulation feature under "advanced options" in the package manager
Сл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."

keyboard

Does anyone get a zipped file when they download this mod?   I don't....


Ron
Слaва
Украинi

Kirck

To validate xhtml you must change all lines with
<img align="absMiddle"
to
<img style="vertical-align: middle"

teos55

SMF 2.0.3  with default theme curve

  For some reason, I'd like to uninstall  menu icons but,

even trying with emulation mods  RC2 - 3 - 4  uninstall option is missing and package manager says "no uninstall section for this version of SMF"

Any clue what is wrong ?

  Doing manual uninstall is really hard for me, I'm afraid I'll mass up subs.php which vital for the system.

Mick.

Quote from: teos55 on January 03, 2013, 01:19:47 PM
SMF 2.0.3  with default theme curve

  For some reason, I'd like to uninstall  menu icons but,

even trying with emulation mods  RC2 - 3 - 4  uninstall option is missing and package manager says "no uninstall section for this version of SMF"

Any clue what is wrong ?

  Doing manual uninstall is really hard for me, I'm afraid I'll mass up subs.php which vital for the system.

Try SMF 2.0.3

teos55

Sorry for late reply, notification was not set properly by me :-)

First tried with 2.0.3 for sure -- negative

2.0.1  negative

2.0  worked.

Thanks ...

careymij

#153
I'm relatively new to php and SMF, and I'm running into a few issues with adding new images for buttons.
I have Google Member Map (from Spud), SMF Gallery and SMF Links installed.  I followed the directions listed
on page 1, and on page 7.  I am able to get the images to show up, but I get a bunch of extra text in front of the images.

So, instead of having the default of Gallery Gallery, I see the following....

<img align= Gallery"title="myimage Gallery"/>myimage Gallery

......with myimage being the actual graphic I have chosen.

I added the $settings to global, and used the following for the $title....this was done in subs.php and GoogleMapIntegration.php in /Sources

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

Any assistance that could be provided would be greatly appreciated.  Thanks!

none_free

Quote from: Mick. 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:
'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'],



[...]

Hi,

I'm using the Gallery mod and the changes I made doing very well.

I'm using the Google Member Map mod too.

I'm not really familar with the internal structure of the SMF.
Could someone tell where to find the place to make this mod with the Menu Icons mod working?
I searched in the Subs.php but there is nothing.

Any help?

Jens

Kindred


the main menu array is present in Subs.php, as indicated.
Adding additional images for mod-specific menu items would be done the same way that you quoted.... for each and every mod that adds itself to the main menu array.

The exception to that would be mods which use the menu hook to add themselves into the main menu rather than the direct code edits...  in which case, you would need to ask in the support thread for that specific mod, to find out which file contains the insert menu item hook code.
Сл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."

Mick.

Correct. The Google Member Map uses 'hooks' in which i dont know which file the button was added.

Kindred

Quote from: Kindred on May 06, 2013, 03:20:56 PM
..... in which case, you would need to ask in the support thread for that specific mod, to find out which file contains the insert menu item hook code.
Сл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."

none_free

Thank you!
This helps me a lot to ask the right questions in the Google Member Map forum.

Cheers!
Jens

Tavsih

QuoteExecute Modification    ./Sources/Subs.php    Test failed
Replace    ./Sources/Subs.php    Test failed
Replace    ./Sources/Subs.php    Test failed
i am using smf 2.0.4

Advertisement: