[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!
Ideas Centre
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
Former Team Member
Posts: 14229
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [DEV] Font Awesome BBCode

Post by 3Di » Mon Aug 26, 2019 7:44 am

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.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
πŸ‘¨β€πŸ« | Take a tour to | The Studio | πŸ‘¨β€πŸ«

User avatar
Ger
Recognised Extension Developer
Posts: 1880
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: [DEV] Font Awesome BBCode

Post by Ger » 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?
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:
-Available for custom work-

User avatar
3Di
Former Team Member
Posts: 14229
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [DEV] Font Awesome BBCode

Post by 3Di » Mon Aug 26, 2019 7:45 am

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
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
πŸ‘¨β€πŸ« | Take a tour to | The Studio | πŸ‘¨β€πŸ«

User avatar
dingus33
Registered User
Posts: 114
Joined: Fri Sep 29, 2017 11:11 am

Re: [DEV] Font Awesome BBCode

Post by dingus33 » Mon Aug 26, 2019 7:46 am

yea. it has a sweet icon picker thing.

User avatar
Sniper_E
Registered User
Posts: 789
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [DEV] Font Awesome BBCode

Post by Sniper_E » Mon Aug 26, 2019 7:52 am

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: 789
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [DEV] Font Awesome BBCode

Post by Sniper_E » Mon Aug 26, 2019 6:44 pm

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
Registered User
Posts: 2756
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: [DEV] Font Awesome BBCode

Post by warmweer » Mon Aug 26, 2019 8:42 pm

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.
My board's not broken, it just went peculiar

Holger
Registered User
Posts: 1756
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [DEV] Font Awesome BBCode

Post by Holger » Tue Aug 27, 2019 6:44 am

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: 789
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [DEV] Font Awesome BBCode

Post by Sniper_E » Tue Aug 27, 2019 5:03 pm

warmweer wrote: ↑
Mon Aug 26, 2019 8:42 pm
The 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: 1756
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [DEV] Font Awesome BBCode

Post by Holger » Wed Aug 28, 2019 9:10 am

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
Jr. Extension Validator
Posts: 1163
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: [DEV] Font Awesome BBCode

Post by mrgoldy » Wed Aug 28, 2019 6:31 pm

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>

User avatar
Sniper_E
Registered User
Posts: 789
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [DEV] Font Awesome BBCode

Post by Sniper_E » Wed Aug 28, 2019 6:54 pm

Holger wrote: ↑
Wed Aug 28, 2019 9:10 am
No, 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 pm
In 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: 789
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [DEV] Font Awesome BBCode

Post by Sniper_E » 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.
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: 789
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [DEV] Font Awesome BBCode

Post by Sniper_E » Thu Oct 03, 2019 3:52 am

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 :!:

Post Reply

Return to β€œExtensions in Development”