Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2019-01-25 18:57:36

richam
Member
From: Preveza, Greece
Registered: 2013-01-06
Posts: 143
Website

Update FontAwesome in BL 2

Having trouble updating fontawesome to version 5.6.3.  Your hints and tricks refers to CS4 so doesn't seem to apply with BL2.  Got the following script from Fontawesome website; not sure how to install it so it works universally for my entire site.  It does work by adding  it on every page and menu item, but that seems inelegant and tedious to say the least.

<script defer src="https://use.fontawesome.com/releases/v5.6.3/js/all.js" integrity="sha384-EIHISlAOj4zgYieurP0SdoiBYfGJKkgWedPHH4jCzpCXLmzVsw1ouK59MuUtP4a1" crossorigin="anonymous"></script>

Offline

#2 2019-01-25 21:54:41

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Update FontAwesome in BL 2

Here’s a discussion from last year: http://community.theturninggate.net/vie … 796#p51796

If you want to try loading that script on all pages, you can do so with phplugins using the “scripts” or “head” hook.
See the docs for info on implementing phplugins: http://backlight.theturninggate.net/doc … _phplugins


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2019-01-26 11:52:14

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Update FontAwesome in BL 2

All naming conventions are different in FA5, as compared to FA4.7, meaning that you will not be able to replace preexisting UI elements in Backlight. I simply wouldn't bother, were I you.


Matt

The Turning Gate, http://theturninggate.net

Offline

#4 2019-01-26 14:47:51

richam
Member
From: Preveza, Greece
Registered: 2013-01-06
Posts: 143
Website

Re: Update FontAwesome in BL 2

Matthew wrote:

All naming conventions are different in FA5, as compared to FA4.7, meaning that you will not be able to replace preexisting UI elements in Backlight. I simply wouldn't bother, were I you.

The problem arose when I upgraded to Backlight 2.  I lost some of my FA characters with what I assume was FA4.7.  Also, I use MacDown to develop any lengthy text passages, so I need to have it harmonized with Backlight to make sure the FA characters will look the same on the site after I copy and paste the text in Lightroom.  I changed the naming conventions on some pages, but lost MacDown compatibility (MacDown had been using a FA5.0.8 script as I recall).  I re-formatted the FA naming conventions on all pages where I use FA, not too difficult with search and replace using MacDown, and added the FA5.6.3 script to the text of each page.  It all worked, but required a FA5.6.3 script on every page, developed in MacDown or not.  And it allowed me to use some new FA characters.

I have since added the FA5.6.3 script to my first (home) menu item text, and deleted the script from individual pages (except in MacDown).  I use the same menu throughout the site, and it makes all the FA characters work regardless of the page template or contents, and whether the page text was developed in MacDown or not.  So that makes one solution to upgrading FA throughout the site with only one script.

I'm still struggling with PHplugins.  Can't seem to get them working.  Do you have any other on line guidance, tips, etc. that would help?

Offline

#5 2019-01-26 15:36:00

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Update FontAwesome in BL 2

What exactly is not working for you?
How are you implimenting?
Which of the sample phplugins files are you starting with?

Phplugins has changed a bit since BL1, see this post: http://community.theturninggate.net/vie … hp?id=8966


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#6 2019-01-26 23:41:34

richam
Member
From: Preveza, Greece
Registered: 2013-01-06
Posts: 143
Website

Re: Update FontAwesome in BL 2

As an example, started with  phplugins-pangolin-sample.php and named it my-phplugins.php, and selected  it in the page advanced setup.  The snipped below did not work for FA5.6.3.

// SET USER FUNCTIONS BELOW
// Some example functions are included below. Feel free to delete or modify unwanted functions.
// ****************************************************************************************************



  // put your functions here

function scripts() {

echo '

<script defer src="https://use.fontawesome.com/releases/v5.6.3/js/all.js" integrity="sha384-EIHISlAOj4zgYieurP0SdoiBYfGJKkgWedPHH4jCzpCXLmzVsw1ouK59MuUtP4a1" crossorigin="anonymous"></script>

';
return false;

} // END

Offline

#7 2019-01-27 00:08:04

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Update FontAwesome in BL 2

You kept the rest of the file intact, specifically the code at the very top?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#8 2019-01-27 13:27:44

richam
Member
From: Preveza, Greece
Registered: 2013-01-06
Posts: 143
Website

Re: Update FontAwesome in BL 2

rod barbee wrote:

You kept the rest of the file intact, specifically the code at the very top?

Yes.  Even did it again and got the same result.

Offline

#9 2019-02-03 07:12:23

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Update FontAwesome in BL 2

I see the script tag in your page source, so it appears that the PHPlugins function is not suffering any problem.


Matt

The Turning Gate, http://theturninggate.net

Offline

Board footer

Powered by FluxBB