How are these icons set?

Started by vbgamer45, September 21, 2021, 01:19:09 PM

Previous topic - Next topic

vbgamer45

How are these icons set?
You cannot view this attachment.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Arantor

IIRC the 'icon' reference in the big array in Admin.php drives some CSS to point to the image to use.
No good deed goes unpunished / All helpful urges should be circumvented

I have something to say: it's better to burn out than to fade away. There can be only one.

vbgamer45

Was hoping I can override and set an icon somehow. Or do I have to do css?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Arantor

No good deed goes unpunished / All helpful urges should be circumvented

I have something to say: it's better to burn out than to fade away. There can be only one.

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Antes

You need to add something like

.large_admin_menu_icon.<item-class>::before {
background-image: url('...') no-repeat;
}

vbgamer45

Thanks do you advise just added it to html_headers instead of modifying the css file?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Antes

Quote from: vbgamer45 on September 21, 2021, 04:05:33 PMThanks do you advise just added it to html_headers instead of modifying the css file?

I advise not to touch any core file anymore... either hook your custom adminCSS via file or headers directly... While I don't have much knowledge in minimized content, i think @albertlast made it work with all files so you can hook your custom admin related CSS and minimization can put them togather so you no longer load many many files...

loadCSSFile is your friend I guess :)

vbgamer45

Yeah was just debating if that was the best way if I create a single css file for each mod that has admin area. Or just override via a <style> tag.
Style tag seems less work.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Diego Andrés

Yea if it's just for the icon that's probably alright
Some of them you could just use one of the default icons too, e.g. ad seller could prob use the money icon

SMF Tricks - Free & Premium Responsive Themes for SMF.

vbgamer45

Hmm yeah got idea about the default icons.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: