Where are the board's icons located?

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
uhwiki
Registered User
Posts: 14
Joined: Thu Jan 14, 2021 10:09 am

Where are the board's icons located?

Post by uhwiki »

Hello,

Which folder are the board's icons located? E.g. the icon for ACP (the gears), the icon of MCP (the gavel).

I want to convert them to png but I don't know where to find them.

Many thanks!
User avatar
Mannix_
Registered User
Posts: 1079
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt
Contact:

Re: Where are the board's icons located?

Post by Mannix_ »

Those are FontAwesome icons
Did I helped You? Consider a donation. I don't drink 🍺 :lol:
-=-=-=-=-=-=-=-=-=-=-=-=-My Styles-=-=-=-=-=-=-=-=-=-=-=-=-
HexagonHexagonRebornCleanSilverProject Durango
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Need help with styling or want me to port a style to 3.3.x etc. contact me here or here.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
uhwiki
Registered User
Posts: 14
Joined: Thu Jan 14, 2021 10:09 am

Re: Where are the board's icons located?

Post by uhwiki »

Mannix_ wrote:
Mon Jan 18, 2021 2:19 pm
Those are FontAwesome icons
Hi, thanks for the reply.

Would that make converting to png difficult? And where can I find them?
User avatar
warmweer
Jr. Extension Validator
Posts: 6493
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Where are the board's icons located?

Post by warmweer »

uhwiki wrote:
Mon Jan 18, 2021 2:23 pm
And where can I find them?
https://fontawesome.com/icons?d=gallery&m=free
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.
uhwiki
Registered User
Posts: 14
Joined: Thu Jan 14, 2021 10:09 am

Re: Where are the board's icons located?

Post by uhwiki »

warmweer wrote:
Mon Jan 18, 2021 2:25 pm
uhwiki wrote:
Mon Jan 18, 2021 2:23 pm
And where can I find them?
https://fontawesome.com/icons?d=gallery&m=free
Hi, thank you.

But I was referring to where on the server I can find them. Is it in phpbb3/styles/?
User avatar
AmigoJack
Registered User
Posts: 5838
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Where are the board's icons located?

Post by AmigoJack »

They're displayed thru CSS definitions for a font. For the question mark circle next to the FAQ link it'd be https://fontawesome.com/icons/question- ... tyle=solid. The font uses private Unicode codepoints, so arbitrary "characters" in that font use arbitrary positions. In the CSS you can then see other definitions around:

Code: Select all

.fa-inbox:before { content: "\f01c" }
.fa-question-circle:before { content: "\f059" }
.fa-cogs:before { content: "\f085" }
.fa-gavel:before { content: "\f0e3" }
.fa-bell:before { content: "\f0f3" }
Just use https://fontawesome.com/icons?d=gallery&m=free and search for the particular name, i.e. "gavel" or "bell".
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
uhwiki
Registered User
Posts: 14
Joined: Thu Jan 14, 2021 10:09 am

Re: Where are the board's icons located?

Post by uhwiki »

AmigoJack wrote:
Mon Jan 18, 2021 2:34 pm
Thank you so much! Is it possible to delete the css file, converting them to png and then reupload seperately onto the server?
Last edited by HiFiKabin on Mon Jan 18, 2021 5:07 pm, edited 1 time in total.
User avatar
Mannix_
Registered User
Posts: 1079
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt
Contact:

Re: Where are the board's icons located?

Post by Mannix_ »

example how to change FA icon to png
change

Code: Select all

		<li <!-- IF not S_USER_LOGGED_IN -->data-skip-responsive="true"<!-- ELSE -->data-last-responsive="true"<!-- ENDIF -->>
			<a href="{U_FAQ}" rel="help" title="{L_FAQ_EXPLAIN}" role="menuitem">
				<i class="icon fa-question-circle fa-fw icon-xl" aria-hidden="true"></i><span>{L_FAQ}</span>
			</a>
		</li>
to

Code: Select all

<li class="small-icon icon-size faq-icon" <!-- IF not S_USER_LOGGED_IN -->data-skip-responsive="true"<!-- ELSE -->data-last-responsive="true"<!-- ENDIF -->>
	<a href="{U_FAQ}" rel="help" title="{L_FAQ_EXPLAIN}" role="menuitem">
		<span>{L_FAQ}</span>
	</a>
</li>
and add css for your icon

Code: Select all

.icon-size {
  background-size: 16px;
}
.faq-icon {
    background-image: url("./images/youricon.png");
}
You are basically go back to how it was in 3.1.x times :)
Did I helped You? Consider a donation. I don't drink 🍺 :lol:
-=-=-=-=-=-=-=-=-=-=-=-=-My Styles-=-=-=-=-=-=-=-=-=-=-=-=-
HexagonHexagonRebornCleanSilverProject Durango
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Need help with styling or want me to port a style to 3.3.x etc. contact me here or here.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
User avatar
AmigoJack
Registered User
Posts: 5838
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Where are the board's icons located?

Post by AmigoJack »

As per a PM from the author this turns out as a classic XY problem: the reason for wanting PNGs can easily be eliminated when the real intention is known. In this case it is: no external resources. Which makes it more than easy: configure your phpBB installation to not use CDN - then it won't load from i.e. https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css but instead relative from your server (i.e. assets/css/font-awesome.min.css). See the manual.
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
User avatar
P_I
Registered User
Posts: 1497
Joined: Tue Mar 01, 2011 8:35 pm
Location: Staying home - Western Canada
Contact:

Re: Where are the board's icons located?

Post by P_I »

Mannix_ wrote:
Mon Jan 18, 2021 3:06 pm
You are basically go back to how it was in 3.1.x times :)
My thoughts exactly. I was going to post the 'Why?' question.

Plus does the OP understand they've have to maintain the changes any time they update/upgrade their phpBB software?
uhwiki wrote:
Mon Jan 18, 2021 2:14 pm
I want to convert them to png but I don't know where to find them.
Before you do that you should check the copyright on the images. I looked through https://fontawesome.com/support and it wasn't clear to me.
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
uhwiki
Registered User
Posts: 14
Joined: Thu Jan 14, 2021 10:09 am

Re: Where are the board's icons located?

Post by uhwiki »

AmigoJack wrote:
Mon Jan 18, 2021 3:21 pm
As per a PM from the author this turns out as a classic XY problem: the reason for wanting PNGs can easily be eliminated when the real intention is known. In this case it is: no external resources. Which makes it more than easy: configure your phpBB installation to not use CDN - then it won't load from i.e. https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css but instead relative from your server (i.e. assets/css/font-awesome.min.css). See the manual.
I hate to pester you, but the manual you linked doesn't mention anything about cdn (or perhaps I just missed it?)

Also, looking at the ACP, I can't see an option to stop using CDN :(

Thank you so much for the help once again :)
uhwiki
Registered User
Posts: 14
Joined: Thu Jan 14, 2021 10:09 am

Re: Where are the board's icons located?

Post by uhwiki »

Mannix_ wrote:
Mon Jan 18, 2021 3:06 pm
Thank you so much!
Last edited by HiFiKabin on Mon Jan 18, 2021 5:06 pm, edited 1 time in total.
Reason: unneeded full quote removed
User avatar
david63
Registered User
Posts: 19036
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Contact:

Re: Where are the board's icons located?

Post by david63 »

uhwiki wrote:
Mon Jan 18, 2021 4:03 pm
the manual you linked doesn't mention anything about cdn
Allow usage of third party content delivery networks: If this setting is enabled, some files will be served from external third party servers (ajax.googleapis.com) instead of your server. This reduces the network bandwidth required by your server, but may present a privacy issue for some board administrators. In a default phpBB installation, this includes loading "jQuery" and the font "Open Sans" from Google's content delivery network.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored
User avatar
Lumpy Burgertushie
Registered User
Posts: 68553
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Where are the board's icons located?

Post by Lumpy Burgertushie »

just curious, why do you want to do this?

If it is just for making sure to serve everything from your server then you have to go backwards a couple of versions of phpbb to downgrade this part of the system.
the how to is shown above. you have to provide your own images and figure out exactly where to store them in phpBB and then you have to edit the html everywhere they are used and then edit the css for each one that you want to change.

seems like an awful lot of trouble .


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
uhwiki
Registered User
Posts: 14
Joined: Thu Jan 14, 2021 10:09 am

Re: Where are the board's icons located?

Post by uhwiki »

david63 wrote:
Mon Jan 18, 2021 4:04 pm
Oops- seems like I missed it. Thanks for highlighting me this though!
Last edited by Mick on Tue Jan 19, 2021 11:24 am, edited 1 time in total.
Reason: Removed unnecessary full quoting
Post Reply

Return to “phpBB Custom Coding”