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.
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
ok, I see
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?
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
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
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
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
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.
there should be a way to do that. Which of your sites is this for?
for this site https://www.mc-photografie.de/
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
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)
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
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
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
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...
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
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
Perfect - thanks, Ben
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
Hi Daniel,
thanks for your replay. The change in phplugins seems to work
Thanks
Markus
Hi Rainer,
that was really easy - if you know where to look
Thank you
Markus
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
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
here is another approach, probably also much cheaper than cookiebot https://www.consentmanager.net/
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=1Not 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:
Website needs to be scanned for cookies
Cookies need to be determined if there are actually mandatory to run a website
Cookie consent form needs to be adjusted accordingly in separate categories such as Mandatory to run website - Marketing - Sales - Analytics
Further to this, all cockies in use needs to be displayed on a separate site stating all information (Publisher of cookie, usage of cookie)
Consent form needs to be presented to visitor of page - all not mandatory cookies are disabled at this stage
After consent is given, cookies may be enabled for this particular visitor
Consent data need to be stored for a) website owner and b) if visitor change their mind
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
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.
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
I hope you can implement a solution
Thanks
Markus
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
Hi Rod,
thanks for your instruction - with the help of your data I will try to find the suitable settings for my panoramas
Markus