News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Menu Icons

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

Previous topic - Next topic

handy1

Well, everything works now.

How I can add icons for my own special buttons?

[code] 'Special menu' => array(
'title' => 'Test',
'href' => 'http://www.testingtesting.com',
'show' => $context['allow_admin'],
'sub_buttons' => array(
'Test1' => array(
'title' => 'Test1',
'href' => 'http://www.testing1.com',
'show' => $context['allow_admin'],
),
'Test2' => array(
'title' => 'Test2',
'href' => 'http://www.testing2.com',
'show' => $context['allow_admin'],
'is_last' => true,
),
),
[/code]


So now my titles are only one word 'Test' and so on. How I rewrite this title line?

pocttopus

What is  today's updates log? ???

Arantor

Probably listing 2.0.15 compatibility since that's also marked as a change by the mod site and notifies people by default, even if the actual files haven't changed.

Mick.

Quote from: pocttopus on July 28, 2018, 08:40:27 AM
What is  today's updates log? ???

Quote from: Arantor on July 28, 2018, 08:43:49 AM
Probably listing 2.0.15 compatibility since that's also marked as a change by the mod site and notifies people by default, even if the actual files haven't changed.

Yup, no mod changes. Just ticking the slot for 2.0.15

lurkalot

Quote from: pocttopus on July 28, 2018, 08:40:27 AM
What is  today's updates log? ???

Quote from: Arantor on July 28, 2018, 08:43:49 AM
Probably listing 2.0.15 compatibility since that's also marked as a change by the mod site and notifies people by default, even if the actual files haven't changed.

Also mentioned in the first post of this topic.

@Mick

Might be an idea to drop this bit from the First post in this topic, and the modsite, "COMPATIBLE WITH SMF 2.0.2"

Mick.

Quote from: lurkalot on July 28, 2018, 08:56:57 AM

Also mentioned in the first post of this topic.

@Mick

Might be an idea to drop this bit from the First post in this topic, and the modsite, "COMPATIBLE WITH SMF 2.0.2"
Got it. :)

Totosfo

Hi all,

maybe I don't see the wood before the trees, but the menu icons don't show up on my board - SMF 2.0.15.

The directories are there:


./core/images/icons/menu_icons
./off/bootUs-orig/images/menu_icons
./off/theme1/images/menu_icons
./default/images/menu_icons
./bootUs-v1/images/menu_icons


The .png image files are there, too.

Code Modification in Subs.php has been done, e.g.


$buttons = array(
'home' => array(
'title' => '<img align="absMiddle" src="'. $settings['images_url']. '/menu_icons/house.png" alt="'.$txt['home']. '"/>&nbsp; ' . $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),


Did I miss something important? Just to tick the "enable" switch somewhere?

Thank you for your help!
Cheers,

Thomas

Yellowrose

I'm also having issues with this mod but just on 1 site. it installed fine on 7 others without a hitch. This 1 site no matter what I chmod the folders to and I tried 755, 775 & 777 kept getting the error some files are not writable I went through the smf permissions I went through my file manager and then even through ftp to change permissions and no luck so decided to do a manual install so did all the required changes to subs.php  from this list https://custom.simplemachines.org/mods/index.php?action=parse and now I have no images on the board but double names instead of the icons yet the menu_icons folder is uploaded with all the images.

Also checking my error log I have 21 pages of errors just from this install I made sure the log was empty before I started here is a screen of the error log. any help getting this 1 site fixed would be greatly appreciated as I really like the look of this mod on the other 7 sites it's installed on. all sites are using smf 2.0.15 including the one this error screen is from.

Yellowrose

sorry for a double post but there was no modify to add to the post above. checking the error logs of the other sites after this mod was installed I have oodles of errors all in subs.php every site has the same error

8192: Function create_function() is deprecated

opening subs.php and checking the line numbers listed with all the erros on all the sites it's the same error but different line numbers. this is the line of code these errors are refering  to

'validate' => create_function('&$tag, &$data, $disabled', '

so that means anywhere this line of code appears I get an error related to the line number this line of code appears on. I removed all the errors entries from the log and then re-logged the site and checked the error log it had generated 42 errors all the same just different line numbers all all in subs.php


@rjen

What PHP version are you using? I guess 7.2?

SMF 2.0.15 is not suitable for 7.2, try switching back to PHP version 7.1

A search on this forum also helps... https://www.simplemachines.org/community/index.php?topic=562520.msg3991076#msg3991076
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Advertisement: