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-03-18 21:07:06

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Backlight 2.0.14 Update

Received the notice today and successfully updated my sites save one: marccharlebois.com; when I try to get to http://www.marccharlebois.com/backlight I get a 404 error. Same if I try marccharlebois.com/fr/backlight or marccharlebois.com/en/backlight
Could it be that these pages are still OKAPI? Why can't I reach Backlight?

Last edited by pideja (2020-03-18 21:07:22)

Offline

#2 2020-03-18 22:18:43

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Backlight 2.0.14 Update

Also, since updating pideja.ca, this is displayed on the Home page: transitionduration:4000; ] });

What's up?

Offline

#3 2020-03-18 22:21:50

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

Re: Backlight 2.0.14 Update

Did you ever hack the code to change a slide transition duration? This could be related to that.


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

Offline

#4 2020-03-18 22:29:44

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

Re: Backlight 2.0.14 Update

pideja wrote:

Received the notice today and successfully updated my sites save one: marccharlebois.com; when I try to get to http://www.marccharlebois.com/backlight I get a 404 error. Same if I try marccharlebois.com/fr/backlight or marccharlebois.com/en/backlight
Could it be that these pages are still OKAPI? Why can't I reach Backlight?

those are currently CE3 sites. So no wonder you get a 404 error when trying to access Backlight wink


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 2020-03-18 22:31:47

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Backlight 2.0.14 Update

I don't think so...where would I have done that? In Backlight>Designer>Templates>introduction>Design>Presentation I have selected Vegas slide show with a slide delay of 5000ms. If I did hack the code, I don't remember how or where.

Offline

#6 2020-03-18 22:33:39

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Backlight 2.0.14 Update

So, if the marccharlebois.com is still CE3, does this mean...redesign and re-publish? There is no upgrade possible?

Offline

#7 2020-03-18 22:39:14

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

Re: Backlight 2.0.14 Update

pideja wrote:

So, if the marccharlebois.com is still CE3, does this mean...redesign and re-publish? There is no upgrade possible?

re-design at the least.

If the site was using publisher, you could first migrate the albums to CE4 Publisher and then when you do the Backlight redesign, you could then migrate them to Backlight Publisher.

Are you the site owner and publisher? If not, the person owning the site may need to install CE4 Publisher into Lightroom first. At least that's what the docs imply: http://ce4.theturninggate.net/docs/doku … ce3_to_ce4

otherwise, they'll need to republish everything.


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

Offline

#8 2020-03-18 22:45:05

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Backlight 2.0.14 Update

I thought so. I think I'm in for a complete overall of this site....

As for that script appearing on the Home page of pideja.ca, any ideas?

In the inspector, I see this:script

Why is that written as copy?

Last edited by pideja (2020-03-18 22:55:34)

Offline

#9 2020-03-18 23:12:46

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Backlight 2.0.14 Update

As per suggested here: https://ttg-tips-and-tricks.barbeephoto … ide-shows/, I checked the vegas_js.php file and the transitionduration is set to 6000 so I don't know where that script displayed on the Home page comes from.

Last edited by pideja (2020-03-18 23:13:51)

Offline

#10 2020-03-18 23:43:21

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

Re: Backlight 2.0.14 Update

check your phplugins file. It looks like some stray code that's being inserted into the album that's being displayed on the home page.


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

Offline

#11 2020-03-18 23:52:31

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Backlight 2.0.14 Update

This is my phplugin file:

<?php

function 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.
}

if (defined('BACKLIGHT_HOOK')) {
	require_once(realpath(BACKLIGHT_HOOK).'/modules/module-designer/application/helpers/APHPlugins.php');
}

class PHPlugins extends APHPlugins
{

/* breadcrumbs */

function page_match($gallery) {
   if (substr($_SERVER["REQUEST_URI"], 0, strlen($gallery)) == $gallery) {
      return 1;
   }  else {
      return 0;
   }
}


/* Replace the mobile menu icon with the word "Menu" */

function scripts () {
echo'
<script>
$(".page__toggle__buttons label ul").replaceWith("<p>Menu</p>");
</script>

<script>
 jQuery(document).ready(function($){
 $(\'#search form\').find("input[type=text]").each(function(ev)
 {
     if(!$(this).val()) {
    $(this).attr("placeholder", "Placer le terme de recherche entre des guillemets");
 }
 });
});
 </script>
';
}

/* Display the logo in pallet_top */

function pallet_top_title () {
  echo '

  <li class="top-pallet-logo"><a href="https://pideja.ca/"></a></li>

  ';
  return false;
}

} ?>

I can't find any reference to that script. Even checked CSS and, as you know, the vegas_js script.

Offline

#12 2020-03-18 23:56:07

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

Re: Backlight 2.0.14 Update

then check the album content (though I don't see how that would be added to the home page) and check that vegas_js.php file


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

Offline

#13 2020-03-19 00:03:26

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

Re: Backlight 2.0.14 Update

look for any text outside of the <script>....</scripts> tags


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

Offline

#14 2020-03-19 00:12:53

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Backlight 2.0.14 Update

I already checked the vegas_js file (as seen in a previous response) and the slideshow segment looks like this:

<script>
	var slideshow = '<?php echo $model->value('presentation.vegas.type') == 'full-screen' ? '.background__album' : '.gallery' ?>';
	$(slideshow).vegas({

		autoplay: <?php echo $model->value('presentation.vegas.controls') && ! $model->value('presentation.vegas.autoplay') ? 'false' : 'true' ?>,
		color: '<?php echo $model->value('presentation.bgcolor') ? $model->value('presentation.bgcolor') : $model->dynamicValue('colorBase') ?>',
		cover: <?php echo $model->value('presentation.vegas.cover') == 'repeat' ? '\'repeat\'' : ($model->value('presentation.vegas.cover') == 'cover' ? 'true' : 'false'); ?>,
		delay: <?php echo $model->value('presentation.vegas.delay') ?>,
		overlay: <?php echo $model->value('presentation.vegas.overlay') != 'none' ? '\''.$this->getLocalURL().'static/images/'.$model->value('presentation.vegas.overlay').'.png\'' : 'false' ?>,
		shuffle: <?php echo $model->on('presentation.vegas.shuffle') ? 'true' : 'false' ?>,
		timer: <?php echo $model->on('presentation.vegas.timer') ? 'true' : 'false' ?>,
		transition: '<?php echo $model->value('presentation.vegas.transition') ?>',
		transitionDuration: 6000,
		slides: [<thp>echo $slides</thp>],

		init: function (globalSettings) {  

You can see that the transition duration is set to 6000 and not 4000 as displayed on the home page.
Further, I checked index, download, lib, single php files as well as the gallery.xml file to no avail.

Since I can see the offending script in the inspector (see the image in previous reply), where is that html code?

Offline

#15 2020-03-19 00:18:07

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Backlight 2.0.14 Update

Something strange: in the animation template (called INTRODUCTION) the ALBUM COPY is empty. Yet, if I set it to below the gallery, the offending text goes to below the slideshow!

Last edited by pideja (2020-03-19 00:18:46)

Offline

#16 2020-03-19 00:19:46

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

Re: Backlight 2.0.14 Update

The script you see at the bottom of the page is the vegas script that will be found on any vegas slide show page.

The only reason I can think of for that 4000 text coming up is that it's been added outside of script tags somewhere along the line.

that text also appears in the album itself: https://pideja.ca/galleries/introduction/

First thing to try is removing the album from the the home page. The text should disappear.

Try creating a new vegas album and see if it appears in that album too.

If it does, then chances are it's coming from that vegas_js.php file. Look at the entire file. Try a search on that text string.


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

Offline

#17 2020-03-19 00:22:51

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

Re: Backlight 2.0.14 Update

pideja wrote:

Something strange: in the animation template (called INTRODUCTION) the ALBUM COPY is empty. Yet, if I set it to below the gallery, the offending text goes to below the slideshow!

that makes sense. the text is showing up in the copy area. If you move the copy area to below the gallery, then the text will move as you've seen.


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

Offline

#18 2020-03-19 00:58:16

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Backlight 2.0.14 Update

FOUND IT!!! It was in Lightroom in the publisher, under Page Content. Why was it there? Anyway, I removed it. All is well...for now.

Thank you.

Offline

#19 2020-03-19 02:38:48

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

Re: Backlight 2.0.14 Update

I think I found the reason that was happening. That text was already in your album copy in Lightroom. It was probably just added inadvertently at some time.

Prior to the latest update, any text entered in an album or album template would not appear on the page in which that album was embedded. That's why you've never seen it on your home page before.

There was a change to the embedded album code in the latest update, according to the Changelog.

Looks like whatever change was made now allows album copy to appear on embedded pages.


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

Offline

#20 2020-03-19 06:34:23

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Backlight 2.0.14 Update

Good to know. Thanks!

Stay safe.

Offline

#21 2020-03-19 07:35:18

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Backlight 2.0.14 Update

Glancing over this thread it looks like multiple topics are covered. If that’s the case can we get into the habit of creating new support issues for unrelated items? That will make it easier to know what’s going on and focus on individual issues. I am looking into the problem of the album copy for embedded albums.

Offline

#22 2020-03-20 03:33:28

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Backlight 2.0.14 Update

Sorry for abusing the forum, Ben. It all started with the update problem over multiple sites I manage. Turns out one was CE3 and the other had that pesky code, mysteriously appearing in Lightroom Publisher.

I always try to remain on topic.

Offline

Board footer

Powered by FluxBB