Page 1 of 2

[DEV] Font Awesome BBCode

Posted: Thu Aug 08, 2019 12:44 am
by Sniper_E
Extension Name: Font Awesome BBCode
Extension Description: Adds Font Awesome BBCode to posting.
Author: Sniper_E

Version: 1.1.0 Font Awesome 5 - 1506 awesome icons
Extension Download: Under development
Note: Some icon file names have changed in version 5. Your phpbb board will be running Fa-5 after install.
Example: <i class="icon fa fa-paypal fa-fw"></i> will change to <i class="icon fab fa-paypal fa-fw"></i>

Version: 1.0.0 Font Awesome 4.7 (phpbb default) - 585 awesome icons
Extension Download: fontawesome_bbcode_1.0.0.zip

Image

Github: Github/Sniper-E/fontawesome

Install:
  1. Download the latest release.
  2. Unzip contents from download, Copy files to server ext/sniper/fontawesome/ directory.
  3. Navigate in the ACP to Customise -> Enable Font 5 Awesome BBCode extension.
Update:
  1. Download the latest release.
  2. Disable Font Awesome 5 BBCode extension, Delete data, Delete old version files from the server.
  3. Unzip contents from download, Copy new version files to the server.
  4. Navigate in the ACP to Customise -> Enable Font Awesome 5 BBCode extension.
Uninstall:
  1. Navigate in the ACP to Customise -> Disable Font Awesome 5 BBCode extension.
  2. To permanently uninstall, Delete Data, Delete the /ext/sniper/fontawesome folder.
Enjoy! :D

Re: [DEV] Font Awesome BBCode

Posted: Fri Aug 09, 2019 7:00 am
by Holger
Nice!
For this you need to know the fontawesome-"code" for the Icon you want to use?
How about a popup with the available icons to click on?

Re: [DEV] Font Awesome BBCode

Posted: Fri Aug 09, 2019 7:15 am
by warmweer
Holger wrote:
Fri Aug 09, 2019 7:00 am
Nice!
For this you need to know the fontawesome-"code" for the Icon you want to use?
How about a popup with the available icons to click on?
With over 1000 icons available in the free set, that's going to be quite a write-up.

Re: [DEV] Font Awesome BBCode

Posted: Fri Aug 09, 2019 7:16 am
by Holger
Ah, you are right! Sorry!
Maybe include a link to an overview?

Re: [DEV] Font Awesome BBCode

Posted: Fri Aug 09, 2019 4:03 pm
by Sniper_E
No you are right Holger. I don't know all of the name either so you need a popup or a dropdown with selections.

I searched for a list of names and found version 4.7.0 list online. It had 585 names listed so I added those.
Then created an array to list all the names which are coded to show as an icon link. There may be over 1,000 in version 5.

Click the fa-bbcode button and all of the awesome icon links show in a scroll box.
Image
Just about finished with the switches and it will be fully functional. I'll post a download soon.

Re: [DEV] Font Awesome BBCode

Posted: Fri Aug 09, 2019 5:28 pm
by warmweer
https://fontawesome.com/
1531 free icons

BTW I'm not against this extension, in fact I would welcome it (and use it).

Re: [DEV] Font Awesome BBCode

Posted: Fri Aug 09, 2019 6:38 pm
by Sniper_E
This is the list I grabbed. http://astronautweb.co/snippet/font-awesome/

Will all of those 1531 free icons work in phpBB? Is Font-Awesome 4.7.0 even what phpBB uses?
We can work on building the list if they are all compatible with phpBB's setup.

Let's start with 585 icons for now. Fist post updated. Ready for testing...

Also... in your forum/assets/css/font-awesome.min.css

Code: Select all

/*!
 *  Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome
 *  License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
 */
We are limited to the icons listed in there.
phpBB would have to upgrade to an updated css file for awesome. Or we could. :thinking:

Re: [DEV] Font Awesome BBCode

Posted: Mon Aug 12, 2019 8:05 am
by Holger
Very nice! Thank you!

Re: [DEV] Font Awesome BBCode

Posted: Mon Aug 12, 2019 9:44 am
by potku
We are testing this out and will report here if needed. Thanks, sniper! :)

https://www.potku.net/forum/viewtopic.p ... 26#p937026

Re: [DEV] Font Awesome BBCode

Posted: Wed Aug 14, 2019 2:59 am
by dingus33
cool extension!

double check what i say here, because i could be wrong. this is just from memory, and they're just my impressions, but..

phpBB uses the final 4.x release of FA because the license changed in FA5.
FA4 had MIT license. in v5, the license is more restrictive and less FLOSS-aligned. phpBB may never move to FA5 for that reason.

also, although FA5 is a superset of FA4, many of the icon names have changed.

now that i think about it, you know what could be a nice extension? something that provides FA5 in phpBB. i'm not sure the cleanest way to do it. either via the shims or some other way. read here for more info https://fontawesome.com/how-to-use/on-t ... -version-4

Re: [DEV] Font Awesome BBCode

Posted: Tue Aug 20, 2019 3:54 pm
by Sniper_E
Thanks dingus33, I read up on your link and a few links it lead to. That might be possible to setup.
I'll toy around with that idea and see if I can whip up something that will pull all of those FA5 icons in.

But with the different ways to write the FA5 icons in... It will be a task. Now warmweer point is valid.
warmweer wrote:
Fri Aug 09, 2019 7:15 am
With over 1000 icons available in the free set, that's going to be quite a write-up.
This may take a minute... if it's even possible with the new restrictions.

Re: [DEV] Font Awesome BBCode

Posted: Wed Aug 21, 2019 7:43 pm
by ac_roma
nice and cool for awesome websites ;)

thanks

Re: [DEV] Font Awesome BBCode

Posted: Mon Aug 26, 2019 7:34 am
by dingus33
Sniper_E wrote:
Tue Aug 20, 2019 3:54 pm
Thanks dingus33, I read up on your link and a few links it lead to. That might be possible to setup.
I'll toy around with that idea and see if I can whip up something that will pull all of those FA5 icons in.
yea, if you made an extension to get FA5 in phpBB (without breaking things!), i would definitely use it.

i also made the request here: viewtopic.php?f=496&t=2519481

Re: [DEV] Font Awesome BBCode

Posted: Mon Aug 26, 2019 7:35 am
by 3Di
Did you know of forkawesome or Fortawesome?

But even better Iconify by Arty. :geek:

Re: [DEV] Font Awesome BBCode

Posted: Mon Aug 26, 2019 7:42 am
by dingus33
i've never seen any of those before. but unless those other projects provide FA4 compatibility shims or something, i see much more value in an extension that just brings FA5 support so existing icons in phpBB don't break.