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 2017-03-04 23:15:02

Jon@hpx
Member
Registered: 2017-02-24
Posts: 24
Website

Statcounter in Backlight

I have been using Statcounter with the CE plugins for awhile. I put the statcounter code into the ttg_body_bottom function in the phpplugins file. That worked fine, except I think with the full stage gallery. I never got around to try solving that one.

With Backlight, this body_bottom tag doesn't seem to exist. I tried it in the ttg_scripts function, but it doesn't seem to do anything there. I have tried it in some other function areas, I forget now what ones I have tried, but the mast_head and navigation related ones I remember, but they either break the page, ie the page doesn't load, or it does nothing.

Which is the proper function to include it under?

Is there anything special I need do to have it work with "in-page" theatre templates and full-page theatre templates?

Thanks.

Offline

#2 2017-03-04 23:50:50

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

Re: Statcounter in Backlight

try the ttg_main_bottom or ttg_gallery_bottom hooks.

Take a look at the phplugins file, there are now many more hooks than what the documentation page shows, assuming your version of Backlight is up to date.


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 2017-03-05 00:13:53

Jon@hpx
Member
Registered: 2017-02-24
Posts: 24
Website

Re: Statcounter in Backlight

Thanks Rod. I saw all the new hooks in the phpplugins file, but couldn't tell what each actually did. As far as I know, my Backlight is up to date. Whenever a new version comes out, I update. I'm using 1.1.1.

I'll give those hooks a try and report back.

Offline

#4 2017-03-05 00:21:00

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

Re: Statcounter in Backlight

this page I created might help in visualizing the hook locations: http://backlight-rb-test.barbeephoto.co … -locations

and here's one for albums: http://backlight-rb-test.barbeephoto.co … locations/


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

Offline

#5 2017-03-05 00:32:37

Jon@hpx
Member
Registered: 2017-02-24
Posts: 24
Website

Re: Statcounter in Backlight

These are great resources, Rod. Thanks.

Offline

#6 2017-03-05 01:37:28

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

Re: Statcounter in Backlight

If you want Phplugins files to create reference pages of your own, you can download them here:
http://ttg-tips-and-tricks.barbeephoto. … backlight/


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

Offline

#7 2017-03-05 03:48:06

Jon@hpx
Member
Registered: 2017-02-24
Posts: 24
Website

Re: Statcounter in Backlight

I tried the main_bottom hook and it seems to work for everything, including full page theatre galleries. I kept the code I received from Statcounter in a separate html file and just added an include line in the php file within that hook.

Thanks again Rod.

Offline

Board footer

Powered by FluxBB