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

[DEV] Font Awesome BBCode

Post by Sniper_E » Thu Aug 08, 2019 12:44 am

Extension Name: Font Awesome BBCode
Extension Description: Adds Font Awesome BBCode to posting.
Author: Sniper_E

Version: 1.0.1 Font Awesome 4.7 - 585 awesome icons - With Popup selections
Extension Download: fontawesome_bbcode_1.0.1.zip

Version: 1.0.0 Font Awesome 4.7 - 585 awesome icons - drop down selections
Extension Download: fontawesome_bbcode_1.0.0.zip

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
Last edited by Sniper_E on Fri Oct 04, 2019 6:04 am, edited 17 times in total.
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 » 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?

User avatar
warmweer
Registered User
Posts: 2799
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: [DEV] Font Awesome BBCode

Post by warmweer » Fri Aug 09, 2019 7:15 am

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.
The year is 2192. The British Prime Minister visits Brussels to ask for an extension of the Brexit deadline. No one remembers where this tradition originated, but every year it attracts many tourists from all over the world.

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

Re: [DEV] Font Awesome BBCode

Post by Holger » Fri Aug 09, 2019 7:16 am

Ah, you are right! Sorry!
Maybe include a link to an overview?

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 » Fri Aug 09, 2019 4:03 pm

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

Re: [DEV] Font Awesome BBCode

Post by warmweer » Fri Aug 09, 2019 5:28 pm

https://fontawesome.com/
1531 free icons

BTW I'm not against this extension, in fact I would welcome it (and use it).
The year is 2192. The British Prime Minister visits Brussels to ask for an extension of the Brexit deadline. No one remembers where this tradition originated, but every year it attracts many tourists from all over the world.

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 » Fri Aug 09, 2019 6:38 pm

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:
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 » Mon Aug 12, 2019 8:05 am

Very nice! Thank you!

User avatar
potku
Registered User
Posts: 850
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Re: [DEV] Font Awesome BBCode

Post by potku » Mon Aug 12, 2019 9:44 am

We are testing this out and will report here if needed. Thanks, sniper! :)

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

"Before I speak, I have something important to say."

- Groucho Marx

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

Re: [DEV] Font Awesome BBCode

Post by dingus33 » Wed Aug 14, 2019 2:59 am

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

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 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.

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.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

User avatar
ac_roma
Registered User
Posts: 307
Joined: Thu Mar 08, 2007 2:48 pm
Location: egypt,alexandria
Contact:

Re: [DEV] Font Awesome BBCode

Post by ac_roma » Wed Aug 21, 2019 7:43 pm

nice and cool for awesome websites ;)

thanks

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

Re: [DEV] Font Awesome BBCode

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

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

User avatar
3Di
Former Team Member
Posts: 14246
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:35 am

Did you know of forkawesome or Fortawesome?

But even better Iconify by Arty. :geek:
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: 119
Joined: Fri Sep 29, 2017 11:11 am

Re: [DEV] Font Awesome BBCode

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

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.
Last edited by dingus33 on Mon Aug 26, 2019 7:44 am, edited 1 time in total.

Post Reply

Return to “Extensions in Development”