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.
You are not logged in.
Pages: 1
I want to enter a script for google adsense. This should be between the <head> and </head> tags. Where can I enter that?
Offline
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
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
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
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
Pages: 1