Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#1 Re: Backlight 2 Support » Link to album in Pangolin single page wrong » 2019-04-17 04:13:01

On my Mac, it works well with Safari, but it shows the described issue with Google Chrome. Firefox doesn't show an issue either.

#2 Re: Backlight 2 Support » Menu items and albums appearing in unwanted locations. » 2019-04-16 02:13:32

As Rod suggested, I would recommend as well to create a separate publishing service for 'services'. When you create the new publishing service, set the 'Top-level galleries directory' to 'services' (or whatever you want to call it).

I did this with my shop page at https://danielleu.com/shop. Currently, I'm hiding all albums. Eventually, each product category will get it's own product page and then I'll be using some type of an thumbnail grid. Greeting cards and wood panels are built using albums. The first one doesn't have an embedded gallery while the later one does. One benefit of this layout is that I can use breadcrumbs and they support navigating the shop.

I think your services page is similar to my shop page and might work well using the same approach.

BTW, the page copy for the top-level gallery can be entered in /backlight/publisher.

#3 Re: Backlight 2 Support » Issues with the Multi Language support of Backlight2 » 2019-04-12 03:17:01

rod barbee wrote:

I'd try Daniels suggestion of using span. You can style the span elements like this:

<span style="font-weight:bold;" data-lang="nl">Your text.</span>

Rod, there is no need to add this additional styling since it now will use the default style for the label which is bold (eg, weight 600 if I remember correctly). smile

#4 Re: Backlight 2 Support » Issues with the Multi Language support of Backlight2 » 2019-04-12 01:55:27

Using the <span></span> tag should do the trick:

<span data-lang="en">Telephone</span><span data-lang="fr">Téléphone</span><span data-lang="de">Telefon</span>

#5 Re: Backlight 2 Support » sudden death » 2019-04-11 08:16:09

Looks like something like this was already reported in the past and this is Ben's response: http://community.theturninggate.net/vie … 032#p59032

#6 Re: Backlight 2 Support » link in photo caption » 2019-04-05 09:57:22

This is the single-image view: https://johnellsworth.com/collections/a … single.php

In the album preferences, you can enable to go there directly from the album grid. This is what I meant with different user experience.

#7 Re: Backlight 2 Support » link in photo caption » 2019-04-05 08:23:07

johncellsworth wrote:

A single-page galley representation would not expedite finding images within a viewer's interest. I like the idea of collections.

You still have the gallery view. When you click on an image, you go to the single-image view if this is what you have selected.

#8 Re: Backlight 2 Support » link in photo caption » 2019-04-05 07:47:41

johncellsworth wrote:

Thanks again, gentleman. I am grateful for your suggestions and assistance. I have to give all of this thought then fiddle around with it.

Yeah, the user experience is a bit different when using the single-page view as the gallery representation.

#9 Re: Backlight 2 Support » link in photo caption » 2019-04-05 07:30:53

Hi John,

johncellsworth wrote:

Dan, would you please point me in a direction to implement phplugins? I'd appreciate it. Thanks to you both.

Here are two little functions that you can add to your phplugins file. First is a helper that translates urls into real links. Then there is the single_bottom() function that shows some image infos on single image pages. This function is what you want to modify so it provides the link and infos to your Fine Art America image page. As shown, you can provide the url to your sales site using metadata, caption, or you could derive it from the image filename.

Yep, the urls trick works only here on single image pages.

// Parses texts and replaces text links with real URLs. Used to display them in single-page view.
function to_url($text) {
    return preg_replace('@(http)?(s)?(://)?(([-\w]+\.)+([^\s]+)+[^,.\s])@', '<a href="http$2://$4">$1$2$3$4</a>', $text);
}

function single_bottom()
{
	if ($this->hasPhoto()) {
		echo '<p>';
		echo '<strong>Image Infos:</strong><br/>';
		echo 'Filename: '.$this->photo->getFilename().'<br/>';
		echo 'Dimensions: '.$this->photo->getPhotoWidth().'w x '.$this->photo->getPhotoHeight().'h<br/>';
		echo 'Title: '.$this->photo->getMetadata(Photo::$PHOTO_TITLE).'<br/>';
		echo 'Caption: '.to_url($this->photo->getMetadata(Photo::$PHOTO_CAPTION)).'<br/>';
		echo 'Metadata 1: '.to_url($this->photo->getMetadata("metadata_one")).'<br/>';
		echo 'Metadata 2: '.to_url($this->photo->getMetadata("metadata_two")).'<br/>';
		echo '</p>';
	}
	return true;
} 

#11 Re: Backlight 2 Support » link in photo caption » 2019-04-05 00:55:27

Or you could use single image display and add your custom button/link using phplugins.

#12 Re: PHPlugins » SinglePage.php not calling plugin copy_top() function » 2019-04-03 04:40:06

I think that the behavior is the same as for copy_xxx(), but just dedicated to the single image pages.

#13 Re: PHPlugins » SinglePage.php not calling plugin copy_top() function » 2019-04-03 04:01:59

There are dedicated single_top and single_bottom functions for the single image pages.

#14 Re: Backlight 2 Support » Placing images in page copy Backlight2 » 2019-04-02 04:04:47

rod barbee wrote:

It looks like the html got caught up in the Markdown/parsedown converter, which changed the angle brackets < and > to &lt; and &gt; for the html to show as symbols. Plus it made the quote marks slanted instead of straight. Anyway, here's the html that should work.

I think this is related to Textedit. Per default, it uses smart quotes, which can be disabled in the preferences menu. I don't know why you get the htmlcharacters for < and >, but this might be related.

I would suggest that you use an editor designed for code. I use TextMate, which is free. Other options are TextWrangler, Sublime Text, etc.

For Markdown, I use the MacDown.app. It has a nice preview which makes it much easier to write code and get it right. Once I like how it looks. I copy and paste it into the respective Backlight or Lr Publisher text field.

#15 Re: Backlight 2 Support » Vegas slideshow slow ? Can we switch off preloading ? » 2019-03-30 03:06:11

markharris wrote:

I tried setting the parameter to true just for fun, but saw no change (I did remember to clear the cache).

Did you clear the template cache as well (http://yoursite.com/backlight/designer/clear_cache/)?

#16 Re: Backlight 2 Support » Contact Form Page has no legends or labels for the forms » 2019-03-29 02:10:46

The color of the labels is identical to the background... hence they are not visible.

#17 Re: Backlight 2 Support » I can't publish photo's from lightroom CC2018 » 2019-03-28 10:14:24

Unfortunately, there is still an issue on your site:

Something went wrong
Unexpected error: Unknown: open_basedir restriction in effect. File(/home/gerarpj183/.php/php-mail.log) is not within the allowed path(s): (/home/gerarpj183/domains/gerardstaals.com/:/home/gerarpj183/domains/include/:/etc/pki/tls/certs:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php55/lib/php/) in Unknown on line 0

I think that's something for Ben to look at. I would send him your FTP access credentials.

#18 Re: Backlight 2 Support » I can't publish photo's from lightroom CC2018 » 2019-03-27 02:10:35

I use PHP 7.3 on my test site without issues.

Since 7.3 doesn't work for you, select another version. And just to confirm that you use the latest version of all Backlight modules.

#19 Re: Backlight 2 Support » I can't publish photo's from lightroom CC2018 » 2019-03-27 00:46:00

Many hosts are discontinuing PHP version 5.x. So a good bet would be to use a 7.x version. You can try the different versions you have available and see if one of them has the exif module enabled. Otherwise contact your hosts.

#20 Re: Backlight 2 Support » I can't publish photo's from lightroom CC2018 » 2019-03-26 07:52:42

Gradje62 wrote:

This is my php list:Installed PHP Modules:....

Exif is not listed. So either enable it yourself or contact your host.

I guess your host changed your php version and the new one doesn't have the exif module enabled.

#23 Re: Backlight 2 Support » Social Media sharing » 2019-03-25 06:41:40

You have https configured, but you don't use a http to https redirect. This can be enabled in /backlight/admin > Privacy: Automatically Redirect Browsers To https

#24 Re: Backlight 2 Support » Issues with the Multi Language support of Backlight2 » 2019-03-23 05:05:45

I can reproduce this. I think you will run into the same problem with the caption and title of images.

Can't think of a solution for this right now.

#25 Re: Backlight 2 Support » Looking to get into Backlight 2. A few questions... » 2019-03-23 01:19:06

rod barbee wrote:

4) No, not as is. There may be a way to do this with phplugins. Or perhaps Pym can insert more than one iframe??

Here is an example where I added a custom slideshow on a gallery page: https://danielleu.com/shop/wood-panels/. This does work on any page, even if there is already a Backlight based slideshow.

More about what I did is over here: https://danielleu.com/blog/2016/07/addi … sed-pages/

Board footer

Powered by FluxBB