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.

#1 Re: Backlight Support » Multiple Lightroom Catalogues publishing albums to one album set » 2018-11-23 23:43:30

Thanks for your speedy reply Rod.

I shall therefore have a look at Voyager, a product I am aware of.

Kind regards,

Pete.

P.S. On an unrelated matter in another post relating to web fonts, I shall send you an email with the relevant details you asked me for.

P.

#2 Re: Backlight 2 Support » Client logout of CRG (need BL2 code) » 2018-11-23 22:37:34

OK... I've stayed with the a line of code in the body of the album template:
<a href="/backlight/client-response/?c=client&a=logout"><input type="button" value="Logout"></a>
This worked correctly, without any of the above code in my customised php file.

As I begin to understand the way code is written and learn the names of all the php plugin hooks on the page, I'll look at placing more information where clients can see it: up in the top pallet.

For now - it is sufficient to operate.

On to more important matters!

Thanks Ben, Rod and Matt.

Pete

#3 Re: Backlight 2 Support » Two Factor (Google Authenticator) not working - I'm locked out of BL2 » 2018-11-23 22:30:49

Okay... That is all sorted out now.
All my BL2 modules showed up as up-to-date.
I performed the Index Files Update.
Perfect!
My thanks,
Pete

#4 Backlight Support » Multiple Lightroom Catalogues publishing albums to one album set » 2018-11-23 22:11:28

Pete_N
Replies: 2

Good [after] morning Backlighters...

I have a question regarding the creation of new galleries under one existing top-level gallery from a number of different Lightroom catalogues.

Like many others, I have multiple Lightroom catalogues. Mine are set up in years as well as a few special catalogues.
I started setting up my BL2 installation with one Lightroom catalogue: 'Portfolio'. I created the gallery 'Portfolio' as an album set under the top level gallery 'Galleries'. I created a number of albums, populated them with a few images and published.

I opened another Lightroom Catalogue: '2018' and I noted that I had to 'set-up' the TTG plugin again before creating the new top level gallery and then creating the new album to place into it. I clicked 'set-up' and was taken to the setup pane for the TTG plugin which I also had to name 'Backlight'. So, I created a new album set: 'Client Area'. I added a new album under that for a client and added their images.   I published that too... All good.

So, in summary:
1. I opened LR Catalogue 'Portfolio', created 'Portfolio' album set and a number of albums under that.
2. I opened LR Catalogue '2018', created 'Client Area' album set and a one album under that.

Now, after setting all that up and seeing that it worked correctly, I want to add another client album from another LR Catalogue into the existing 'Client Area' gallery.

So... I opened another Lightroom Catalogue: '2018' and I noted that I had to 'set-up' the TTG plugin again before creating the new top level gallery and then creating the new album to place into it. I clicked 'set-up' and was taken to the setup pane for the TTG plugin which I also named 'Backlight'. I then created a new album set called 'Client-Area' (the same as created from the LR 2018 Catalogue). When I did this, a message appeared stating that that gallery already existed and that a new name would be used for the directory. I created the client album under the new Client Area album set, added a new client album and published it.

The result: A new (second) 'Client Area' album set with the new client album in it.

It appears that information about existing galleries is not passed to each LR catalogue TTG plugin in the same way as the Publisher API Details and the HTTP Authentication.

If this can not be done or loaded into each LR Catalogue, is there some way of moving the published albums into existing album sets?

I hope I haven't confused anyone with my description of the problem.

Thanks.

Pete

#5 Re: Backlight 2 Support » Client logout of CRG (need BL2 code) » 2018-11-21 14:40:18

Ah... Good afternoon Matthew, We meet again. (I was the chap who started out with CE3 back in October 2013)
Thanks kindly for your assistance. I'm going to implement it now and see what it does.

I'm really not very good at all this. I'm slowly learning about HTML and CSS, although I'm certain that writing an HTML page with an accompanying CSS is quite different from working with a website engine like CE3 or BL2.

I shall persevere.

Thanks kindly.

Pete.

#6 Re: Backlight 2 Support » Client logout of CRG (need BL2 code) » 2018-11-21 12:29:34

Good (after) morning Rod,

Ah... I need to do that here too? Ok, I'll change the syntax as soon as I get home.

Thanks kindly,
Pete

#7 Re: Backlight 2 Support » Client logout of CRG (need BL2 code) » 2018-11-20 23:19:05

G'day Ben,

I made an error... I already had a line of code in the body of the album template:
<a href="/backlight/client-response/?c=client&a=logout"><input type="button" value="Logout"></a>
This worked correctly, without any of the above code in my customised php file.

I removed that line of code from the album template and tested the code in my custom PHP file as presented two posts above this. There was no effect with any of the three lines (each line was commented out and the other activated for the three tests:

/*the first test performed with only this line active: */
$logoutURL = shortSiteURL().'backlight/client-response/?c=client&a=logout'*/
/* the second test performed with only this line active:*/
$logoutURL = shortSiteURL().'backlight/clients/?c=client&a=logout'
/*the second test performed with only this line active:*/
$logoutURL = shortSiteURL().'http://mysite.com/backlight/clients/logout/'

Thanks Ben,

Pete

#8 Re: Backlight 2 Support » Client logout of CRG (need BL2 code) » 2018-11-20 21:52:48

OK... I tested that code as I presented it.

On clicking the 'logout' button that appeared in the copy area, It took me to a login screen with blank email and password text fields in one instance... a second attempt at the same operation resulted in me being taken to a page (mysite/backlight/clients/albums) which told me what albums were assigned to me - It lists the album and its status as 'open for viewing'. Clicking on the album's tile returned me to the album again; clicking on the 'log ou' button resulted in a successful logout.

I prefer the second - if it is possible for one client to have access to more than one album.

Thanks,

Pete.

#9 Re: Backlight 2 Support » Client logout of CRG (need BL2 code) » 2018-11-20 21:30:48

G'day Ben,
So... It should look like this?:

function ttg_scripts($style, $path) {

    $logoutURL = '';

    if (PASSWORD_ENABLED && LOGGED_IN) {
        $logoutURL = '?logout';
    } elseif (defined('CLIENT_RESPONSE_MANAGED') && CLIENT_RESPONSE_MANAGED) {
        /*$logoutURL = shortSiteURL().'backlight/client-response/?c=client&a=logout'*/
        $logoutURL = shortSiteURL().'backlight/clients/?c=client&a=logout';
    }

    if ($logoutURL) { ?>
        <script>
            // 1. add a Logout button to the menu
            var logoutButton = '<li class="menu-item"><a href="<?php echo $logoutURL; ?>">Logout</a></li>';
            $('.menu').append(logoutButton);

            // 2. add a Logout button to the copy area
            var logoutButton = '<a href="<?php echo $logoutURL; ?>">Logout</a>';
            $('.the__copy > .content').prepend(logoutButton);
        </script>
    <?php }

    return false;
}

//No more after this line


Yes? (original code commented out for comparison.

Pete.

#10 Re: Backlight 2 Support » Require help installing web fonts from MyFonts.com » 2018-11-20 19:49:13

Thanks again for your assistance Rod,

However... To no avail. I may be placing some code in the wrong place, referring to the webfoot CSS using the incorrect syntax, or there may be some difficulty implementing the font vendor's 'number of page views' code that counts the number of times the pages that use my fonts are accessed. There is a licence limitation that allows 10K views per month and there's some code that increments a counter in my account with the webfoot provider.

How would you like me to provide access to BL2 on my website. I shall provide a 'guest updater' login and password and would prefer to do this by direct email contact.

Regards,

Pete.

#11 Backlight 2 Support » Client logout of CRG (need BL2 code) » 2018-11-20 19:39:23

Pete_N
Replies: 10

Good [after] morning Backligh2ers,

I'm beginning to set up the CRG feature in BL2 and have discovered that there should be an ability for a client to log out of his/her CRG session.

I found this post where Rod put forward an idea to do this in BL:
http://community.theturninggate.net/vie … hp?id=8228

I am unable to make the menu item appear in my Pangolin based BL2 CRG page.

May I please have the code, relevant to BL2 (or any similar versions that may have been written since)

Thanks kindly,

Pete.

#12 Re: Backlight 2 Support » Require help installing web fonts from MyFonts.com » 2018-11-19 14:11:23

Thanks very much for your reply Rod.

Okay... Here we go! I'm going to have a play with a test home page. (this should be fun!)

Pete

#13 Re: Backlight 2 Support » Require help installing web fonts from MyFonts.com » 2018-11-18 19:41:25

Good [after] morning Rod,

I'm not sure where these statements need to be included?... In the custom PHPlugin I copied?... or the custom CSS file I copied? Where should the webfoot kit CSS file and directory containing all he fonts have to be?... in the /public_html/ directory?... or in the /public_html/backlight/custom/css/ subdirectory?

Can you tell I have no idea of what I'm doing? LOL.

Ah...and if it all works, how do I know it worked? Will I see it in the Template under Typography - base font properties - font family dropdown?

Thanks,

Pete

#14 Re: Backlight 2 Support » How to add code for a custom form » 2018-11-17 10:30:28

Rod,

Oooh!... That worked!... I just entered the code right into the 'Copy' area with some additional text to make up two columns and bingo!

Nice work!

Thanks for your assistance.
Thanks also to TTG for making it possible too!

#15 Re: Backlight 2 Support » How to add code for a custom form » 2018-11-17 08:36:51

Good [after] morning Rod,

Thanks kindly... That worked much more easily than I thought it would! A great quick-fix.

All I have to do now is work out how to put it in a second column... a 'pallet'?

Tried that with a new template - now I have menus on the left side, form hidden on the top right where the menu should be...UGH!

Still learning how all these different pallets, columns, headers and such work. My website looks like its on steroids!

Cheers!

Pete

#16 Backlight 2 Support » How to add code for a custom form » 2018-11-17 07:51:50

Pete_N
Replies: 4

Good [after] morning Backligh2ers,

I am in the process of learning about the BL2 Cart feature (with limited success, lol) but in the meantime, I need to allow one group of clients the ability to purchase product from me.

Before I purchased BL2, I was using a custom form provided by PayPal's form code generator.

I have created a dedicated page on my site in BL2 pages to allow the inclusion of this form.

How do I do this?

Thanks in advance,

Pete

#17 Backlight 2 Support » Require help installing web fonts from MyFonts.com » 2018-11-15 22:13:18

Pete_N
Replies: 6

Good [after] morning Backligh2ers...

Grab a nice hot cup of coffee if you wish to read further.

Please note that I have very little coding experience in HTML, so I am being quite long-winded in my post. Appropriate apologies to all!

I have purchased some web fonts from MyFonts.com which I wish to make use of in my BL2 created/managed website.

In the package I received from them, There are a whole bunch of fonts in different flavours (i suspect this is for compatibility between different browsers / platforms) and some instructions as to how to install them as well as a number of lines of code to be added to various files.

I shall quote loosely from the instruction sheet provided in the package I received:

<begin quote>
The MyFonts Webfonts Kit is a collection of code and font files which allow all modern browsers to use webfonts in a standardized way. All you need to do is copy and paste some sample code, and make some edits to your CSS. Three simple steps then you're on your way.

1. Upload fonts to website:
Upload the contents of the Kit to your server. This is typically done using some type of FTP program — the same way that you upload images and other files to your website. Typically it is easiest if you upload all the files and folders to the root folder of your site. You can alternately create a subfolder (or use an existing one) and put the Kit there, put them wherever you want. Be sure to make note of the location you'll need it in step two.

2. Edit your site:
Include a reference to the Kit. Locate the CSS file in the Kit’s main folder. You should place a reference to this file in the head section of your website’s HTML code. Make sure that the reference appears on all HTML pages of your site.
This will link the webfonts from the Kit to your website. If you uploaded the Kit to the root folder of your site, then you can just copy and paste the code below into your site's head. If you uploaded the Kit to a subfolder, you’ll need to adjust the path to the font files in the CSS file.

ed.: many lines of font licensing information all commented out followed by this line of code:
<link rel="stylesheet" type="text/css" href="MyFontsWebfontsKit.css">

3. Edit your CSS:
Now for the fun part! You'll need to assign the webfonts (font-family) to tags, classes and other CSS selectors. You need to decide where on your site you would like to use the webfonts. Using CSS, you can assign webfonts to specific areas of your site. There are several ways to do it, here are the basics and we’ll explore more advanced options in the 'Sample code' section below.

A simple method is to make a new class selector and then assign the family names of the webfonts. Whereever you want to use SommetSlabRegular just assign the class in your HTML. Here’s how it is done:

.SommetSlabRegular {
    font-family: SommetSlabRegular;
    font-weight: normal;
    font-style: normal;
}
ed.: This pattern of code was repeated for the 11 other fonts in the kit. Omitted here for brevity (LOL!)

<end quote>

There is also some additional information... I realise that some of the following would be selectable from within the BL2 Page Templates, but I have included the examples here to show how they are used in a 'standardised HTML written' site... quoting yet again:

<begin quote>

Sample CSS
Lets look at some fancy ways you can use CSS & CSS selectors to apply webfonts to your site!

If you'd like to assign a font to the entire site, simply use the body tag selector in your stylesheet.

body { font-family: SommetSlabRegular; }
If you’d like all headings to be formatted using this webfont, you need to assign it to the h1…h5 elements. Remember to assign the weight and style of the font, especially if you don't have the entire family. Use the following CSS declaration in the stylesheet for your website:

h1, h2, h3, h4, h5 {
    font-family: SommetSlabRegular;
    font-weight: normal;
    font-style: normal;
}

You can also assign the webfont to a specific HTML class, which will allow you to easily mix different webfonts on the same page. Use the following CSS declaration in the stylesheet for your website:

.SommetSlabRegular {
    font-family: SommetSlabRegular;
    font-weight: normal;
    font-style: normal;
}

Then, use the class as follows in the body section of your HTML:

<p class="SommetSlabRegular">Hello World!</p>

You can use any valid CSS selector (such as an HTML tag name, a class or an ID, or a combination of those) if you want to format a specific portion of the document. There are tons of different things you can do with CSS, so have some fun!

<end quote>



My question is this:
As BL2 is a website generator, and not a 'standardised HTML web site', Where do I add the code 'referencing the MyFontsWebfontsKit.css 'into the head section of my website's HTML code' as mentioned in Step 2 above, and into which .CSS file do I add the code referenced in Step 3 above - and where in those files (top, bottom, middle somewhere) do I place the relevant code.

FYI:
I use Coda2 to access my site directly.
I have placed the 'MyFontsWebfontsKit.css' file as well as the directory containing all the fonts: 'webfonts' in the root ('public_html').
I have already created and referenced in my templates the following:
1. a custom CSS file based on \backlight\custom\css\custom-sample.css (I have successfully added Rod Barbee's code for the different coloured contact email success message... and removed the hideous red background test- LOL). and,
2. a custom PHP file based on \backlight\custom\phplugins\phplugins-pangolin-sample.php (This file is used unmodified)

<deep breath>

My sincere thanks in advance to anyone who is able to assist me in this matter.

Kind regards,

Pete N

#18 Re: Backlight 2 Support » Two Factor (Google Authenticator) not working - I'm locked out of BL2 » 2018-11-15 16:10:34

Thanks kindly Ben,

I'll perform those steps and advise accordingly.

If I should require further help, I will email you with the information you require. Is the 'Email' link at the bottom of your post suitable for transmission of private details?

Your assistance is greatly appreciated.


Pete.

#19 Re: Backlight 2 Support » Two Factor (Google Authenticator) not working - I'm locked out of BL2 » 2018-11-15 13:41:35

Good afternoon Ben,

Thanks kindly for your reply.

In answer to your question: I entered the code as it appeared on my iPhone and clicked the 'Submit' button. The next thing that happened: The code I entered went blank. "..and that was it": Nothing else. The page remained at the Two Factor entry screen with the empty code entry text entry box.

I have reinstated a backup of a few days ago which has taken all my settings back to prior my implementation of 2FA.

My next question: How do correctly implement 2FA?... What are the pre-requisites? I already have 2FA active through my Google account. When I attempted to 'add an account' using the iPhone app, I was required to enter an account name (which I set to 'Backlight' - as suggested on the BL2 setup of 2FA). I was also asked to enter a 'key'. There is no place that this 'key' exists. I attempted to enter one of my choosing, but that resulted in an invalid key error.

I have obviously done something incorrectly.

Your assistance is appreciated.

Pete.

#20 Backlight 2 Support » Two Factor (Google Authenticator) not working - I'm locked out of BL2 » 2018-11-15 11:29:05

Pete_N
Replies: 7

Good [after] morning Backlighters!

I've just set up Google's Two Factor Authenticator feature in BL2 admin settings.

I logged out and logged back in; I saw the Two Step verification screen come up and requested the Google Authenticator code as seen on my Google Authenticator app on my iPhone.

I entered the code and clicked 'Submit'. The code I had typed in disappeared and that was it. No access was granted to BL2.

I'm stuck!

If it of any substance, my Google account is different to that used to set up my BL2.

Any help, including how to disable this by direct access to my site files, would be greatly appreciated.

Kind regards,

Pete_N

Board footer

Powered by FluxBB