Advertisement:

Author Topic: Menu Icons  (Read 58236 times)

Offline handy1

  • Semi-Newbie
  • *
  • Posts: 41
Re: Menu Icons
« Reply #180 on: January 05, 2014, 05:16:01 AM »
Well, everything works now.

How I can add icons for my own special buttons?

Code: [Select]
[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
Code: [Select]
'Test' and so on. How I rewrite this title line?

Offline pocttopus

  • Jr. Member
  • **
  • Posts: 353
  • Low pressure
    • @pocttopus on Twitter
Re: Menu Icons
« Reply #181 on: July 28, 2018, 08:40:27 AM »
What is  today's updates log? ???

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,643
    • StoryBB/StoryBB on GitHub
Re: Menu Icons
« Reply #182 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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,029
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Menu Icons
« Reply #183 on: July 28, 2018, 08:55:22 AM »
What is  today's updates log? ???

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

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,444
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: Menu Icons
« Reply #184 on: July 28, 2018, 08:56:57 AM »
What is  today's updates log? ???

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"

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,029
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Menu Icons
« Reply #185 on: July 28, 2018, 08:59:21 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. :)

Offline Totosfo

  • Semi-Newbie
  • *
  • Posts: 16
  • Overloaded Webmaster
    • usa-reise.de Amerika von Fans für Fans
Re: Menu Icons
« Reply #186 on: June 20, 2019, 02:23:56 PM »
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:

Code: [Select]
./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.

Code: [Select]
$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

Offline Yellowrose

  • Jr. Member
  • **
  • Posts: 136
  • Gender: Female
  • A Rose by any other name is a thorn
    • Zoo Admin
Re: Menu Icons
« Reply #187 on: June 21, 2019, 12:46:30 AM »
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.

Offline Yellowrose

  • Jr. Member
  • **
  • Posts: 136
  • Gender: Female
  • A Rose by any other name is a thorn
    • Zoo Admin
Re: Menu Icons
« Reply #188 on: June 21, 2019, 01:53:18 AM »
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

Code: [Select]
'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


Offline @rjen

  • Full Member
  • ***
  • Posts: 507
  • Gender: Male
Re: Menu Icons
« Reply #189 on: June 21, 2019, 03:07:41 AM »
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.0 with Tinyportal 1.6.4 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal at http://test2.fjr-club.nl/