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 2020-04-13 23:26:36

leonvanlier
Member
Registered: 2017-02-05
Posts: 17

Insert adsense script

I want to enter a script for google adsense. This should be between the <head> and </head> tags. Where can I enter that?

Offline

#2 2020-04-13 23:28:57

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

Re: Insert adsense script

you can do this with phplugins using the head hook
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 2020-04-14 00:23:09

leonvanlier
Member
Registered: 2017-02-05
Posts: 17

Re: Insert adsense script

i'am sorry. i come to rename the script to my phpplugins but how and where to put the code next is a mystery to me?

Offline

#4 2020-04-14 00:24:44

leonvanlier
Member
Registered: 2017-02-05
Posts: 17

Re: Insert adsense script

i see this text:

/* DELETE THIS LINE
// Basic structure for a PHPlugins function
function _HOOK_() {
    echo '

    ';
    return false;
} // END /**/

What do i have to do with it and is that enough or is there more that i have to do?

Offline

#5 2020-04-14 00:31:45

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

Re: Insert adsense script

function head() { 
	echo '
	<script>.....your script....</script>

	';
	
} 

If your script has any single quotes, edit it with a plain text editor so that the escape character appears before the single quote: \'


after editing your phplugins file, save it and upload it to /backlight/phplugins/

make sure you activate it in your page template


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

Offline

Board footer

Powered by FluxBB