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
Offline
use phplugins to do this: http://ce3wiki.theturninggate.net/doku. … _phplugins
the hook will be: ttg_body_bottom to place it just before the closing body tag
http://ce3wiki.theturninggate.net/doku. … ody_bottom
and the G_STYLE identifier will be: CE3-WORDPRESS
http://ce3wiki.theturninggate.net/doku. … _wordpress
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thanks for your reply Rod, just got around to trying this and can't seem to make it work!
The code I am putting in the phplugins.php is
<?php
/*
* TTG Core Elements "PHPlugins" User Hooks v1.2 - initialization mainline
*
* developed by john bishop images (http://johnbishopimages.com)
* for Matthew Campagna of The Turning Gate (http://theturninggate.net)
*
*/
//
function ttg_body_bottom( $style, $path ) {
if (
G_STYLE == 'CE3-WORDPRESS'
) {
echo '
<script src="https://www.dwin2.com/pub.225491.min.js"></script>
';
}
} // END
// ****************************************************************************************************
// END USER FUNCTIONS
?>
The above is everything which is on the page!
When I try to reload the website I just get a blank page.
The website is nathanweekesphoto.com it is my blog only site running Wordpress CE3 from the root.
Nathan
Offline
There's some code at the very top of all phplugins.php files that I believe needs to be there
function ttg_user_load( $style, $path ) {
$g_tsvrl = explode( ' ', $style ); // Extract gallery type
define ( 'G_STYLE', strtoupper($g_tsvrl[1]) ); // and set global for later
$g_path = str_ireplace('\\','/',$path); // change \ to /
$chunks = explode('/',$g_path); // and put into array
define ( 'G_PATH', strtoupper($chunks[count($chunks)-2]) ); // gallery folder name is second to last
//define ( 'TTG_SITE', ''); // set new site root for navigation, resources, etc.
}
So grab a fresh phplugins file and put your code below the line : // SET USER FUNCTIONS BELOW
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