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.

#26 Re: Backlight 3 Support » Backlight albums in Wordpress » 2020-05-15 01:55:28

Hmm... this works for me: http://lab.danielleu.com/blog/testing/ smile

Please have a look at line 49 in '/blog/wp-content/theme/yourtheme/inc/theme_backlight_shortcode.php'

It should look like this:

$response = json_decode(request("https://.... deleted by admin...../" . $album), true);

#27 Re: Backlight 3 Customization » multi language support » 2020-05-15 01:41:18

aebolzan wrote:
Daniel Leu wrote:

I see that it is working now for you, Agustin smile

seems that I am in another channel smile  I don't see any change in my PC, still the globe!

Agustin

UPDATE!!:  I see the change in my IPad but not in my Windows PC!, or the Android mobile...so there is some kind of issue related to the operating system

I think it is just a caching issue where the browser hasn't updated your latest CSS changes yet.

#28 Re: Backlight 3 Customization » multi language support » 2020-05-15 00:54:28

aebolzan wrote:
rod barbee wrote:

Agustin,

I see that you've uploaded the css. There's a syntax error. You have:

html[lang="es"].fa-globe:before{
   content: "ES";
}
 
html[lang="en"].fa-globe:before{
   content: "EN";
}

There needs to be a space before .fa-globe. Change the code so it looks like this:

html[lang="es"] .fa-globe:before{
   content: "ES";
}
 
html[lang="en"] .fa-globe:before{
   content: "EN";
}

still not working....any ideas?

Agustin

I see that it is working now for you, Agustin smile

#29 Re: Backlight 3 Support » Backlight albums in Wordpress » 2020-05-15 00:47:59

Hi Tom, you can make a post private so it doesn't show up in your feed, but you are still able to share the link so we can take a guess what's going on.

#30 Re: Backlight 3 Customization » multi language support » 2020-05-14 11:03:02

Your first statement is not closed. It should be

.nav.nav_h ul.primary-menu ul.sub-menu {
        width: 400px;
}

Do you notice the closing bracket?

#31 Re: Backlight 3 Customization » multi language support » 2020-05-14 10:58:35

aebolzan wrote:

Daniel,

I have no knowledge about CSS, but I copied and pasted your code into my custom.css file and nothing happened...the Home page shows as usual...maybe I did not understand what to do with your code...

Agustin

P.D. this is what my css file contains:

.nav.nav_h ul.primary-menu ul.sub-menu {
        width: 400px;

/* Language switching */

html .fa-globe:before{
   font-family: Arial;
   font-weight: 700;
   font-size: 0.875em;
}   

html[lang="es"].fa-globe:before{
   content: "ES";
}

html[lang="en"].fa-globe:before{
   content: "EN";
}


#language-selector ul {
   width: 75px;
}

Do you have a link to your page?

#32 Re: Backlight 3 Customization » multi language support » 2020-05-14 10:10:14

rod barbee wrote:
Daniel Leu wrote:
aebolzan wrote:

it would be interesting to know how....I was thinking also that perhaps the globe is not directly understood by some people and inserting something like " EN | ES" for English/Spanish would be better....

Agustin

Yes, a few lines of CSS code can do this. Please have a look at: http://lab.danielleu.com/blog/customizi … -selector/


Nice!

smile

#33 Re: Backlight 3 Customization » multi language support » 2020-05-14 08:41:38

aebolzan wrote:
rod barbee wrote:

You can change the globe icon with custom css. Either swapping it for another icon or using text.

it would be interesting to know how....I was thinking also that perhaps the globe is not directly understood by some people and inserting something like " EN | ES" for English/Spanish would be better....

Agustin

Yes, a few lines of CSS code can do this. Please have a look at: http://lab.danielleu.com/blog/customizi … -selector/

#35 Re: Backlight 3 Support » Problem adding Watermark on Export from Lightroom » 2020-05-13 00:57:33

Thank you for letting us know what the culprit was. Another of these 'Lr things"....

#36 Re: Backlight 3 Customization » Getting Started with new JSON API » 2020-05-13 00:55:15

Thank you, Nico. Still something strange is going on. 403 is an http 'forbidden' error code. Can you try a stock .htaccess file? You can find it in the Backlight installer download.

It looks like that all your .htaccess magic locks yourself out while I can run my script accessing data from your server!

#37 Re: Backlight 3 Customization » Getting Started with new JSON API » 2020-05-12 14:51:51

Hi Nico, let's do some more debugging:

function dlp_get_wp_rest_response($url){
	
	$curl = curl_init();
	curl_setopt_array($curl, array(
		CURLOPT_RETURNTRANSFER => 1,
		CURLOPT_URL => $url,
		CURLOPT_USERAGENT => 'User Agent X',
		CURLOPT_FAILONERROR => true
	));
	$posts = curl_exec($curl);

	echo '<pre>';
	print_r($posts);
	echo '</pre>';
}

function footer_bottom() {
	$posts = $this->dlp_get_wp_rest_response("https://www.phototheque.nicolaslogerot.com/backlight/api/get_album/343971");
}

#38 Re: Backlight 3 Customization » Getting Started with new JSON API » 2020-05-12 01:42:05

Hi Nico,

No idea what's going on. I have added some error handling so it shouldn't break your page and provide some additional infos wink

// Returns the JSON API response as an array. If an error was detected
// an error response is returned
//	
// Error response:
// (
//     ['status'] => 'error'
//     ['code'] => error number
//     ['message'] => error description
// )
function dlp_get_wp_rest_response($url){
	
	$curl = curl_init();
	curl_setopt_array($curl, array(
		CURLOPT_RETURNTRANSFER => 1,
		CURLOPT_URL => $url,
		CURLOPT_USERAGENT => 'User Agent X',
		CURLOPT_FAILONERROR => true
	));
	$posts = curl_exec($curl);

	// Was an error detected?
	if(curl_errno($curl)>0){	 
		$posts = Array();
		$posts['status'] = 'error';
		$posts['code'] = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
		$posts['message'] = curl_errno($curl).': '.curl_error($curl);
	} else {
		$posts = json_decode($posts, true);
	}

	curl_close($curl);
	return $posts;
}

function footer_bottom() {
	$posts = $this->dlp_get_wp_rest_response("https://www.phototheque.nicolaslogerot.com/backlight/api/get_album/343971");
	
	// check for errors 
	if (array_key_exists('status', $posts)){
		// error detected:
		echo '<pre>';
		print_r($posts);
		echo '</pre>';
	} else {
		echo "Array length: " . count($posts['album']['photos']);
	}
}

Please let me know what error message you get! Thanks!

#39 Re: Backlight 3 Customization » Getting Started with new JSON API » 2020-05-11 10:30:57

I'm running this code, Nicolas, and it works without problems:

function footer_bottom() {
   $posts = $this->dlp_get_wp_rest_response("https://www.phototheque.nicolaslogerot.com/backlight/api/get_album/343971");
   echo "Array length: " . count($posts['album']['photos']);
}

I'm surprised that even performance doesn't seem to be an issue when doing this over the internet. It will be even faster on your machine.

#40 Re: Backlight 3 Customization » Getting Started with new JSON API » 2020-05-11 02:05:58

Nico3939 wrote:

Oh yes thank you Rod,

Now the error is:

Something went wrong
count(): Parameter must be an array or an object that implements Countable in perso-home.php on line 147

Can you try it on an album with less images?

#41 Re: Backlight 3 Support » Problem adding Watermark on Export from Lightroom » 2020-05-10 11:00:05

Hmm.. I don't think you can use Lr/Mogify2 (I wish I could), but the watermarking by Lr works. Did you by chance set the Lr Publisher option 'Push metadata without updating existing photos'?

#42 Re: Backlight 3 Support » something wrong with the Search page » 2020-05-10 10:55:40

Everything is as it is supposed to be. Obviously, changing the colors a bit would make it more user friendly.

#43 Re: Backlight 3 Customization » Getting Started with new JSON API » 2020-05-10 03:02:06

I'm confused, Nico. My version posted here can be run on any page.

#44 Re: Backlight 3 Customization » Getting Started with new JSON API » 2020-05-09 10:56:51

Nico3939 wrote:

Thank you very much Daniel
It seems it don't work

3533 images dans la photothèque

That's a big library! Nice that it works now!

#46 Re: CE4 Client Response Gallery » Highslide Comparative Mode? (CE3 CRG) » 2020-05-08 03:55:22

Matthew, I do provide consulting services related to Backlight. If you would like to have Highslide support using phplugins, please contact me offline to discuss this in more detail.

#47 Re: CE4 Client Response Gallery » Highslide Comparative Mode? (CE3 CRG) » 2020-05-08 03:51:07

rod barbee wrote:

It's not part of Backlight at all. You'd to integrate it yourself: http://highslide.com/
Probably using the new JSON api. https://backlight.me/docs/json-api

The JSON API is not needed for this. Just the regular PHP API is sufficient.

#48 Re: CE4 Client Response Gallery » Highslide Comparative Mode? (CE3 CRG) » 2020-05-08 03:03:42

Comparative mode is a feature of the highslide gallery. phplugins is just the mean to set up the necessary environment and call the highslide gallery.

Personally, I didn't like the look of it and never used it. So I don't know how the integration was done in the old days. But BL3 provides all the means to access the album structure so there is nothing that prevents one of using this plugin.

#49 Re: CE4 Client Response Gallery » Highslide Comparative Mode? (CE3 CRG) » 2020-05-08 02:05:19

You could use it with phplugins. But I just looked at the release history and it is a bit outdated.

#50 Re: CE4 Client Response Gallery » Highslide Comparative Mode? (CE3 CRG) » 2020-05-07 23:32:15

Did you look at the Juxtapose feature of the Backlight 3 Theater module? It supports including videos as well. Is this what you are looking for?

Board footer

Powered by FluxBB