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.

#51 Re: Backlight Support » CRG Login, Logout Page Formatting » 2016-07-26 16:29:22

NO Wait!

Posted too soon, whilst I was posting and pasting in the code section I spotted my schoolboy error.

Daniel you're a genius! The code works very well indeed smile

Thank you very much, I've learned a new trick.......

#52 Re: Backlight Support » CRG Login, Logout Page Formatting » 2016-07-26 16:24:07

Hi Daniel,

Been playing with this thank you, I think I know what is happening. The issue I have is that the Login and Logout pages are not gallery pages and the url is prepended with http://njp.kopstone.co.uk/backlight/client-response/ and not http://njp.kopstone.co.uk/galleries/clients/...

so the existing function I have is this:

function ttg_head( $style, $path ) { 

	// Modify styles on galleries/clients page
	if ($_SERVER["REQUEST_URI"] == '/backlight/client-response/'){
		echo '<style  media="screen" type="text/css">.the__copy h1 {text-align: center;}</style>';
	}

} // END

This works fine for targeting the individual pages, however targeting the pages below is testing!

I haven't been able to successfully modify the galleries function to get it to work, I'm obviously missing something simple.

Any suggestions Daniel?

#53 Re: Backlight Support » CRG Login, Logout Page Formatting » 2016-07-25 17:28:37

Hey Daniel,

Thanks for the phplugins code, it works a treat thank you.

Do you think that I will now have to target each client gallery page individually ie. http://njp.kopstone.co.uk/backlight/cli … m_id=91095 or is there a clever way of extending the formatting to all galleries below the top Album Set http://njp.kopstone.co.uk/backlight/client-response/

You see, by targeting the http://njp.kopstone.co.uk/backlight/client-response/, the logout page is formatted correctly (centered) but the login page http://njp.kopstone.co.uk/backlight/cli … m_id=91095 is not....

Not a problem, but just asking before I code for every page I add is all?

Not that I have many clients...... yet smile

#54 Re: Backlight Support » CRG Login, Logout Page Formatting » 2016-07-22 16:55:32

Oooh! that's very useful Daniel Thank you...

I'd forgotten about targeting individual pages, nice one smile

#55 Re: Backlight Support » CRG Login, Logout Page Formatting » 2016-07-22 01:04:08

Correct Rod,

The only way, currently to move the H1 tag is to target the .the__copy class, which effects the whole site. Although I could have a specific css file just for the Login, which would be a hassle for updating, as I would have to make changes to more than one css file.

#56 Re: Backlight Support » CRG Login, Logout Page Formatting » 2016-07-21 22:54:16

Hi Rod,

Yes it is now, but I had to add css to format the Login title to the center and then set a max width for the div containing the form fields. I think that the <h1>Login</h1> element of the page should fall inside the #form <div> as it does on the Backlight Admin login page, then it gets a bit easier to target with css.

#57 Backlight Support » CRG Login, Logout Page Formatting » 2016-07-21 17:51:51

lofty
Replies: 13

Hi Guys,

Having a little trouble getting my CRG Login/Logout pages to look the way I want. The Login/Logout inputs and prompts are aligned way over to the left and I would like them to look like my admin Login/Logout ie. centered...

What is the best way to achieve this? I've tried with css and inspecting the pages of the admin and the CRG pages they look slightly different in makeup. On the CRG Login page the <h1>Login</h1> element falls outside of the <div id="form" class="admin_unit login">, whereas on the Admin Login Page the <h1>Login</h1> is inside the div.

This means that I can target the #form with some padding, but the <h1> does not move with it.

Am I missing something simple again?

http://njp.kopstone.co.uk/galleries/clients/

#58 Re: Backlight Support » Top level gallery in specific CSS element on portfolio page » 2016-07-01 02:43:53

Thanks Adriaan,

I like to try and keep things simple, a bit like me smile

BTW you may want have a look at how the scroll looks on a mobile device like an iPad. The Scroll does not behave like it does on a PC/Mac. The pictures can show up really big and don't display well at all. I have to use some media calls to display the images properly and I have not worked out how to do that yet. So for the moment I hide the Scrolling panels on mobile till I've cracked the code. PS I Like the curly header!

This is all new to me as well, I'm just cribbing code from elsewhere until I understand what I am up to......

#59 Re: Backlight Support » Top level gallery in specific CSS element on portfolio page » 2016-06-30 23:26:27

Hi Ariaan,

I like the sideways scroll, I have also been experimenting with smooth scrolling and I have found a Javascript that allows you to select how fast the scroll is, targeting and 'id' on the same page. Perhaps you could use that to get the effect you need?

http://njp.kopstone.co.uk

I have cut out a few of the scrolling sections for this test, but the code you need for the smooth scroll is below:

$(document).ready(function(){
  // Add smooth scrolling to all links
  $("a").on('click', function(event) {

    // Make sure this.hash has a value before overriding default behavior
    if (this.hash !== "") {
      // Prevent default anchor click behavior
      event.preventDefault();

      // Store hash
      var hash = this.hash;

      // Using jQuery's animate() method to add smooth page scroll
      // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area
      $('html, body').animate({
        scrollTop: $(hash).offset().top
      }, 2000, function(){
   
        // Add hash (#) to URL when done scrolling (default click behavior)
        window.location.hash = hash;
      });
    } // End if
  });
});

#60 Re: Backlight Support » CRG Novice Question » 2016-06-16 16:31:22

Thanks Rod,

Now I see, loving the examples on your test site. Waaaaay too much time on your hands smile

#61 Re: Backlight Support » CRG Novice Question » 2016-06-16 05:45:59

Hi Rod,

Sorry to say I can't see anywhere to log out of the gallery once I have logged in.

http://njp.kopstone.co.uk/galleries/waterscapes/

please use : rod@ttg.com and itsme for the password.

#62 Backlight Support » CRG Novice Question » 2016-06-16 05:04:15

lofty
Replies: 6

Hello Chaps,

So, I think I get all the login, managed/unmanaged gallery setup stuff. It seems that I have to remove cookies and clear browser history to gat prompted for the gallery login again, is this correct? So how do I get the client to logoff when they navigate away from the Gallery?

#63 Re: Backlight Showcase » Parallax Scrolling with CSS - test site » 2016-06-13 20:00:20

Thanks Matt,

I love that I can work on Backlight wherever I have Internet and not be pinned to my desk at home to make changes. Adding Markup content in the Copy area is a revelation and something I should have paid attention to in CE4..... Still have a long way to go and these bits may not make their way onto my finished site, but so much fun trying new stuff out. Can't wait for Stage and Wordpress Addons. Just have to find a way to trigger a remote re-publish now smile

#64 Re: Backlight Showcase » Parallax Scrolling with CSS - test site » 2016-06-13 01:27:53

Thanks Rod,

Yep, having fun working that out on the Water Gallery where I have the CRG enabled. I think it can be sorted by changing where the Navigation gets pinned to, but that may involve having a separate Menu for those Galleries. Currently the Navigation would get hidden by the CRG/Cart Header when scrolling.

#66 Re: Backlight Showcase » Parallax Scrolling with CSS - test site » 2016-06-12 19:09:48

Ah!

Good point Daniel, I haven't linked them yet. I'll sort that out soon.....

#67 Backlight Showcase » Parallax Scrolling with CSS - test site » 2016-06-12 18:08:00

lofty
Replies: 7

Hi Guys,

I've been wanting to get a bit of movement on my Home page for my new Backlight site and found a couple of techniques that were not too difficult to do. The First one pins the Navigation to the top of the page on scroll so that a visitor does not have to scroll back to the top of the page to navigate. This is done with a small JavaScript added via the the ttg_scripts hook in a custom phplugins file and some css styling.

The Parallax Scroll is done by adding Markup for the structure in the Home Page Copy section in Backlight Admin. Styling is then added to my custom CSS. No Javasripting is involved smile

It's still evolving, and is not Mobile friendly yet. I am trying to get the images called from a hidden Publisher Gallery, although getting the image quality and file naming to line up with the css is a little testing....

Constructive criticism/feedback/suggestions gratefully accepted. And if someone can tell me what I'm going to fill all that text area with, that would be a bonus. I'm not good with words!

You can find the test site here: njp.kopstone.co.uk

#68 Re: Backlight Support » Publisher File Renaming Issue » 2016-06-12 01:02:11

Oh!

Righto Rod, just a little something I was working on.......

#69 Backlight Support » Publisher File Renaming Issue » 2016-06-11 23:54:07

lofty
Replies: 2

Hi Guys,

Having a bit of an issue with file renaming when Publishing images to backlight galleries.

To test this, I have made a simple Filename Template which has "Custom Text" - "Sequence#1" this should produce something like image - 1.jpg, image - 2.jpg etc.

This template works fine when exporting to hard disk using Export and I get the expected filenames.

Unfortunately when Publishing with this Filename Template I only get 1 file in the gallery with the name image - 1.jpg. It appears that the sequencing does not happen during the Publish execution. So if I Publish 5 Images they overwrite each other and I end up with the last Published Image only called image - 1.jpg

Any help gratefully accepted.

#70 Re: Backlight Support » not able to assign clients to CRG enabled album » 2016-06-10 04:52:31

Hey Rod,

Fixed it for me now, by republishing the Gallery and re-selecting the Integrations. Thanks once more..

#71 Re: Backlight Support » not able to assign clients to CRG enabled album » 2016-06-10 01:33:03

Hey Rod,

This is happening to me as well, tried to add ?reloadModel&skipCache to the CRG Gallery URL, but still cannot assign a Client to that CRG Album. Same error as Gary.

#72 Re: Backlight Support » Client Response Profiles » 2016-06-09 23:14:42

Thanks Ben, Rod,

Sometimes I look at the screen and don't see!

Someone famous must have said that smile

#74 Re: Backlight Support » Client Response Profiles » 2016-06-09 22:45:19

Yes Rod,

Very cool!

Except I didn't have the Drop Down in my Browser!

I cleared all my Cache and History, Cleared the Template Cache and used the /?reloadModule url.....

Then I tried using Mozilla instead of Chrome.

So after reviewing all this and looking at Rod's animation I realized that the Drop Down does not appear unless you have clicked the Client Response Menu item first. For the other Top Level Menu items 'Backlight' and 'Designer' the Drop Down Menus are present all the time. Thing is, when I'd clicked on the Client Response menu I was looking on the page, not back up at the header.... Need to get my eyes looked at.

Thanks guys obviously operator error again.

#75 Re: Backlight Support » Client Response Profiles » 2016-06-09 18:43:44

Hi Ben,

I was expecting to see in Backlight Admin the following Menu Structure: Client Response | Settings | Feedback Profiles

I have the Client Response Menu and under that I have the following Quick Links: 'Settings', 'Clients', 'Feedback'.

Under the 'Settings' Quick Link I have the Client Response Settings.

I was expecting to see the Feedback Profile Setup Menu to create profiles for stuff like Options etc for each Client Profile as per here in the Backlight Docs: http://backlight.theturninggate.net/doc … -on_basics

But maybe I have misunderstood what I'm looking at?

Board footer

Powered by FluxBB