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.

#801 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?

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

#803 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!

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

#805 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

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

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

Daniel Leu
Replies: 1

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.

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

Daniel Leu
Replies: 1

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.

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

#811 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

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

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

#814 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

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

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

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

#819 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'.

#820 Re: Backlight Support » Error Message When Attempting to clear Template Cache » 2018-01-19 03:38:39

randyhoffner wrote:

Nope.  Just checked, and it is still there.

How about the standard modules? (http://community.theturninggate.net/vie … 494#p50494)

#821 Re: Backlight Support » Getting started with Galleria - got an error... » 2018-01-17 08:06:14

wrietvel wrote:

same problem here and #25 does not solve the problem either (apart from the fact that  'dynamics' should be 'dynamic').

I guess you mean #24. Just double checking that you cleared the template cache. Sorry, don't thind a reference to 'dynamics'.

Do you have a link to your gallery that shows the error?

#822 Re: Backlight Support » Getting started with Galleria - got an error... » 2018-01-17 07:20:26

Tiggrrr42 wrote:

Ahhh, yes! I now have a working test.

Good catch - my installation of PHP7 doesn't have short tags enabled, which would account for the borkage.

Now all I need is the time to configure it!

Many thanks, Daniel

smile

#823 Re: Backlight Support » Getting started with Galleria - got an error... » 2018-01-17 07:06:16

I think I found the culprit: Open the file /backlight/modules/pangolin-galleria/dynamic/js/galleria-pangolin.php in an editor and change line 14 from

<?

to

<?php

Then clear the template cache (http://yourdomain.com/backlight/designer/?a=clear_cache).

It seems like different opening and closing tags for php can be used, but only if the platform is configured for it. It looks like this was the case for all beta testers sad

#824 Re: Backlight Support » Getting started with Galleria - got an error... » 2018-01-17 04:02:00

speacock110 wrote:

The error is now on line 35

Could you post the entire error message please?

#825 Re: Backlight Support » Getting started with Galleria - got an error... » 2018-01-17 03:12:56

speacock110 wrote:

Also tried the fix and it did not work. The publisher plugin is the latest. Also re copied just to check prior to republishing. Sorry cannot provide a link as my workflow involves a local website prior to uploading in case of issues like this

Did you clear the template cache after modifying the file http://yourdomain.com/backlight/designer/?a=clear_cache

Board footer

Powered by FluxBB