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 Re: Backlight 3 Customization » Getting Started with new JSON API » 2020-05-18 13:40:17

Daniel Leu wrote:

You can use something like

function album_top(){
    if ($this->dlp_page_match('/backlight/search')){
      echo ' whatever you want to display on search albums';
   } else {
      echo ' whatever you want to display on regular albums';
   }
   return true;
}

The 'dlp_page_match' function is described over on my blog: https://lab.danielleu.com/blog/page-specific-php-code/

Hi Daniel,
I'm gonna have to take another look at that.
Thanks, Markus

#2 Re: Backlight 3 Customization » Getting Started with new JSON API » 2020-05-17 23:36:10

ok, I see sad

I use the album_top hook to display the found photos in the photo search.
And I use the album_bottom hook for the "back-link" to the previous album

Then I guess this probably won't work?

#3 Re: Backlight 3 Customization » Getting Started with new JSON API » 2020-05-17 22:45:20

Hi Rod,

i have tested the following phplugins hooks:

album_top and album_bottom insteat of footer_top or footer_botton, which I assume are the right ones.

The following error message appears for both:

Something went wrong

Unexpected error: Cannot redeclare PHPlugins::album_bottom() in phplugins-mc-photografie.php on line 423

Please report error at http://community.theturninggate.net

Greetings, Markus

#4 Re: Backlight 3 Customization » Getting Started with new JSON API » 2020-05-17 21:44:38

Daniel Leu wrote:

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.

Hello everyone, Daniel's code seems to work for me - thanks for that.
On my test page bl3.mc-photografie.de the number of photos of the given gallery is displayed on each page above the footer.

What I ask myself now? Is it also possible to use such a code, e.g. to display the number of photos above the galleries on every gallery page?

"This gallery contains x photos"

Sunny greetings
Markus

#5 Re: Backlight 3 Support » Problems with reCAPTCHA V3 » 2020-05-11 00:00:38

Hi Ben,

apparently, I was wrong. In the meantime I have seen that the other one is the 2 version of reCaptcha.

Then everything seems to work correctly and the reCaptcha icon only appears on the contact page.

Now the reCaptcha icon disappears - just like the one of Cookie Content Management - behind the page when it is resized below 1.280px.

How can I get it one level higher than the page so that these icons remain visible to the user?

Markus

#6 Re: Backlight 3 Support » Problems with reCAPTCHA V3 » 2020-05-10 06:28:59

Hi,

i also have problems setting up reCAPTCHA 3.

I have entered the Site Key and the Secret Key in the Backlight Settings.
Then I set the option to "v3 enabled" in the Contact Forms.

But it is not implemented correctly. I haven't found the error yet and checked the settings several times.

On the test page https://bl3.mc-photografie.de/contact/ the icon is shown in the lower right corner, but nothing more.

And at https://www.mc-photografie.de/contact/ the icon is also shown in the lower right corner, but at least it folds out.
A field you have to click on to set a green check mark and thus the contact form will be sent, doesn't show up.

I guess I can influence the position and the appearance with CSS.
But how do I get the function of reCaptcha set up?

How do I do that?

Greetings, Markus

#7 Re: Backlight 3 Support » Organize navigation menus on mobile devices » 2020-05-10 00:08:25

rod barbee wrote:

try this. This will assume you add no other sub-menu items below other main menu items:

#page__pallet__T1 li.menu-item ul.sub-menu ul.sub-menu .menu-item {
    display: none;
    
}

Perfect! That's what I thought. Thanks Rod.

#8 Re: Backlight 3 Support » Organize navigation menus on mobile devices » 2020-05-09 23:37:48

rod barbee wrote:

there should be a way to do that. Which of your sites is this for?

for this site https://www.mc-photografie.de/

#9 Re: Backlight 3 Support » Organize navigation menus on mobile devices » 2020-05-09 22:32:30

rod barbee wrote:
Markus wrote:

this works for me

#page__pallet__T1 li.menu-item:nth-child(2)>ul.sub-menu {
    display: none;
}

How would I have to change the code if I only wanted to show the first child menu in the photo gallery?

I haven't figured that out yet sad

Just the first level below the Galleries menu item and not the rest?

Yes Rod, I would like to show only the first level below the Galleries menu (Neue Fotos | Landschaft > | Tiere | Sport)

#10 Re: Backlight 3 Support » Organize navigation menus on mobile devices » 2020-05-09 17:40:20

this works for me

#page__pallet__T1 li.menu-item:nth-child(2)>ul.sub-menu {
    display: none;
}

How would I have to change the code if I only wanted to show the first child menu in the photo gallery?

I haven't figured that out yet sad

#11 Re: Backlight 3 Support » Organize navigation menus on mobile devices » 2020-05-09 17:12:05

Hi Rod,

this seems to be th solution i´m looking for. When I´ll be back on my MacBook I´ll tested it. Or does a solution of the inspector exist in iOS?

BTW: In Chrome I use the extension „Window Resizer" to look for the resolution in portrait mode. Actually I don´t find an extension for firefox or Safari. Do you have a tip for some extension.

Greetings
Markus

#12 Backlight 3 Support » Organize navigation menus on mobile devices » 2020-05-09 02:21:44

Markus
Replies: 11

Hi,

I would like to optimize my navigation menus on the mobile devices https://www.mc-photografie.de

I don't like this at the moment because it is too confusing. That's because of my subpages and the 3 levels.

When I look at my navigation in portrait format on the iPad, all levels are "unfolded".
Normally it should be like on the big screen. A child menu item should unfold when I click on it. And then the next lower level if necessary.

Can I put this somewhere in the template? I haven't found that yet. Or is it only possible via CSS and/or PHP?

In my custom.css I have a section Mobile Menu. It seems to be the wrong setting or the decisive one is missing.

Do you have a tip for me?

Have a nice weekend
Markus

#13 Re: Backlight 3 Support » Differences in the resolution of photos in the slideshow after upgrade » 2020-05-07 05:18:46

I just uploaded a new test album and took care to choose the right template.

Now everything is right.

So it seems to be because of the change of the template. I guess something didn't work out.

I unchecked "Push metadata without updating existing photos". But it didn't work.

I will delete the album and create a new one. As long as it works then. It's weird, though...

Thank you...

#14 Re: Backlight 3 Support » Differences in the resolution of photos in the slideshow after upgrade » 2020-05-07 05:03:40

Hi Rod,

the Image Rendition under Photos for the template is 1600x1600 px

However, I had set a different template for the first release, there is the image rendition at 900x900. But why 960x640 px then ;-)

But I changed the template, then re-marked the album for publishing and then re-published it.

Unfortunately no change.

Greetings
Markus

#15 Backlight 3 Support » Differences in the resolution of photos in the slideshow after upgrade » 2020-05-07 04:13:46

Markus
Replies: 4

Hello,

the upgrade from BL 2 to BL 3 worked out wonderfully and easily.
Many thanks to Matt and Ben for this easy upgrade!

I have already installed the Publisher and everything worked - almost.

I set up a new album and made all the settings the same as with BL 2 and Publisher 4.0.9, especially the selection of the template (mc-album-small).

What I noticed, though:

When I look at the slideshows of the two different albums, I notice that the maximum resolution with the "old publisher" is 1600x1067 px.

Publisher BL 2:

https://www.mc-photografie.de/galleries … rote-2014/


But for the album with the Publisher 5.0.1. the max. resolution is 960x640 px.

Publisher BL 3:

https://www.mc-photografie.de/galleries … rote-2019/


In Backlight I have already emptied the cache.

What could be the reason for this? Or what can I do?

Thanks
Markus

#17 Re: Backlight 3 Support » Kudos for this upgrade process! » 2020-05-05 17:02:01

Hi,
I also intend to upgrade to BL 3.

My memory limit is 128M, so it should work.
I assume that there will be no problems with the individual custom.css and phplugins after the upgrade, right?
Thanks
Markus

#18 Re: Backlight 3 Support » GDPR Notice & Acceptance Notice » 2020-05-05 16:28:55

Hi Daniel,
thanks for your replay. The change in phplugins seems to work
Thanks
Markus

#19 Re: Backlight 2 Support » Hide Breadcrumps only on Home » 2020-05-05 15:50:47

Hi Rainer,
that was really easy - if you know where to look roll
Thank you
Markus

#20 Re: Backlight 3 Support » GDPR Notice & Acceptance Notice » 2020-05-05 15:24:15

Hi,

I would like to include a Cookie Content Manager on my site (there are some, even free, on the market).
For this I have to include a Scipt-Snippet <script> ... </script> if possible directly after <head>, so that the page is monitored.

Can I do this somewhere in the settings?
Currently I have put the script at the beginning of "Page Copy" on Home Pages. Is it correct there?

Many Greetings
Markus

#21 Backlight 2 Support » Hide Breadcrumps only on Home » 2020-05-05 14:58:55

Markus
Replies: 2

Hi Guys,

on my homepage https://www.mc-photografie.de/home/ I have a Vegas slideshow on the start page. For the Pages as well as for the Album Sets and Albums I have added the Page Template "Home_Set", to avoid having to change too many templates when changing them.

This "Home_Set" I have then still adapted with PHP and Custom.CSS.

On the start page I also see breadcrumbs, I only want to hide them on the start page.

If I now add the line in Custom.CSS

ul.breadcrumbs {
       display: none;
}

then all other breadcrumbs are also hidden.

How can I only hide the breadcrumbs on the start page? Or do I have to create a new page template?

Thanks for your tips

Many greetings
Markus

#23 Re: Backlight 2 Support » New court decision of 01 October 2019 on GPDR. Cookies must be changed » 2019-11-24 19:59:13

Matthew wrote:
Markus wrote:

Here are the laws:

Personal data and data subjects:
https://eur-lex.europa.eu/legal-content … 1e3373-1-1
Judgement Cookie to 01.10.2019:
http://curia.europa.eu/juris/document/d … rst&part=1

Not a lawyer, and not reading these. As Ben has suggested, if you can lay out expectations in layman's terms, we'll have something to discuss.

Hello together,

I am glad that you want to take care of our (in EU) problem in order to find a solution.

Here is the implementation for the cookie problem:

  1. Website needs to be scanned for cookies

  2. Cookies need to be determined if there are actually mandatory to run a website

  3. Cookie consent form needs to be adjusted accordingly in separate categories such as Mandatory to run website - Marketing - Sales - Analytics

  4. Further to this, all cockies in use needs to be displayed on a separate site stating all information (Publisher of cookie, usage of cookie)

  5. Consent form needs to be presented to visitor of page - all not mandatory cookies are disabled at this stage

  6. After consent is given, cookies may be enabled for this particular visitor

  7. Consent data need to be stored for a) website owner and b) if visitor change their mind

  8. If visitor wants to change consent given, a site has to be displayed and the already given consent is to be displayed with the ability to opt-in or opt-out

  9. All data stored either in a separate database and/or file on server in order to be able to pull consent per visitor out again.

  10. Enable deletion of stored data after a period of 24 hrs, 2 Days, 1 Week or 1 month depending on website owners needs

Altogether, data need to be stored if visitor comes back to a later point of time. Further to this, data to be stored could be IP, browser credentials or saving a cookie onto  visitors browser/computer in order to “track” consent given.


I am not a lawyer either. For more information, Steffi from Steffi's Cloud is the person who knows best about this. @Matt with Steffi you already had email contact. I am one of these clients wink

I hope you can implement a solution

Thanks
Markus

#24 Backlight 2 Support » New court decision of 01 October 2019 on GPDR. Cookies must be changed » 2019-11-16 01:45:47

Markus
Replies: 23

Good evening from Germany,

on 23 Mai 2018 the DSGVO/GDPR had been came into force within Europe and Germany. In the privacy settings of the web interface you have already implemented the usage of cookies very well. As it now stands, the usage of cookies can be accepted (banner regulation).

However, unfortunately this solution is not sufficient anymore as per court decision on 01 October 2019. Cookies need to be stored and recalled for any visitor. Moreover, for each visitor of my site there has to be some kind of opt-in and opt-out options for cookies in use, unless they are bound to be specific and crucial to run the site.

Here are the laws:

Personal data and data subjects:
https://eur-lex.europa.eu/legal-content … 1e3373-1-1
Judgement Cookie to 01.10.2019:
http://curia.europa.eu/juris/document/d … rst&part=1

Well, there are some providers for services of cookie implementation around (e.g. https://www.cookiebot.com/en/). Their websites state, that the new cookie feature has to be implemented from 01 Oktober 2019 onwards.

I had my old homepage tested, which wasn't finished yet. Over 2.300 subpages came out. The protocol showed that every photo of the gallery was counted as a subpage. I should have been paid EUR 21 for this service pcm. For a hobby a little too much, I think.

Meanwhile I found out that the photos are exported by TTG as sides. As a result all photos will be displayed as subpages, which are far too many.

Actually the photos should rather run as embedded post, right? This would actually only count the album sets and albums and then the third-party service of cookies would be free of charge for me as I would not reach their maximum pages.

It is not only I to have an issue with this but all users of TTG which are located in Europe and especially in Germany will face it. I like to ask when we could expect a solution of cookies from your side in order to apply the new regulations? As I can understand the new regulation, it would be a great idea to have all photos either embedded as a post or the much simpler solution would be, that you will update the cookie process of TTG to be conform with the regulations and court decisions. Because I am not able to solve this issue on my own, I have to seriously think about stopping my homepage all together in order not to get fined because I did not apply the laws, regulations and court decisions.   

I am looking forward to hearing from you soon. Thank you very much indeed for your support.

Best regards, Markus

#25 Re: Backlight 2 Support » New Panorama function on Theater » 2019-07-30 18:01:23

Hi Rod,

thanks for your instruction - with the help of your data I will try to find the suitable settings for my panoramas

Markus

Board footer

Powered by FluxBB