Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#1 Re: Backlight Support » Masthead formatting » 2018-02-22 04:56:53

I like the design on the front page better. And I second Rod's thought of using a secondary masthead for mobile. That's what I'm doing on my site.

Since your entire masthead is text, you could style it with CSS. But I think it would be easier to design two graphics that you use for the main and secondary masthead instead of having to get the CSS right for the different screen resolutions.

#2 Re: General » CE3, CE4 or Backlight » 2018-02-17 09:44:34

Chris Kewish wrote:

Here is a link you can review. http://www.kewphoto.com/bodas2017/17061 … index.html. You will see that some of the thumbnails show photos but not all are visible.

I see that following image doesn't load: http://www.kewphoto.com/bodas2017/17061 … SC0759.jpg

Did you check that the image is on the server?

#3 Re: Backlight Support » Can't login into new server backlight4 setup » 2018-02-13 10:54:59

(1): Your are using PHP version 7.2.1. If you can, please select 7.1 or lower. Otherwise, check Ben's reply in http://community.theturninggate.net/vie … hp?id=8421

(2): If Backlight resides in wlrm, you can't have any Backlight related pages in the root of your site '/'.

#4 Re: Backlight Support » Set Up Backlight for New Look to Existing Bluehost-hosted Website » 2018-02-13 07:55:42

TBC wrote:

The Theater add-in is working out well.  One small glitch on the Albums Set page:

One of the albums has been designated as not showing up, and yet it does.

Did you notice the closed eye symbol?

The closed eye indicates that it is a hidden album and you only see this if you are logged into the backlight backend. Open your site in another browser and you will not see the hidden album.

#5 Re: Backlight Support » Gallery navigation issue » 2018-02-12 05:58:15

rod barbee wrote:

the best way to set these things up is to get one page template the way you want it, then clone it so the layout and navigation is the same. Then just change your background image.

Why not use one page template for all pages and use custom css to assign the background image?

With Backlight, there are now many body classes available that can be used to select a specific page or group of pages:

<body class="pangolin type-page template-id-11 template-identifier-lucfr-acceuil pages-template-id-5 pages-template-identifier-about slug-about cart-unready crg-unready" data-layout="2col left">

So to select the about page, just use following code in your custom css file luc-fr.css:

.slug-about .background__image 
{
	background-image: url('http://pideja.ca/luc/fr/backlight/designer/?c=page&a=image&p1=8&222');
}

This seems to be easier than having to create so many page templates. Can't imagine how difficult it would be to maintain all these different page templates in the future.

#6 Re: Backlight Support » Set Up Backlight for New Look to Existing Bluehost-hosted Website » 2018-02-10 04:04:46

Did you do a new install or copied the files over from your local server? If later, I would restart with a new install.

#7 Re: Backlight Support » Pangolin Cart PayPal Login » 2018-02-09 00:48:17

Don, just to double check: you used the API Username and API Password when you set up PayPal in Backlight and didn't use your PayPal login credentials. Correct?

#8 Re: Backlight Support » Set Up Backlight for New Look to Existing Bluehost-hosted Website » 2018-02-08 02:55:46

TBC wrote:

The concept of different templates is one that I have been using since the 90s, so that is easy, and I ahve started along that path.

I have been watching Matthew's YouTube (don't know how I missed that in my searches before), but when I go to our website and I click on Contact or About, I get

OOPS! THAT PAGE CAN’T BE FOUND.

I am not sure how I achieved that!  How do I get those back so they at least look the way Matthew's do before any design changes I might make?

There are some benefits to do this type of work in a sub-domain so we can see what you are doing.

#9 Re: Backlight Support » Wrong album thumbnail size on mobile phone » 2018-02-08 02:26:26

Pixelmover wrote:

I shortened the file attributes to less than 48 characters for the trial in the test album https://www.rainerhassmann.de/galleries/Test-Prag/ and it worked. However, there was also an image in the album that previously had less than 48 characters (39) in the file attribute and still produced the error in another album. Hhmm ....

should it be less than 39 characters? Where is the limit?

The short term solution is to put following code into your existing photoart.css file.

.main__column { min-width: 0; }

A permanent fix will come with the next release. Since Matt has found the solution for the issue you discovered, there is no need to change the length of the description!

#10 Re: Backlight Support » Wrong album thumbnail size on mobile phone » 2018-02-07 11:12:22

rod barbee wrote:

That's interesting Daniel. What's weird is that these albums are of the same template.
It's going to be interesting to find out what the ultimate cause is.
I wonder if anybody else is seeing this.

Looking around my test site, I've found at least one album that's exhibiting the same issue. Your css fixes it for me.

It seems to have something to do with the length of the image attribute:

<ul class="image_metadata">
	<li>Lorem ipsum dolor sit amet, consectetur lorem i</li>
</ul>

47 characters are okay, 48 start to change the look. Adding many more characters increases the size of the thumbnails.

#11 Re: Backlight Support » Wrong album thumbnail size on mobile phone » 2018-02-07 10:26:04

Hi Matt,

When I disable nowrap, the page seems to look correct. Note, this is only visible with a small browser width:

ul.image_metadata li {
    white-space: nowrap;
}

Hallo Rainer, you might want to try to add

ul.image_metadata li {
    white-space: initial;
}

to your photoart.css file. Please note that this is only a workaround waiting for a better solution wink

#13 Re: Backlight Support » Can't seem to get breadcrumbs working for non-gallery pangolin pages » 2018-02-04 03:39:58

rod barbee wrote:

Make sure that the page_match variables match your url setup.
Daniel’s code calls for the url to be /services.php.
Your site looks like it’s set up so the url in the page_match variable would be /services/ (or services/index.php)

As always, Rod has eyes of an eagle.....

If you go to https://markhoffmanphotography.com/services.php, breadcrumbs show!

So best is, to match for /services in order to catch both cases.

#14 Backlight Tips & Tricks » Breadcrumbs on standard pages » 2018-02-03 16:24:44

Daniel Leu
Replies: 0

Backlight provides the option to use breadcrumbs on all gallery pages to simplify navigation. I like to have a common look and feel of my site and prever to have breadcrumbs on all pages. Thanks to phplugins, this is something that can easily be done.

First I use some helper functions to keep my code clear and legible:

function page_match($gallery) {
   if (substr($_SERVER["REQUEST_URI"], 0, strlen($gallery)) == $gallery) {
      return 1;
   }  else {
      return 0;
   }
}

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

Breadcrumbs are located at the top of the 'main' section. So I use ttg_main_top to insert them:

function ttg_main_top( $style, $path ){
	// Add breadcrumbs to non-gallery pages
	if ( page_match('/about') ) {
		ttg_crumb('About');
	} elseif ( page_match('/contact') ) {
		ttg_crumb('Contact');
	} elseif ( page_match('/backlight/search') ) {
		ttg_crumb('Search');
	} elseif ( page_match('/xxxx') ) {
		ttg_crumb('Xxxx');
	}
}

If you have other pages on your site, just add them in another 'elseif' branch. All this code belongs into your custom phplugins file.

You find a bit more about phplugins in the documentation at http://backlight.theturninggate.net/doc … _phplugins.

#15 Backlight Tips & Tricks » Page specific PHP code » 2018-02-03 16:12:05

Daniel Leu
Replies: 0

With CE4, G_STYLE could be used to insert page specific PHP code using phplugins. With Backlight, this is no longer possible. But there is a simple way around that:

First I need a simple helper function to keep my code clear and legible:

function page_match($gallery) {
   if (substr($_SERVER["REQUEST_URI"], 0, strlen($gallery)) == $gallery) {
      return 1;
   }  else {
      return 0;
   }
}

And then I use this function to match specific pages:

function ttg_main_top( $style, $path ){
	if ( page_match('/about') ) {
		echo '....';
	} elseif ( page_match('/contact') ) {
		echo '....';
	} elseif ( page_match('/galleries/') ) {
		echo '....';
	} elseif ( page_match('/backlight/search') ) {
		echo '....';
	}
}

As you can see, this can be used to select a single page or several pages on a lower level (eg, galleries) and then introduce page specific code. On my site, I use this add breadcrumbs to my standard pages.

All this code belongs into your custom phplugins file.

You find a bit more about phplugins in the documentation at http://backlight.theturninggate.net/doc … _phplugins.

#16 Re: Backlight Support » Wrong album thumbnail size on mobile phone » 2018-02-03 09:38:28

Something strange is going on here....

I'm in Google Chrome and set the window width to 540px, both for the Prag and Venedig albums.

When I check the calculated parameters for '<div 'class="page__column main__column spinal__column">'', Prag is 604.188px wide and Venedig is the expected 540px. So Prag is wider than the viewport....

The width of the thumbnails is derived from the above width and therefore all numbers are off. Looks like this is the cause for this difference. But I have no idea why this is happening. Both galleries use the same template and CSS.

#17 Re: Backlight Support » Gallery error » 2018-02-03 07:21:29

Here would be the description on how to create a new top-level gallery: http://community.theturninggate.net/vie … hp?id=6366

#18 Re: Backlight Support » Changing domain name » 2018-01-30 09:10:57

hjrw wrote:

Is it possible to have it point to a page in the site or just the home page?

Also, how do I put this in htaccess  or html or php?

Thanks
-Herschel

You can do either. Just google it and you will find several options.

#19 Re: Backlight Support » Changing domain name » 2018-01-30 08:50:40

It seems like you are pointing several domains to the same Backlight installation. AFAIK, this doesn't work.

Each domain needs its own installation. But you can put a redirect (either html, php, htaccess) in the root directory of your secondary domains (eg, rt-66.com) and point it to the target location (eg http://caddinfo.com/photo-now-backlight … route-66/). This way one installation works for all.

#20 Re: Backlight Support » Question on Missing Breadcrumbs on About and Contact pages Backlight » 2018-01-27 03:07:51

rod barbee wrote:

cool Daniel, that's handy. You should add that to the Tips and Tricks forum wink

Thanks, I'll do.

Edited: Here we go http://community.theturninggate.net/vie … 201#p51201

#21 Re: Backlight Support » phpplugin hook for a single page » 2018-01-27 02:32:14

I use a simple function to match a specific page:

function page_match($gallery) {
   if (substr($_SERVER["REQUEST_URI"], 0, strlen($gallery)) == $gallery) {
      return 1;
   }  else {
      return 0;
   }
}

And then I used like this

function ttg_main_top( $style, $path ){
	// Add breadcrumbs to non-gallery pages
	if ( page_match('/about.php') ) {
		ttg_crumb('About');
	} elseif ( page_match('/contact.php') ) {
		ttg_crumb('Contact');
	} elseif ( page_match('/backlight/search') ) {
		ttg_crumb('Photo Search');
	}
}

#22 Re: Backlight Support » Question on Missing Breadcrumbs on About and Contact pages Backlight » 2018-01-27 02:26:51

Hi Lynne,

Yep, that's something I wanted too and I have added it using phplugins:

First some helper functions that don't need any modifications:

function page_match($gallery) {
   if (substr($_SERVER["REQUEST_URI"], 0, strlen($gallery)) == $gallery) {
      return 1;
   }  else {
      return 0;
   }
}

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

ttg_main_top that adds the breadcrumbs to the missing pages. If you need the breadcrumbs on other pages, just add them in another elseif branch:

function ttg_main_top( $style, $path ){
	// Add breadcrumbs to non-gallery pages
	if ( page_match('/about.php') ) {
		ttg_crumb('About');
	} elseif ( page_match('/contact.php') ) {
		ttg_crumb('Contact');
	} elseif ( page_match('/xxxx.php') ) {
		ttg_crumb('Xxxx');
	}
}

All these functions belong into your custom phplugins file.

#23 Re: Backlight Support » Background image for content area of Backlight Pangolin » 2018-01-25 07:38:22

But, the whole menu pallet is a bit low.

This is because of this generic css in luc-fr.css:

div {
    height: 200px;
...

You should be more specific with your css code.

There is an error in your css. The h2 tags are not correct.

#25 Re: Backlight Support » Error Message When Attempting to clear Template Cache » 2018-01-19 05:16:09

randyhoffner wrote:

Your link refers to Okapi modules, don't think that is the right place to look.

My link refers to an answer Ben gave to another user that had the same error message. Ben's link goes to Okapi standard modules which start with the name 'standard'.

Board footer

Powered by FluxBB