QUICK NEWS

{NEW} - A new css video is up.

{OLD} - New video courtesy of Skhilled, Thanks for posting it up.

Video of the moment:


Internal Links

SMF Sites

Quick Info

menu icons

Started by lesmond, Aug 09, 2020, 07:21 AM

Previous topic - Next topic

0 Members and 2 Guests 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?
Please do not PM me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

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, 01: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, 12: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

#6
Quote from: lurkalot on Sep 02, 2020, 01: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 01, 2020, 11:30 PMGOT 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