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.
Tried my luck (without success) with the following approach (PHPlugins:
1.) Determine under which top-level gallery you are browsing using this:
$url99 = 'http://'. $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
$parts = explode('/', $url99);
$test = "/" . $parts[3] . "/";
so $test will give me something like "/galleries_europe/"
2.) Find the corresponding value in the primary-menu and highlight it
Tried this step by using the "window.location.pathname" but I failed ^^
Hi,
finally I found some time to improve my site a bit but I am struggeling with a "highlight" problem. I found some code provided by Ben and Rod to highlight the current menu item
by using PHPlugins and some CSS. What I would like to do is to highlight the top-level gallery in the same way.
Example: You click on "Europe" and the item is highlighted but if you click on an album (I guess the PHPlugin file is not involved here) the highlight disappears.
Any chance to get the same behaviour for an album?
My private homepage --> http://www.globetrotter.one/
Thank you in advance and enjoy this beautiful (at least here in Switzerland) summer day
Regards
Moritz
P.S.
As always: any tips / tricks / idea for improvement will be appreciated
Hi,
using Backlight to configure my pages and a Wordpress blog. Is it possible to use phplugins and "function ttg_masthead_top" to just change the masthead hyperlink for the Wordpress blog header or do I have to configure the whole masthead within the phplugins file?
Thanks in advance
Moritz
Yes, I am too stupid ^^ thanks for hint. Now everything is working correctly, thank you
Hi,
I try to create a Wordpress blog using backlight but it seems that I am too stupid (or found a bug). In Backlight I exported the template and the design is corresponding with the rest of my page. Inside the Wordpress admin panel I created a new menu and add it to my theme (using the Customizer). The funny thing is that I can see the menu when using a tablet or a smartphone (mobile) but it seems to be missing in desktop mode.
The URL is: http://roadbook.globetrotter.one/
Any idea what I am doing wrong?
Moritz
PS: Ben / Matt / Rod --> I can provide you an admin access to both (Wordpress and Backlight) if necessary
I see, gonna go for the recommended one
Thank you!
Good morning,
just a question regarding the installation of "Wordpress + Backlight". My folder structure looks like this:
Domain "X"
/httpdocs/
/httpdocs/index.php
/httpdocs/.htaccess
/httpdocs/backlight
/httpdocs/galleries
Is it possible to install and use the Wordpress plugin if the structure looks like this:
Subdomain "Y" (along with Domain "X")
/blog
/httpdocs/
/httpdocs/index.php
/httpdocs/.htaccess
/httpdocs/backlight
/httpdocs/galleries
or is it really necessary to place the subdomain folder within the domain "X" directory?
/httpdocs/
/httpdocs/blog
/httpdocs/index.php
/httpdocs/.htaccess
/httpdocs/backlight
/httpdocs/galleries
I know the second approach is explained by your manual, just want to make sure the first one is not working.
Thank you
Moritz
EDIT:
additional question: Is Backlight PHP7.1 compatible?
@Rod
Fixed it.
@Daniel
definitely not on a weekly basis. A random picture would be an idea ... gonna change that later this day
Finally managed to implement some things and finish most parts. The biggest change is my new domain:
--> http://www.globetrotter.one (the old one will be shut down in a few weeks)
Some things I have done:
1.) Add a "picture of the week" @ the front page
-- Export 53 images you would like to show in a new folder (called mine IOTW) and rename them from 1 to 53
-- Add the following code to the PHPlugins file
/* Image of the week */
$image_folder = "/IOTW/";
$file_type = ".jpg";
$week= date('W');
$image_name = $image_folder . $week . $file_type;
/* Image of the week */
-- use this code to get the image (page)
<Center><b>Image of the week</b><br>
<img src="<?php echo $image_name; ?>" >
</Center>
2.) my custom CSS file
/*Center image captions during slideshow*/
.pswp__caption__center {
font-size: 0.95rem;
text-align: center;
padding: 0.95rem;
}
/*Center image captions during slideshow*/
/*Background transparent*/
main {
background-color: rgba(1,1,1,0);
}
.masthead,
nav,
.main, .page__main,
.page__tray[data-position="T1"],
.page__tray[data-position="T2"] {
background-color: rgba( 255, 255, 255, 0.5 );
}
/*Background transparent*/
/*Border Tray left*/
.page__tray[data-position="T1"] {
border-left: 3px solid rgba( 255, 255, 255, 0.5 );
}
/*Border Tray left*/
/*Show scrollbars to avoid side shift*/
html {
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}
/*Show scrollbars to avoid side shift*/
3.) Encoded my "contact" mail within the code instead of using the contact form
I know that there are captions missing, working on it. I also experienced some strange behaviour while in mobile mode (single page slideshow for a few pictures instead of Photoswipe. As stated above I am open for any suggestion
with help from "Stackoverflow" this is working for me:
.sub-menu {
background-color: rgba(255, 255, 255, 0);
}
.menu-item-has-children ul.sub-menu li {
background-color: rgba(255, 255, 255, 0.5);
}
Hope this helps!
yeah, was talking about the control panel. Glad you could fix it
Do you have 2 "PC Builds" listed under "Backlight --> Publisher --> Top Level Galleries --> Galleries (Albums) ?
If so, you can delete the wrong one
Yeah, I think so. Create an "Album Template" and under "Large Image Presentation" choose "Presentation Type: Single-Image Pages" followed by the settings you can set a bit down.
Regarding the caption, you can set them also within this setup menu. Just scroll up to "Image Settings" and you will find them under "Image Metadata". Don't know about your needs, just try it
This is a quick an dirty option to delete the password cookies for the "Backlight powered domain" after closing the tab or leaving for another URL (outside the page)
1.) Enable "PHPlugins" for your template
2.) Insert the following code
function ttg_scripts( $style, $path ) {
session_destroy();
}
3.) Enjoy
PLEASE NOTE: Wait for one of the TTG team to double check this solution (although it is working for me) because I don't know if this will affect any other open tabs!
Hi Philippe,
the problem is the different way the browsers have been coded. I did the same test with the Backlight test page (IE 11 and Firefox 48.0.2) and have not seen any noticeable differences. Of course it could depend on different browser releases and how they render pictures.
You can do this test on your own --> Open "http://test.vuedailleurs.com/galleries/ … e-0018.jpg" in different browsers and see how they render it (IE11 = upper left corner, FF 48.0.2 = center).
Matt had explained this in the previous thread but (I had the same problem) it's pretty hard to understand why this is happening. Each browser is rendering picture in a different way, interpret CSS files differently and (as stated above).
So the backlight base code IS different from the CE4 one and this could cause this "problems". Finding and eliminating the problem is nearly impossible. We all paid money for Backlight but to be honest it's worth its price.
If you have a look at the "Showcase Forum" and realise how many of them are using Backlight to sell their images this software is far away from being crap.
So in summary:
Matt and his team did a great job on Backlight (working out of the box) and it is impossible to render pictures with the same quality and size on every browser (even IE 10 and IE 11 render pictures differently).
If you feel bothered by this "problem" you can either insert a little text like "best display with Fireforx 48.0.2", switch to another software (maybe they are better but I don't think so) or just deal with it
I deal with it, you can't satisfy every single visitor of your page
Cheers
Moritz
PS: a good example for this --> http://breezi.com/how/browser-differences/
agreee with Mark!
Especially the lighthouse calendar is really nice
As fas as I understand the html header "lang" option only affects non-human things trying to read your page (search engines and stuff like that).
Well an (semi-)automatic update script is nice to have but not really necessarry. I agree with Daniel: Updating 5 folder is "better" than 10 individual files especially due the fact that there are some "non-IT geeks" using this masterpiece of software.
For me Backlight 1.0.4 is a huge step and definitely the way to go.
Maybe the dev team will think about a "wish list" to gather all the "nice to have options" for the further updates (example: captions @ Vegas slideshow and stuff like this).
Agree!
You're absolutely right and I will stick with the button. Thanks
Mit Backlight ist das so, gebe ich dir Recht. Früher zu CE4 Zeiten war das komplizierter
Ansonsten hilft die Readme wirklich
Uploaded via Backlight Panel?
They are stored inside "/backlight/data/designer/image_uploads" but without any extension. Maybe the names are stored inside the SQLite file.
argh this damn "." ... thank you
Well my pictures are a little bit larger than FullHD so the magnifier function is not really necessary. You may be right and it's not harmful so there is no need to remove it.
I used CE4 before and trying to migrate my page to Backlight at the moment. Upgrading Backlight needs a bit of work but a CE4 update was way more complicated.
Due the fact you are using Backlight for a professional page (work) I would recommend to upgrade only when expecting new features or important bugfixes. Before every update perform a full backup in case of any trouble you might get into.
(Habe früher CE4 Pages, Publisher und Co benutzt, da war ein Update viel komplizierter! Kann nur empfehlen vor jedem Update ein vollständiges Backup zu machen um im Falle des Falles dieses einfach zurückspielen zu können. Wichtiger ist aber ein Update nur zu machen wenn wichtige Funktionen hinzukommen oder Bugfixes eingespielt werden.)
You're welcome!
Salü, ja tu ich Forensprache ist aber eigentlich Englisch, denke aber Matt hat nichts dagegen wenn ich dir hier auf Deutsch helfe. Kann dir vermutlich eh nur bedingt helfen, aber probieren wir es mal. Die Gallerie wird ja per Lightroom "gefüttert" und dafür haste ja wahrscheinlich einen Veröffentlichungsdienst erstellt. Ist das so und falls ja, ist dort die Gallerie noch vorhanden?
@Matthew, Ben & Rod
Gonna try to help him on German in this specific case. If this is not okay for you we will switch to English.