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.
Hmm... this works for me: http://lab.danielleu.com/blog/testing/
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);
Daniel Leu wrote:I see that it is working now for you, Agustin
seems that I am in another channel
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.
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
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.
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?
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?
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!
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/
This looks nice, Nico!
Thank you for letting us know what the culprit was. Another of these 'Lr things"....
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!
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");
}
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
// 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!
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.
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?
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'?
Everything is as it is supposed to be. Obviously, changing the colors a bit would make it more user friendly.
I'm confused, Nico. My version posted here can be run on any page.
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!
Send an email to Matt with both order numbers.
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.
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.
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.
You could use it with phplugins. But I just looked at the release history and it is a bit outdated.
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?