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.

#626 Re: Backlight 2 Support » Text above and below Galleria slideshow » 2018-09-26 03:18:35

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>
			';
	}

}

#627 Re: Backlight 2 Support » pangolin Theater video template » 2018-09-22 05:32:04

I would check if your host supports backups.

#629 Re: Backlight 2 Support » No Layout in Backlight2 » 2018-09-22 03:20:13

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.

#630 Re: Backlight 2 Support » Backlight 2 Backend OK, but error message instead of website » 2018-09-21 03:31:25

When you install BL2 in a subdirectory such as test, the setup would look like

/test/
/test/index.php
/test/.htaccess
/test/backlight

#631 Re: Backlight 2 Support » pangolin Theater video template » 2018-09-21 00:00:22

Pfredd wrote:

You 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.

#632 Re: Backlight 2 Support » Style-sheets missing » 2018-09-19 01:03:12

Did you upgrade the galleries? /backlight landing page > Update Album Files

#633 Re: Backlight Support » Converting to https:// » 2018-09-18 23:47:39

pideja wrote:

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.

#634 Re: Backlight Support » Converting to https:// » 2018-09-18 23:45:46

rod barbee wrote:

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!

#635 Re: Backlight 2 Support » email contact and CRG » 2018-09-18 15:59:42

paulo wrote:

... 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.

#636 Re: Backlight 2 Support » email contact and CRG » 2018-09-18 07:48:29

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....

#637 Re: Backlight 2 Support » Backlight 2 installation - Database update failed » 2018-09-18 03:02:20

Ben wrote:

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.sq3

I 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!

#638 Re: Backlight Tips & Tricks » Breadcrumbs on standard pages » 2018-09-18 02:46:02

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');
	}
}

#639 Re: Backlight 2 Support » Breadcrumbs in BL2 non-gallery pages » 2018-09-18 02:38:36

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');
	}
}

#640 Re: Backlight 2 Support » Backlight2 backend working fine, but website broken » 2018-09-16 02:50:10

joanna wrote:

*****
All is good after redoing the install
*****

Perfect!

#641 Re: Backlight 2 Support » Backlight2 backend working fine, but website broken » 2018-09-16 02:16:07

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)?

#642 Re: Backlight 2 Support » prevent homepage album from showing in gallery » 2018-09-15 06:11:36

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.

#643 Re: Backlight 2 Support » Display of pages and albums not correct » 2018-09-15 05:40:36

HP wrote:
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.

#644 Re: Backlight 2 Support » Tokens displaying in BL2 » 2018-09-15 02:52:32

tomowensphoto wrote:

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.

#645 Re: Backlight 2 Support » Double quotes and Ampersands in comments & Vegas slideshow » 2018-09-15 02:37:38

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 &amp; and with this breaking the double quote token &quot;. Really strange that this doesn't happen for the single quote.

Quote &#039;, Double Quote &amp;quot;, Ampersand &amp;amp;, Less-than &amp;lt;, Greater-than &amp;gt;

Something for Matt and Ben to look at.

#646 Re: Backlight 2 Support » Display of pages and albums not correct » 2018-09-15 01:54:58

simkense wrote:

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?

#649 Re: Backlight 2 Support » Backlight 2 Install Troubles » 2018-09-14 08:16:51

That usually means that you didn't replace index.php in your home directory with the one that came with the installer zip file.

#650 Re: Backlight 2 Support » Hidden Albums » 2018-09-14 06:42:05

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.

Board footer

Powered by FluxBB