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.
Thanks to both Rod and Rainer!
Yes. Is it in CSS? I'm not finding it.
Thanks!
Quick question: Which control changes the color of an image's metadata title in an album or album set?
Thanks!
Darrell Leland
Looks like you were right again! It was; when I copied and pasted I inadvertently left the old ttg_user_load in and added a second. I also had to fix some syntax errors.
Thanks again!
Darrell Leland
Argh! Sorry to keep bothering you guys. I'm trying to implement Matt's example for adding social media icons to the footer of my Backlight page. When I load the page I get the following error:
Something went wrong
Unexpected error: Cannot redeclare ttg_user_load() (previously declared in /hermes/walnaweb06a/b2683/moo.gothic1/creepyhouse/backlight/custom/phplugins/creepyhouse.php:10) in creepyhouse.php on line 108
Here's the php script I'm using:
<?php
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.
}
function ttg_scripts( $style, $path ) {
echo '
<script>var __adobewebfontsappname__="dreamweaver"</script>
<script src="http://use.edgefonts.net/metamorphous:n4:default.js" type="text/javascript"></script>
';
return false;
} // END
function ttg_footer_top( $style, $path ) {
echo '
<div class="custom_footer">
<div class="content clearfix">
<p style="margin-bottom:0;"></p>
<div class="grid_12">
<div class="col_9 alpha">
<p></p>
<p>
<a target="_blank" href="https://www.facebook.com/SirAndacar/"><span><img src="http://creepyhouse.net/images/icon-facebook.png" width="40" height="40" alt=""/></span></a>
<a target="_blank" href="https://www.linkedin.com/in/darrell-leland-2a8bb616"><span><img src="http://creepyhouse.net/images/icon-linkedin.png" width="40" height="40" alt=""/></span></a>
</p>
</div>
</div><!-- .grid_12 -->
</div>
</div><!-- .my_footer -->
';
return true;
} // END
________________________________________
} // END
// ****************************************************************************************************
// END USER FUNCTIONS
?>
Thanks in advance,
Darrell Leland
I put "metamorphous" in the Prepend field and it worked!
Thanks again Rod, I've learned a lot from you.
Darrell Leland
OK, I'm mostly there. Here's what I have so far:
<?php
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.
}
function ttg_scripts( $style, $path ) {
echo '
<script>var __adobewebfontsappname__="dreamweaver"</script>
<script src="http://use.edgefonts.net/metamorphous:n4:default.js" type="text/javascript"></script>
';
return false;
} // END
?>
Clearly I need to change the adobewebfontsappname from Dreamweaver. To what? Backlight? Would that make the Metamorphous font show up in the font selector in Backlight? In the normal HTML, Dreamweaver invokes the font like this:
<body style="font-family: metamorphous; font-style: normal; font-weight: 400;">
</body>
Would that be required somewhere else? In a css file?
Thanks Rod. I'll work on it and holler if I have questions.
(I hope this isn't explained somewhere else. I did search for it...)
I'd like to add an Adobe typekit font to my Backlight page. Where would I save the script it invokes?
Thanks as always,
Darrell Leland
Rod, I tried your solution and it fixed my problem! Thanks to both you and Ben for help on this issue!
Darrell Leland
Thanks Rod!
OK, I'm back. My isp says that this is an internal error from the Backlight software. It also gives me the same error on Edge, Firefox, ie11, and Chrome, so it isn't a browser issue. I'm sorry there isn't more information, but it isn't giving me any kind of error code. Suggestions?
Thanks folks!
Thanks for the responses. Now it won't save anything, so I need to call up the server. Joy.
Darrell Leland
Whenever I put any HTML in a Page Copy area I get this error:
Is this some kind of server thing? It's pretty vague.
Ideas?
Thanks!
No, I don't Rod. To be honest I don't even know what that is! However, it has mysteriously started working again. I think it happened when I went to the Web section of Lightroom and switched around a few times between different templates. All of a sudden there were a million uploads. If somebody fixed this for me, thanks! If it was the mysterious computer repair elves, thanks to you!
Darrell Leland
My website is at http://www.creepyhouse.net/. The hosting service is http://www.fatcow.com/. I can set up a guest account if you need one. Backlight login is at: http://creepyhouse.net/backlight/admin/?a=login
Thanks!
Darrell Leland
The tech at the other end says they have increased the upload setting to 128 Meg, still the same error. This worked perfectly before, and I haven't changed anything. Stumped.
Your slideshow works fine on all browsers from my end.
Darrell Leland
I've begun to encounter an error when trying to upload galleries from Lightroom. The program will just sit there for a while and the return the following error:
I have no other errors with FTP, the internet, or other web based functions.
TTG Backlight version: 1.1.1
Backlight Publisher version: 3.1.1
API key identification works fine.
Ideas?
Thanks!
Darrell Leland
What's a good approach to creating a PHPlugins script to do this?
Yes I did Rod. It looks like this was some kind of odd refresh problem on the server side. Thanks for checking. The black on black text and other issues just means I'm not finished yet. Thanks a whole lot!
Darrell Leland
Thanks Rainer! I looked at Home, About, and Contact. They all are set to the same template, and yet now Home and About look correct, but the Contact page is incorrectly formatted. Am I missing something? Is this the fault of very slow response at my hosting site?
My current backlight page is http://creepyhouse.net. I have been editing the basic default template, but it appears to have no effect on the existing pages. The About page is different from the rest and has no tray, but it is on the same template as everything else, so why should it look different? I have followed the instructions as exactly as I can, but keep getting the same results. Could somebody please tell me what I'm doing wrong?
Thanks,
Darrell Leland
I'd like to see this feature too. Could somebody post an example of how to accomplish this for us code impaired individuals? Thanks!
Darrell Leland