[3.2][3.3][DEV] Font Awesome BBCode

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [DEV] Font Awesome BBCode

Post by 3Di »

Have a look at Iconify by Arty (cyberalien). ;) That's free btw.

https://github.com/iconify/iconify
Last edited by 3Di on Mon Aug 26, 2019 7:44 am, edited 1 time in total.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
Ger
Registered User
Posts: 2108
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: [DEV] Font Awesome BBCode

Post by Ger »

Seen this?
https://www.phpbb.com/customise/db/bbco ... me_bbcode/

What does this extension do besides above BBcode?
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [DEV] Font Awesome BBCode

Post by 3Di »

Ger wrote: Mon Aug 26, 2019 7:44 am Seen this?
https://www.phpbb.com/customise/db/bbco ... me_bbcode/

What does this extension do besides above BBcode?
Image
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
dingus33
Registered User
Posts: 136
Joined: Fri Sep 29, 2017 11:11 am

Re: [DEV] Font Awesome BBCode

Post by dingus33 »

yea. it has a sweet icon picker thing.
User avatar
Sniper_E
Registered User
Posts: 1144
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [DEV] Font Awesome BBCode

Post by Sniper_E »

dingus33 wrote: Mon Aug 26, 2019 7:34 am yea, if you made an extension to get FA5 in phpBB (without breaking things!), i would definitely use it.
Yes I have done it dingus33. I have it all together and working with the Font Awesome Free version.
It ended up having 1487 Awesome icons to select from. We can't go Fa-Pro fo mo without paying.

Note: Some icon names have been changed in Fa5 and some moved into Fa-Pro
It's not just fa fa-coffee in Fa5 it's fas and fab also. But it's a nice selection.

Let me tidy some codes up and I will post a Font Awesome 5 BBCode Update
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
Sniper_E
Registered User
Posts: 1144
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [DEV] Font Awesome BBCode

Post by Sniper_E »

Fist post updated with Font Awesome 5 BBCode - Please see if there are any issues. Thanks for testing!
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
warmweer
Jr. Extension Validator
Posts: 11268
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: [DEV] Font Awesome BBCode

Post by warmweer »

Nice work. I didn't expect it to be available that fast.
I'll be sure to try (and test/report) it but that will be for next week.

The point dingus33 mentioned about breaking anything with updates is something which has always prevented me from using fa extensions.
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.


Time flies like an arrow, but fruit flies like a banana.
Holger
Registered User
Posts: 1883
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [DEV] Font Awesome BBCode

Post by Holger »

Beautiful extension!
The icon for choosing the fa-icon in the toolbar above the messagefield is higher then the other icons. Is there a reason? :)

Edit, common.php:

Code: Select all

		'FONT_AWESOME_HELP'             => 'Awesome 5 [fas]coffee[/fas] or size it [fas=50]globe[/fas] or color it [fab=red]fire[/fab]',
fas vs fab?
User avatar
Sniper_E
Registered User
Posts: 1144
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [DEV] Font Awesome BBCode

Post by Sniper_E »

warmweer wrote: Mon Aug 26, 2019 8:42 pmThe point dingus33 mentioned about breaking anything with updates is something which has always prevented me from using fa extensions.
It should be fine. Fa 4.7 is installed on our phpbb board by default. This ext just over rides those settings.
The 4.7 version should have been removed from the templates to where it would not load. Then this version 5 installed.
But I chose to leave 4.7 in tack and have version 5 over ride the settings. This gave us 121 more icons to choose from in fa.

@ Holger, you must be running posting buttons ext. It is using the regular template for that button because it has the same event.
My copy of posting buttons is updated with it's own events but we need the aurthor, dmzx to look at updating it.
I ran across that issue last year on another ext. But I will see what can be done with that.

fas vs fab? There is a solid set of 956 icons used with 'fas' and there is a brands set of 428 icons used with 'fab'
Any icons using fas can use fa also. [fas]clock[/fas] will also work [fa]clock[/fa]
But the first 122 fa fa-icon selections have to use [fa], they can not use [fas] these are the leftover fa icons from 4.7
And fab is used only for the brands set of icons.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
Holger
Registered User
Posts: 1883
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [DEV] Font Awesome BBCode

Post by Holger »

Sniper_E wrote: Tue Aug 27, 2019 5:03 pm @ Holger, you must be running posting buttons ext.
No, I am not running that ext.
Do I have to?
Sniper_E wrote: Tue Aug 27, 2019 5:03 pm fas vs fab? There is a solid set of 956 icons used with 'fas' and there is a brands set of 428 icons used with 'fab'
Any icons using fas can use fa also. [fas]clock[/fas] will also work [fa]clock[/fa]
But the first 122 fa fa-icon selections have to use [fa], they can not use [fas] these are the leftover fa icons from 4.7
And fab is used only for the brands set of icons.
I just wanted to highlight that you use fas and fab in the lang-file. So it should be like that?
User avatar
mrgoldy
Former Team Member
Posts: 1394
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: [DEV] Font Awesome BBCode

Post by mrgoldy »

In case you want to provide more options for the icons, here is a BBCode I have used (for FA 4.7):

Code: Select all

[fa size={CHOICE=sm,md,lg,xl;postFilter=strtolower;optional} color={CHOICE=blue,green,red,orange,bluegray,gray,lightgray,black;postFilter=strtolower;optional} rotate={CHOICE=90,180,270;optional} flip={CHOICE=vertical,horizontal;postFilter=strtolower;optional}]{IDENTIFIER;postFilter=strtolower}[/fa]

Code: Select all

<i aria-hidden="true">
	<xsl:attribute name="class">
		<xsl:text>icon fa-</xsl:text>
		<xsl:value-of select="@content"/>
		<xsl:text> fa-fw</xsl:text>
		<xsl:if test="@size"> icon-{@size}</xsl:if>
		<xsl:if test="@color"> icon-{@color}</xsl:if>
		<xsl:if test="@rotate"> fa-rotate-{@rotate}</xsl:if>
		<xsl:if test="@flip"> fa-flip-{@flip}</xsl:if>
	</xsl:attribute>
</i>
phpBB Studio / Member of the Studio

Contributing: You can do it too! Including testing Pull Requests (PR).
phpBB Development and Testing made easy.
User avatar
Sniper_E
Registered User
Posts: 1144
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [DEV] Font Awesome BBCode

Post by Sniper_E »

Holger wrote: Wed Aug 28, 2019 9:10 amNo, I am not running that ext. Do I have to?
No you don't need that ext. Fa, fas and fab are in version 5 so yes those are suppose to be in the language file.
mrgoldy wrote: Wed Aug 28, 2019 6:31 pmIn case you want to provide more options for the icons, here is a BBCode I have used (for FA 4.7):
That looks pretty nice Mr. Mrgoldy. That would make a definite improvement in the bbcodes. Thanks for the share!

If we can get this version 5 ironed out we need to look into 3Di's other suggestions like using forkawesome or fortawesome.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
Sniper_E
Registered User
Posts: 1144
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [DEV] Font Awesome BBCode

Post by Sniper_E »

Notice:
We have noticed that the traffic on your board increases dramatically with this Fa-5 version.
I would not advise using version 1.1.0 for Fa-5. Use version 1.0.0 for Fa-4.7 if you want to play with those.

I'll make a popup for the 1.0.0 version for 4.7 and update. The icons need to show only if you click the button.
Version 1.1.0 for Fa-5 will need a little more construction. Don't use it for now.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
Sniper_E
Registered User
Posts: 1144
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [DEV] Font Awesome BBCode

Post by Sniper_E »

Updated to version 1.0.1 with popup selections. Along with...
ACP settings for popup window size, icons per page and posted fa-icon color.
Thank dmzx for stepping in and setting up the popup codes.

Check first post for update.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
lechti64
Registered User
Posts: 3
Joined: Mon Dec 02, 2019 6:56 am
Location: France

Re: [DEV] Font Awesome BBCode

Post by lechti64 »

Sniper_E wrote: Thu Aug 29, 2019 6:08 am Notice:
We have noticed that the traffic on your board increases dramatically with this Fa-5 version.
I would not advise using version 1.1.0 for Fa-5. Use version 1.0.0 for Fa-4.7 if you want to play with those.

I'll make a popup for the 1.0.0 version for 4.7 and update. The icons need to show only if you click the button.
Version 1.1.0 for Fa-5 will need a little more construction. Don't use it for now.
Hello Sniper
I look forward to your update for version 1.0.0 because at home (phpbb 3.2.7) there is only this version that works.
So having a popup that would allow us to select the awesome font for inclusion in a message would be of great benefit to my forum users.

Currently we use a "written" list of fonts to just copy the name of this one between the two tags [fa] name-of-the-fonteawesome [/ fa] like this:
a-glass"\f000"
fa-music"\f001"
fa-search"\f002"
fa-envelope-o"\f003"
fa-heart"\f004"
fa-star"\f005"
fa-star-o"\f006"
and once posted, the cast-awesome appears well.
En projet (80% finalisé) reste juste la prévisualisation de ceci à mettre en place)  ainsi que la fenêtre de sélection des fonts awesome pour l'éditeur de texte... pour par exemple poster ce genre de truc:
[fa]envelope-o[/fa][fa]camera-retro[/fa][fa]sitemap[/fa][fa]flag-checkered[/fa]
​​​​​​​et réussir ceci avec le vrai code d'une fonte awesome [fa]fa-gamepad[/fa]
Image

Thank you for your wonderful work, we look forward to this update for the iframe in version 1.0.0 of your extension.

Excuse my bad English, I am French and use an online translator to write you here.
Post Reply

Return to “Extensions in Development”