Oct 30, 2020, 11:13 AM

News:

Have you backed up YOUR database today


menu icons

Started by lesmond, Aug 09, 2020, 12:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lesmond

I want to use my own icon in the menu, but I dont want to edit the main sprite, I have tried a few times to edit Subs.php to no avail :(

  'main' => array(
'title' => 'Main Site',
'href' => 'https://myleicester.pw" target="_blank"',
'show' => 'true',
'sub_buttons' => array(
'icon' => $settings['images_url']. 'https://forum.myleicester.pw/Themes/default/images/radio.png',
),

and this..
'main' => array(
'title' => 'Main Site',
'href' => 'https://myleicester.pw" target="_blank"',
'show' => 'true',
'sub_buttons' => array(
'icon' => $settings['images_url']. 'images/radio.png',

Plus many other combination of the above, just this is show :(

The only person who got all his work done by Friday was Robinson Crusoe

lesmond

Fixed it myself  ::)
I just had to move this up
'icon' => 'radio.png',
Like so... :vcool
'main' => array(
                'title' => 'Main Site',
                'href' => 'https://myleicester.pw" target="_blank"',
                'icon' => 'radio.png',
                'show' => true,
                'sub_buttons' => array(

The only person who got all his work done by Friday was Robinson Crusoe

LandyVlad

GOT A LINK SO WE CAN SEE WHAT IT LOOKS LIKE?
I reject your reality, and substitute my own.

lurkalot

Les, just a heads up to those that haven't realised. 

If you're running SMF 2.1 with either TinyPortal 1.6.7 or TinyPortal 2.0.0RC1. If you add a new SMF menu tab via the TP menu manager this has the option built in to add your custom icons to that menu without editing any files manually. Example, http://lts4.byethost7.com/index.php

https://www.tinyportal.net/docs/index.php?page=menu-buttons

Also remember this only applies when running TP on SMF 2.1, Unfortunately you can't add custom icons via the menu manager on SMF 2.0

SychO

Quote from: lurkalot on Sep 02, 2020, 06:37 AMLes, just a heads up to those that haven't realised. 

If you're running SMF 2.1 with either TinyPortal 1.6.7 or TinyPortal 2.0.0RC1. If you add a new SMF menu tab via the TP menu manager this has the option built in to add your custom icons to that menu without editing any files manually. Example, http://lts4.byethost7.com/index.php

https://www.tinyportal.net/docs/index.php?page=menu-buttons

Also remember this only applies when running TP on SMF 2.1, Unfortunately you can't add custom icons via the menu manager on SMF 2.0

did you guys add the option to use one of the sprite icons ? that would work really well with themes if you do so

lurkalot

Quote from: SychO on Sep 02, 2020, 05:38 PMdid you guys add the option to use one of the sprite icons ? that would work really well with themes if you do so

Hi SychO. To be honest that's a good question, I'm not sure but I'll ask Tino and @rjen and see if it's possible.  ;)

lesmond

Sep 03, 2020, 10:50 AM #6 Last Edit: Sep 03, 2020, 11:20 AM by lesmond
Quote from: lurkalot on Sep 02, 2020, 06:37 AMLes, just a heads up to those that haven't realised. 

If you're running SMF 2.1 with either TinyPortal 1.6.7 or TinyPortal 2.0.0RC1. If you add a new SMF menu tab via the TP menu manager this has the option built in to add your custom icons to that menu without editing any files manually. Example, http://lts4.byethost7.com/index.php

https://www.tinyportal.net/docs/index.php?page=menu-buttons

Also remember this only applies when running TP on SMF 2.1, Unfortunately you can't add custom icons via the menu manager on SMF 2.0
Damn I forgot about that  :emb

Quote from: LandyVlad on Sep 02, 2020, 04:30 AMGOT A LINK SO WE CAN SEE WHAT IT LOOKS LIKE?
https://forum.myleicester.pw/index.php

The only person who got all his work done by Friday was Robinson Crusoe