Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#1 Re: Backlight Support » .htaccess redirect not working » 2017-04-21 22:49:48

In your Backlight menu set can you not just specifiy the URL for your services php file?

#2 Re: Backlight Support » .htaccess redirect not working » 2017-04-21 22:27:23

Ah, I didn't read your post clearly. It might be simpler just to move the content from the CE4 pages to Backlight ones, that's what I did. Initially it's more work but simplifies maintenance down the road. Unless you are wanting to keep both CE4 and Backlight sites.

#3 Re: Backlight Support » .htaccess redirect not working » 2017-04-21 20:26:43

Here is the .htaccess form my 'galleries' folder and my rewrite rules seem to work correctly:

---------------------------------------------------------------------------------------------

<IfModule mod_rewrite.c>
    RewriteEngine On
   
    # redirects for revised gallery structure

    RewriteRule ^smoky-mountains/(.*)$ /galleries/landscapes/smoky-mountains/$1 [R=301,NC,L]
    RewriteRule ^seashores-swamps-and-wetlands/(.*)$ /galleries/landscapes/seashores-swamps-and-wetlands/$1 [R=301,NC,L]
    RewriteRule ^great-plains-and-mountain-west/(.*)$ /galleries/landscapes/great-plains-and-mountain-west/$1 [R=301,NC,L]
    RewriteRule ^far-west/(.*)$ /galleries/landscapes/far-west/$1 [R=301,NC,L]
    RewriteRule ^fall-colors/(.*)$ /galleries/landscapes/fall-colors/$1 [R=301,NC,L]
    RewriteRule ^desert-southwest/(.*)$ /galleries/landscapes/desert-southwest/$1 [R=301,NC,L]

    # end redirects


    ############################################################################
    # Edit this section for servers using FastCGI

    # For FastCGI (or seeing the error message 'No input file specified.':
    # add # to the start of the next line
    RewriteBase /

    RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$

    # For FastCGI (or seeing the error message 'No input file specified.':
    # add # to the start of the next line and remove # from the line after)
    RewriteRule ^.*$ - [E=BASE:%2]
    #RewriteRule ^(.*)$ - [E=BASE:]

    ############################################################################


    RewriteRule ^(.*)$ - [E=QS:mod_rewrite=on]

    RewriteRule ^([^\/.]*)-single.php$ %{ENV:BASE}single.php?%{ENV:QS}&id=$1 [QSA,L]

    RewriteRule ^([^\/.]*).css$ %{ENV:BASE}index.php?%{ENV:QS}&extension=css&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).js$ %{ENV:BASE}index.php?%{ENV:QS}&extension=js&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).gif$ %{ENV:BASE}index.php?%{ENV:QS}&extension=gif&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).png$ %{ENV:BASE}index.php?%{ENV:QS}&extension=png&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).jpg$ %{ENV:BASE}index.php?%{ENV:QS}&extension=jpg&name=$1 [QSA,L]

    #RewriteCond %{QUERY_STRING} !mod_rewrite=on
    #RewriteRule ^index.php$ %{ENV:BASE}index.php?%{ENV:QS} [QSA,L]

    RewriteCond %{QUERY_STRING} !mod_rewrite=on
    RewriteRule ^mobile.php$ %{ENV:BASE}mobile.php?%{ENV:QS} [QSA,L]

    RewriteCond %{QUERY_STRING} !mod_rewrite=on
    RewriteRule ^(.*)download.php %{ENV:BASE}download.php?%{ENV:QS} [QSA,L]
   
    RewriteRule ^$ %{ENV:BASE}index.php?%{ENV:QS} [QSA,L]
   
    #RewriteCond %{REQUEST_FILENAME} !-f
    #RewriteCond %{REQUEST_FILENAME} !-d
    #RewriteRule ^(.*)$ %{ENV:BASE}index.php?%{ENV:QS}&page=$1 [QSA,L]

</IfModule>

############################################################################
# To fix cross-origin font issues for non-Pages users, remove the preceding '#' on the next five lines:

#<IfModule mod_headers.c>
#    <FilesMatch "\.(eot|font.css|otf|ttc|ttf|woff)$">
#        Header set Access-Control-Allow-Origin "*"
#    </FilesMatch>
#</IfModule>

############################################################################

#4 Re: Backlight Support » Galleries within galleries » 2017-04-19 20:24:23

Same with me, the album set cover image isn't even there when I select random.

#5 Re: Backlight Support » Galleries within galleries » 2017-04-18 20:14:27

You need to create an album set under LR for your top level and then include your sub galleries within the set. That's what I have done on my site and it works fine. You will also need to create an album set template under Backlight to assign to your LR album set.

I also included this code in my .htaccess under the galleries folder
so I wouldn't get a bunch of 404 errors from search engines that had already indexed my site:

    # redirects for revised gallery structure

    RewriteRule ^smoky-mountains/(.*)$ /galleries/landscapes/smoky-mountains/$1 [R=301,NC,L]
    RewriteRule ^seashores-swamps-and-wetlands/(.*)$ /galleries/landscapes/seashores-swamps-and-wetlands/$1 [R=301,NC,L]
    RewriteRule ^great-plains-and-mountain-west/(.*)$ /galleries/landscapes/great-plains-and-mountain-west/$1 [R=301,NC,L]
    RewriteRule ^far-west/(.*)$ /galleries/landscapes/far-west/$1 [R=301,NC,L]
    RewriteRule ^fall-colors/(.*)$ /galleries/landscapes/fall-colors/$1 [R=301,NC,L]
    RewriteRule ^desert-southwest/(.*)$ /galleries/landscapes/desert-southwest/$1 [R=301,NC,L]

    # end redirects

#6 Re: Backlight Support » Thumbnails in Album Set? » 2017-04-16 05:38:22

I just use the drop down menu but not sure if it is documented.

#8 Re: Backlight Support » Thumbnails in Album Set? » 2017-04-16 04:25:59

Right click on the album within the set and select edit album. On the base settings tab there is a cover image dropdown.

#9 Re: Backlight Support » Thumbnails in Album Set? » 2017-04-16 03:42:59

In Lightroom you can select the cover image for an album in an album set. The default is random.

#10 Re: Backlight Support » https:// .htaccess - how should it look like? » 2017-04-15 06:57:28

If you mean in the galleries folder, I didn't. My .htaccess in there is the same as came from TTG except for some rules to do some redirection after I reorganize my directory structure to avoid 404's. I don't have an .htaccess file in the backlight folder itself.

#11 Re: Backlight Support » https:// .htaccess - how should it look like? » 2017-04-13 04:54:36

Cool, glad you got in working. I'm not sure why mine works either. ;-)

#13 Re: Backlight Support » https:// .htaccess - how should it look like? » 2017-04-12 23:55:08

Weird, works fine in Firefox Chrome and Safari for me. Have you tried other browsers to see if the message makes more sense?

#14 Re: Backlight Support » https:// .htaccess - how should it look like? » 2017-04-12 20:16:36

That's exactly what it does for me on my site when I enter those combinations. Mine is at the top of my .htaccess, though.

-----------------------------------------------------------------------------------------------------------------------------------------

# ------------------------------------------------------------------------------
# | Web fonts access                                                           |
# ------------------------------------------------------------------------------

# Allow access from all domains for web fonts

<IfModule mod_headers.c>
    <FilesMatch "\.(eot|font.css|otf|ttc|ttf|woff)$">
        Header set Access-Control-Allow-Origin "*"
    </FilesMatch>
</IfModule>


<IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On
   
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    ############################################################################
    # Edit this section for servers using FastCGI

    # For FastCGI (or seeing the error message 'No input file specified.':
    # add # to the start of the next line
    RewriteBase /

    RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$

    # For FastCGI (or seeing the error message 'No input file specified.':
    # add # to the start of the next line and remove # from the line after)
    RewriteRule ^.*$ - [E=BASE:%2]
    #RewriteRule ^(.*)$ - [E=BASE:]

    ############################################################################



    RewriteRule ^(.*)$ - [E=QS:mod_rewrite=on]

    RewriteRule ^([^\/.]*)-single.php$ %{ENV:BASE}single.php?%{ENV:QS}&id=$1 [QSA,L]

    RewriteRule ^([^\/.]*).css$ %{ENV:BASE}index.php?%{ENV:QS}&extension=css&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).js$ %{ENV:BASE}index.php?%{ENV:QS}&extension=js&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).gif$ %{ENV:BASE}index.php?%{ENV:QS}&extension=gif&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).png$ %{ENV:BASE}index.php?%{ENV:QS}&extension=png&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).jpg$ %{ENV:BASE}index.php?%{ENV:QS}&extension=jpg&name=$1 [QSA,L]

    #RewriteCond %{QUERY_STRING} !mod_rewrite=on
    #RewriteRule ^index.php$ %{ENV:BASE}index.php?%{ENV:QS} [QSA,L]

    RewriteCond %{QUERY_STRING} !mod_rewrite=on
    RewriteRule ^mobile.php$ %{ENV:BASE}mobile.php?%{ENV:QS} [QSA,L]

    RewriteCond %{QUERY_STRING} !mod_rewrite=on
    RewriteRule ^(.*)download.php %{ENV:BASE}download.php?%{ENV:QS} [QSA,L]
   
    RewriteRule ^$ %{ENV:BASE}index.php?%{ENV:QS} [QSA,L]
   
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule ^(.*)$ %{ENV:BASE}index.php?%{ENV:QS}&page=$1 [QSA,L]

</IfModule>


SetEnvIfNoCase User-Agent "spbot" bad_bots

<Limit GET POST HEAD>
    Order Allow,Deny
    Allow from all
    Deny from env=bad_bots
</Limit>

# One month for most static assets
<filesMatch ".(css|jpg|jpeg|png|gif|js|ico)$">
Header set Cache-Control "max-age=2628000, public"
</filesMatch>

# Enable Compression
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE application/javascript
  AddOutputFilterByType DEFLATE application/rss+xml
  AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
  AddOutputFilterByType DEFLATE application/x-font
  AddOutputFilterByType DEFLATE application/x-font-opentype
  AddOutputFilterByType DEFLATE application/x-font-otf
  AddOutputFilterByType DEFLATE application/x-font-truetype
  AddOutputFilterByType DEFLATE application/x-font-ttf
  AddOutputFilterByType DEFLATE application/x-javascript
  AddOutputFilterByType DEFLATE application/xhtml+xml
  AddOutputFilterByType DEFLATE application/xml
  AddOutputFilterByType DEFLATE font/opentype
  AddOutputFilterByType DEFLATE font/otf
  AddOutputFilterByType DEFLATE font/ttf
  AddOutputFilterByType DEFLATE image/svg+xml
  AddOutputFilterByType DEFLATE image/x-icon
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/javascript
  AddOutputFilterByType DEFLATE text/plain
</IfModule>
<IfModule mod_gzip.c>
  mod_gzip_on Yes
  mod_gzip_dechunk Yes
  mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
  mod_gzip_item_include handler ^cgi-script$
  mod_gzip_item_include mime ^text/.*
  mod_gzip_item_include mime ^application/x-javascript.*
  mod_gzip_item_exclude mime ^image/.*
  mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>

# Leverage Browser Caching
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType image/jpg "access 1 year"
  ExpiresByType image/jpeg "access 1 year"
  ExpiresByType image/gif "access 1 year"
  ExpiresByType image/png "access 1 year"
  ExpiresByType text/css "access 1 month"
  ExpiresByType text/html "access 1 month"
  ExpiresByType application/pdf "access 1 month"
  ExpiresByType text/x-javascript "access 1 month"
  ExpiresByType application/x-shockwave-flash "access 1 month"
  ExpiresByType image/x-icon "access 1 year"
  ExpiresDefault "access 1 month"
</IfModule>
<IfModule mod_headers.c>
  <filesmatch "\.(ico|flv|jpg|jpeg|png|gif|css|swf)$">
  Header set Cache-Control "max-age=2678400, public"
  </filesmatch>
  <filesmatch "\.(html|htm)$">
  Header set Cache-Control "max-age=7200, private, must-revalidate"
  </filesmatch>
  <filesmatch "\.(pdf)$">
  Header set Cache-Control "max-age=86400, public"
  </filesmatch>
  <filesmatch "\.(js)$">
  Header set Cache-Control "max-age=2678400, private"
  </filesmatch>
</IfModule>

#15 Re: Backlight Support » https:// .htaccess - how should it look like? » 2017-04-09 05:10:40

This is what my rewrite rule looks like:
-----------------------------------------------------------------------------------------
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
-----------------------------------------------------------------------------------------

I copied it off the net somewhere but it seems to work fine. If someone accesses my site with http it is converted to https.

#16 Re: Backlight Support » Backlight Publisher instance not showing up in LR CC. » 2017-04-06 03:20:24

You have to right click on one of the CE4 instances and select 'create another publisher service ...' to make one for Backlight.

#18 Re: Backlight Support » WordPress Next/Previous post navigation » 2017-02-27 02:33:34

In the latest version you can enable adjacent post links in the Wordpress customizer which will give "Newer:" and "Older:" links on single posts.

#19 Re: Backlight Support » SSL Certificate » 2017-02-17 02:25:56

That's not the only rule in my .htaccess, just the rule added to the Backlight one for https.

#20 Re: Backlight Support » SSL Certificate » 2017-02-16 22:24:10

FYI, this is the rule in my .htaccess and it works OK

    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

#23 Re: Backlight Support » php error while adding Matt's example for social media icons » 2017-02-02 03:42:07

I wish those features had been carried forward, especially for those of us whose php and css skills are clumsy on our best days. ;-)

#24 Re: Backlight Support » Write in Purchase Buttons » 2017-02-02 02:30:47

rod barbee wrote:

the actual cart icons are the same size, it's just that you've got a black UI background color set, while on Marty's site, he's set the UI background color to the same as the page color.

That's sort of what I meant by look larger, I should have been more specific.

#25 Re: Backlight Support » Write in Purchase Buttons » 2017-02-02 02:05:48

I think I'm using the default buttons and they look OK to me: https://stalkinglight.com/galleries/flo … single.php

Mine seem larger in proportion to the picture than yours.

Board footer

Powered by FluxBB