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.
Following code adds some text at the top of the page before any galleries or page copy text. If you like to have some text on another page, just use the respective slug in the string comparison. There is no need to use jQuery.
function main_top( ){
// Add some specific text to the home page above the gallery slideshow
if (strtolower($this->slug) == 'home') {
echo '<h1>Welcome</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam placerat magna id elit auctor, a commodo tellus mollis. Fusce enim augue, dictum vitae erat vel, volutpat scelerisque mi. Quisque ornare fringilla mi vel fringilla. Phasellus nisl erat, vestibulum at est ullamcorper, accumsan congue lorem. Pellentesque placerat, erat ac porta egestas, magna ante sollicitudin sapien, tristique pellentesque metus metus in lectus. Nulla ut dui vel purus semper sodales id nec magna. Duis at lorem felis. In hac habitasse platea dictumst.
</p>
';
}
}I would check if your host supports backups.
They are landscape for me.
I get a SSL certificate error: host name mismatch. Maybe the certificate is not valid for subdomains. Try installing your test site in a subdirectory of your main domain and see if it works there, or check your certificate.
When you install BL2 in a subdirectory such as test, the setup would look like
/test/
/test/index.php
/test/.htaccess
/test/backlightYou can upload your video thumbnail to the video's album using Publisher, then edit the album to set the cover photo to that thumbnail.
I have a hidden album managed by Publisher with the thumbnail dimension matching my design. The slug is 'custom-thumbnails'. Whenever I need a new thumbnail, I upload it to this directory using Lr Publisher and then can select it in the album/album-set settings.
You can do the same for the videos where you manage them directly in BL2/Publisher.
Did you upgrade the galleries? /backlight landing page > Update Album Files
Thanks, Rod, that link really helped.
I just added the required text in the .htaccess file then changed the URL in the Backlight/settings and voilà!
Pierre, just check that you don't have a link somewhere on your pages that points to http://somewhere.on-your.site. I had a few... and just found another one yesterday that I missed.
Good to know. I keep meaning to get the SSL certificate for my site and make the switch to https. Haven't wanted to temp fate though....
Rod, it is really easy now with Backlight!
... but why would email from a client force a spam filter ?
Thanks for the comments though
P
Because the email is not from the client but sent from your server and making it look like it is from your client email software. This technique is used with all phishing attacks and is a red-flag for SPAM filters. I'm surprised that you haven't had issues with your Wordpress plugin yet.
It is bad to force mail to look like it is coming from somewhere else. This can be one of the causes that a SPAM filter becomes active....
Hi Michael, sorry to hear that your hosting issues have continued.
The installer has likely made changes to your database files. The database upgrade should have made copies of the previous versions within each respective database_backups directory. To copy the main three back, see whether you have the files to make these copies (all paths assume you are in the backlight/data directory):publisher/database_backups/master_3_2_3.sq3 to publisher/master.sq3 designer/database_backups/master_1_2_3.sq3 to designer/master.sq3 admin/database_backups/master_1_2_3.sq3 to admin/master.sq3I am not sure if keeping any -journal files around will cause issues (e.g. admin/master.sq3-journal). Perhaps make a copy of these and delete them
Michael, before rolling back to BL1, please make a backup of your /backlight/data directory!
This would be the corresponding code for Backlight 2:
function ttg_crumb( $page_name ) {
echo '<ul class="breadcrumbs"><li class="fa_pseudo" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/" itemprop="url"><span itemprop="title">Home</span></a></li><li class="fa_pseudo" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><span itemprop="title">'. $page_name .'</span></li></ul>';
}
function main_top(){
// Add breadcrumbs to non-gallery pages
if (strtolower($this->slug) == 'about') {
$this->ttg_crumb('About');
} else if (strtolower($this->slug) == 'contact') {
$this->ttg_crumb('Contact');
} else if (strtolower($this->slug) == 'search') {
$this->ttg_crumb('Search');
} else if (strtolower($this->slug) == 'xxxx') {
$this->ttg_crumb('Xxxx');
}
}This updated version works for me:
function ttg_crumb( $page_name ) {
echo '<ul class="breadcrumbs"><li class="fa_pseudo" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/" itemprop="url"><span itemprop="title">Home</span></a></li><li class="fa_pseudo" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><span itemprop="title">'. $page_name .'</span></li></ul>';
}
function main_top(){
// Add breadcrumbs to non-gallery pages
if (strtolower($this->slug) == 'about') {
$this->ttg_crumb('About');
} else if (strtolower($this->slug) == 'contact') {
$this->ttg_crumb('Contact');
} else if (strtolower($this->slug) == 'search') {
$this->ttg_crumb('Search');
} else if (strtolower($this->slug) == 'xxxx') {
$this->ttg_crumb('Xxxx');
}
}*****
All is good after redoing the install
*****
Perfect!
Did you replace the /index.php file in the root of your website with the one that came with the installer? And did you delete the old directories in /backlight (all but custom and data)?
Yes, when you select 'Hide from Album Set' in either the album settings in Lr Publisher or Backlight > Publisher. At the same time, you might want to select 'Hide from Search' as well.
Ben wrote:Your URL rewriting is not working. Make sure that the .htacess file from backlight/ in your Installer zip has been uploaded to backlight/ on your server.
If you are the admin then also make sure that mod_rewrite is enabled in Apache and that AllowOverride set to 'all' for the directory that your site resides on.I'm actually having the same problem -> but I do not have a .htaccess file in the folder /backlight/ of my installer.zip... I download and installed BL2 several times -> same result... Any hint where this missing file is located?
Any help is appreciated!
Regards
HP
The .htaccess file is most likely hidden by your OS/app. In your FTP tool, there should be an option where you can enable to show hidden files.
Thanks for fixing this Ben.
All working very nicely thanks. One thing I noticed though when I installed the update was that pangolin-page is showing available version of 2.0.1 in bold text bot there is no option to update or reinstall the module. I wondered if this was a bug as pangolin-galleria was emboldened with the option to update and once done lost the emboldening.
Hi Tom,
pangolin-page is part of the Backlight 2 package. In order to guarantee compatibility, only the entire package can be updated but not individual modules. There is an 'update all' link just underneath the Backlight 2 header on the left side. pangolin-galleria is an add-on so it can be updated individually.
Thanks! It is strange that it works for the single quotes but not for the other special characters. Somewhere in the code, the ampersand of some special character tokens such as the double quote is replaced by the ampersand token & and with this breaking the double quote token ". Really strange that this doesn't happen for the single quote.
Quote ', Double Quote &quot;, Ampersand &amp;, Less-than &lt;, Greater-than &gt;Something for Matt and Ben to look at.
layout is now OK, but pictures still not displayed
It looks like you are showing an album-set that doesn't contain any albums. Could you please add an album with some images?
Do you have a link to a page that shows this?
That usually means that you didn't replace index.php in your home directory with the one that came with the installer zip file.
My hidden albums show when I'm logged in. There is nothing you have to click, just login into backlight and then go to the galleries folder where your hidden albums are. Then you should see them.