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.

#376 Re: Backlight Showcase » Never finished but... » 2019-03-19 08:09:39

Beautiful site, Oliver. This is a great example on how to use the language feature of Backlight 2.

But now I want to go back to Rome wink

#377 Re: Backlight 2 Customization » Target Specific Pages in PHP » 2019-03-19 06:51:22

Have a look at how I did this in Backlight: http://community.theturninggate.net/vie … hp?id=8429

For BL2, the call to page_match needs to be updated as follows:

	if ( $this->page_match('/about') ) {
		echo '....';
	} elseif ( $this->page_match('/contact') ) {
		echo '....';
	} elseif ( $this->page_match('/galleries/') ) {
		echo '....';
	} elseif ( $this->page_match('/backlight/search') ) {
		echo '....';
	}
}

And the example function ttg_main_top( $style, $path ) is now main_top() in BL2.

#378 Re: Backlight 2 Support » Footer and social media icons with Wordpress add-on » 2019-03-16 01:23:40

Crizz wrote:

Could you please check again Daniel? Is it working good for you now?

Yeah, no more certificate error big_smile

#379 Re: Backlight 2 Support » Footer and social media icons with Wordpress add-on » 2019-03-15 01:13:32

When I go to your website, I get following warning "NET::ERR_CERT_AUTHORITY_INVALID". It looks like your certificate has expired.

#380 Re: Backlight 2 Support » Pallets 1 and 2 » 2019-03-14 06:21:39

To emulate what your CE4 design looks like, you can put a responsive grid into Main Copy:

<div class="grid_12"> 
<div class="col_9">
  --> main column
</div>
<div class="col_3"> 
  --> sidebar
</div>
</div>

Rod has some tips&tricks regarding using the responsive grid with Backlight: https://ttg-tips-and-tricks.barbeephoto … backlight/

#382 Re: Backlight 2 Customization » Preparations for installing Backlight » 2019-03-09 09:33:46

DennisKeyes wrote:

It has been 7 years since I built my site.  I remember nothing of how I did it, and am totally foreign to this process.  I guess my question is

The process is now very different and much easier. So no worries!

DennisKeyes wrote:

If I created a new folder (backlight-2-test) on my old site, can I just drop the new backlight 2 files right in it and get to work?  And how will I be able to access and test it as I proceed?  Or, is there a better way?

Yes, create a directory and install the files in there:

  old files
  backlight-2-test/backlight
  backlight-2-test/index.php
  backlight-2-test/.htaccess

To start the main install, go to http://yoursite.com/backlight-2-test/backlight/install or the root of the new test site at http://yoursite.com/backlight-2-test once the site is alive.

#383 Re: Backlight 2 Customization » Preparations for installing Backlight » 2019-03-09 02:02:17

Your approach makes sense. I wouldn't call it setup folder. It's more a test folder, but that's just semantics.

DennisKeyes wrote:

I would like to attach a screenshot of my FTP Client page showing my old website pages and the new folder, but that does not seem possible in this forum.

You have to put your image somewhere on your site, maybe in a temp directory, then link to it as follows

[img]http://mysite.com/temp/myimage.jpg[/img].

#384 Re: Backlight Support » Cannot login Backlight » 2019-03-08 08:50:05

Ben wrote:
Daniel Leu wrote:

Oh, I forgot that with Backlight 1 there is no need to login in order to upgrade..... Installing the latest version should fix this issue.

Another trick, in Backlight 2, is to visit backlight/installer/ again.  Doing so will fetch the latest core modules (e.g. admin, framework, designer, publisher, pangolin-* modules) and install them over the versions of the modules that are already there.  That should help recover from any code issues within the Backlight admin that prevent logging into the Backlight admin in order to update modules.  That of course assumes that the installer code doesn't have issues on that server.

Oh, that's a nifty trick! I like it!

#385 Re: Backlight Support » Cannot login Backlight » 2019-03-07 06:36:58

Ben wrote:

This is a PHP code incompatibility. There is no need to change to PHP 5.6 to upgrade Backlight.

Oh, I forgot that with Backlight 1 there is no need to login in order to upgrade..... Installing the latest version should fix this issue.

#386 Re: Backlight Support » Cannot login Backlight » 2019-03-06 22:27:09

Hi Bob, can you downgrade to a PHP version such as 5.6, upgrade to the latest Backlight version, and then again switch to PHP 7.1?

#388 Re: Backlight 2 Support » Strange problem with migration from test to final site » 2019-02-28 02:03:02

Indeed that's strange. I don't recall that I have encountered this problem when I switched API location. But at the same time, that's a long time ago.

Do you use the latest version of Lr Publisher? You can download it from backlight > admin > Backlight Modules. There is a link just above the table.

#389 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-28 01:59:56

scottfrey wrote:

These are what needs to be suppressed:
<li class="menu-item"><a href="/portfolio/artifacts/">Artifacts</a></li>
I tried:

#page__pallet__T1 li.menu-item {
    display: none;
}

but that doesn't do it either. I don't know enough about CSS to know if I can just switch it like that. It does feel like this is the road to go down though.

I used following code on your site to suppress all submenus on mobile:

#page__pallet__T1 ul.sub-menu {
    display: none;
}

Note that I used 'ul' while you used 'il'!

#390 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-27 13:10:31

My implementation only exposes sub-menus of the current page: /galleries, /projects, /blog. So it is a bit fancier than just showing one level.

You can do this with CSS nowadays thanks to the body classes. I used jquery and php when I did this implementation for Bl1.

#391 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-27 09:58:05

rod barbee wrote:
Daniel Leu wrote:

How about just hiding the sub-menu on mobile?

#page__pallet__T1 ul.sub-menu {
    display: none;
}

Ooh. I like that option. As long as you're not using inactive items in the main menu this is a great option.

Depending on the hierarchy of the galleries, you could even expose the first sub-level. Check my site, https://danielleu.com/ vs https://danielleu.com/galleries/.

#392 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-27 07:55:57

rod barbee wrote:

Well crap. Something even more awkward happens with that pallet content added with phplugins. It gets mixed up with the mobile menu. I'm guessing there's some html structure that needs to be used to avoid this.
Off to probe a normal page....

Your code looks strange:

<div id="page__pallet__T1" class="page__column page__pallet" data-position="T1">
	<div class="content clearfix">





<div id="page__pallet__T1" class="page__column page__pallet" data-position="T1">
	<div class="content clearfix">

I don't know why this div is repeated.

#393 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-27 07:51:12

How about just hiding the sub-menu on mobile?

#page__pallet__T1 ul.sub-menu {
    display: none;
}

#394 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-27 07:40:36

Using the navigation() hook, one can replace the menu. But this affects horizontal and mobile menus.

#395 Re: Backlight 2 Support » Using my gallery page as homepage » 2019-02-27 07:09:55

daniel_asplund wrote:

Thanks! That was a simple fix! Should even have figured that one out myself, anyhow.. thanks again!

smile

#396 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-27 06:21:23

scottfrey wrote:

I'm still missing something. How can I tell if phpplugins is actually doing anything at all?

function main_top () {
   echo 'hello scott frey';
}

A link to your page could be helpful too.

Do you have a two column layout selected?

#397 Re: Backlight 2 Support » Strange problem with migration from test to final site » 2019-02-27 05:30:14

Did you try to republish an album with 'update metadata only' selected?

#398 Re: Backlight 2 Support » Adding a button to the images on an album » 2019-02-27 03:13:24

Have a look at the album_top example in the phplugins sample file. You might need to download the installer again to get the latest version.

This shows you how you can replace the entire grid. Now you can write your own code to create the grid and add your custom button wherever you want to have it. I would assume that your code would be based on the current implementation in order to leverage the existing css and full page view.

#399 Re: Backlight 2 Support » Using my gallery page as homepage » 2019-02-26 08:00:20

You can insert an album-set in your page designer and select your galleries page as the album-set to insert.

#400 Re: Backlight 2 Support » moving the folders of the site on the server » 2019-02-22 07:11:34

Hi Cristian,

I would check with the cpanel in your host account how different domains/subdomains are handled. There should be a way to map the different domains you have to the respective root directories without this index.html/index.php hack.

Board footer

Powered by FluxBB