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 » Footer search in PHPlugins » 2019-01-06 22:33:38

Daniel Leu wrote:

Better would be to use your own CSS class. This way, you can target this search block and not affect any other design elements:

function ttg_footer_top( $style, $path ) {
echo '
<div id="search_footer" class="collapse clearfix">
<form action="/backlight/search" method="GET">
<input type="text" id="q" name="q" placeholder="Fotosuche" class="footsearch_footer" value=""/>
<button type="submit" class="footsearch_footer">Fotos suchen</button>
</form>
</div> <!-- #search -->
';
return true;
}
//END

I just added '_footer' to all the classes and IDs. Now just add your custom CSS code (yeah, copy search specific Backlight CSS code, add _footer and modify it).

For the action, I wouldn't use an absolute path. So when you move this code to your main site, it continuous to work without any issues.

Hi Daniel,

the mail has been a bit longer, but my "search-footer" still works perfectly.
Is there actually a way to exclude this area from individual pages? Especially from https://backlight.der-canonier.de/backlight/search/?

Because that makes the search field superfluous.

Thank you very much for your tip

Many Greetings
Markus

Edit: I had forgotten this: this concerns Backlight 2 for me now, it works the same way as before in Backlight 1.

#52 Re: Backlight 2 Support » Font Size Submenu » 2019-01-02 23:09:56

Thanks, both of you.

At least both solutions didn't help me. Fortunately, it's just a (not so important) little thing that I can live with.

I just wanted to understand why it is like this

#53 Re: Backlight 2 Support » Font Size Submenu » 2019-01-02 15:57:22

Markus wrote:

Another question:
What could be the reason why the font of the photo search above the footer in Safari is grey, while the font in Firefox is red?
In custom.css I have set the color to red.

And what could be the reason here? I've already cleared the cache in Backlight 2 and deleted the history in Safari and Firefox. Still the same different font colors

Greetings
Markus

#54 Re: Backlight 2 Support » Font Size Submenu » 2019-01-02 15:50:12

Exactly Rod, Thanks.

The only question is where and how do I find this element in the Inspector? If I comment out your line, I can't find this element, even though I clicked on the sub-menu with the Inspector (right-click doesn't work in this case)

#55 Backlight 2 Support » Font Size Submenu » 2019-01-02 04:12:12

Markus
Replies: 6

Hello and a happy new year to everybody,

in the meantime I have already made some changes in my custom.css and also found most of it with the Inspector.

But now I want to resize the font from the submenu. But I didn't find the right element.

I tried it with this code:

/* ----- Font-Size Sub-Menü -----
================================= */

nav ul ul li a {
    font-size: 18px;
}

https://backlight.der-canonier.de

When I change the Element area in the Inspector, it works

Element {
    font-size: 12px;
}

Another question:
What could be the reason why the font of the photo search above the footer in Safari is grey, while the font in Firefox is red?
In custom.css I have set the color to red.

Many Greetings
Markus

#56 Re: Backlight 2 Customization » Phplugins » 2018-12-30 03:42:46

Hello, Rod,
perfect - many thanks for finding the error. Now I like that again big_smile

On to the next point...

Best regards

#57 Re: Backlight 2 Customization » Phplugins » 2018-12-29 09:11:56

Hi Ben,

I have now arrived at Backlight 2 and am trying to take over the already working settings from Pangolin (version 1.2.3).

Like Rainer, I also had the "Scroll-to-top-button" installed in the old version, which didn't work after the update.

With your code I get the arrow displayed, but unfortunately only at the bottom left when I have reached the end of the page.
On the Pangolin page the arrow already appeared when the upper edge disappeared. I also adjusted the arrow with my custom.css.

Unfortunately I can't get the change with my custom.css. Although I have already tested some things. With the Inspector I have to practise a bit first to find the right selector again, because it has obviously changed.

Will I be able to do the same as in Pangolin in Backlight 2? Here are my custom.css:

/* ----- Scroll to top button styling ----- */
/* ======================================== */
.btn-scroll-to-top {
    background-color: transparent;
    display: none;
    position: fixed;
    bottom: 7px;
    right: 15px;
    border: 1px solid;
    height: 32px;
    width: 32px;
    border-radius: 50%; 
    text-align: center;
    line-height: 29px;
    vertical-align: middle;
    text-decoration: none;
    color:#6f7c80;
	
}
.btn-scroll-to-top:hover {
    text-decoration: none;
    color:#ff0000;
		border-color: red;
}

a.btn-scroll-to-top {
	z-index: 3;
}

and the links to the Pangolin Page: https://backlight.der-canonier.de/ausruestung/
and Backlight 2 - page: https://pangolin.der-canonier.de/ausruestung/

I would be happy to receive tips.

Many greetings
Markus

#58 Re: Backlight Support » Size of thumbnails in album set is wrong » 2018-05-30 07:42:44

Daniel Leu wrote:

Looks like you have solved it... smile

That's right, Daniel. However, I would not have been able to do this without Rod´s support. Thanks again, Rod. And you, too, of course.

Now a little fine-tuning on the album and then I can replace the old page with the Pangolin test page

#59 Re: Backlight Support » Size of thumbnails in album set is wrong » 2018-05-29 20:23:21

I tested it already: really great big_smile

With the last post I just wanted to show you that I was looking in the wrong place to get the effect. That's why nothing happened hmm

#60 Re: Backlight Support » Size of thumbnails in album set is wrong » 2018-05-29 06:24:32

Hi Rod,

thank you very much for your help. The effect ist absolutly great!

<figure itemscope="" itemtype="http://schema.org/ImageObject">
  <a href="https://pangolin.der-canonier.de/galleries/03-landschaft/">
		<div class="thumbnail">

I have always searched with the Inspector at "<a href" for the hover effect. That's why nothing happened if I changed anything sad

#61 Re: Backlight Support » Size of thumbnails in album set is wrong » 2018-05-29 01:48:08

rod barbee wrote:
.albums figure:hover, .albums figure:hover figcaption { 
    background-color: #f1f1f1;
	}

Cool, this is how areas are combined. Now I have learned something again big_smile

When I move the mouse over the thumbnail, exactly the effect I wanted to achieve occurs.

Now I wonder why the same thing doesn't happen when I move the mouse over the figcaption? Only the figcaption changes but not the thumbnail.

Both areas are addressed. Or isn't that so?

#62 Re: Backlight Support » Size of thumbnails in album set is wrong » 2018-05-28 21:25:26

I don't know if I understand the question correctly roll

I want to have the effect for both when mousing over:
When I move the mouse over the thumbnail, the frame with 5px and color #f1f1f1f1 is displayed and the font of the figcaption changes from red to gray.
But the background color of the figcaption is not changed.

When I move the mouse over the figcaption, the color changes from red to grey, the background color changes from white to #f1f1f1, but no frame is displayed for the thumbnail.

I would like to have both effects at the same time, no matter if I move the mouse over the thumbnails or the figcaption.

I'm looking for the place where I can create this effect. .album's figure doesn't seem to be either.

The question is, can such an effect even work???

#63 Re: Backlight Support » Size of thumbnails in album set is wrong » 2018-05-28 08:11:54

Daniel Leu wrote:

It is not only finding the right place, but have an understanding how Backlight accomplishes certain things and be familiar with CSS.

But it starts with finding big_smile

That's why I need your help to find the right place because of the thumbnails here https://pangolin.der-canonier.de/galleries/

When hovering with the mouse I have already found and adjusted the effects for the thumbnails as well as for the figure caption.

But I would like the hover effect to be applied to both the thumbnails and the figure caption at the same time. No matter if I touch the thumbnails or the figure caption.
Currently only one or the other is happening.

Is that even possible?

With the Inspector I had identified ".album's figure a :hover" or "a:hover, a:focus :hover" as a way to completely address the desired area.

Unfortunately, everything doesn't work.

Here is my current excerpt from the Custom-CSS

/* --------------------------------------------------------
/* | THUMBNAILS im Album Set.                             |
/* --------------------------------------------------------

/* ----- maximale Breite der Thumbnails ----- */
/* ===========================================*/
.albums figure {
    max-width: 280px;
}


/* ----- Schatten um Album Set Bilder (Classic-Style) ----- */
/* =========================================================*/
.albums figure {
    background-color: #ffffff;
    border: 0 solid rgb(188, 188, 188);
    border-width: 1px;
    border-radius: 9px;
    box-shadow: 5px 5px 10px rgba( 0, 0, 0, 0.4 );
    box-sizing: border-box;
    float: center;
    margin: 0 10px 20px;
    overflow: hidden;
    position: relative;
    width: 280px;
    min-height: 230px;
}


/* ----- Hover Thumbnail (Classic-Style) ----- */
/* ===============================================*/

.thumbnail :hover {
	color: #f1f1f1;
	border: 5px solid;
}


/* ----- Hover Figcaption (Classic-Style) ----- */
/* ===============================================*/

.albums figcaption {
	border-top: none;
	}

.albums figure :hover { 
    background-color: #f1f1f1;
	}


figure:hover .album-title{
	color: #848484;
	}

figure:hover .album-description{
	color: #848484;
	}

It'd be great if this worked.

Greetings, Markus

#64 Re: Backlight Support » Footer search in PHPlugins » 2018-05-27 00:38:54

Ah, cool, thanks Rod! I‘ll have a look

#65 Re: Backlight Support » Footer search in PHPlugins » 2018-05-26 19:00:29

rod barbee wrote:

the Backlight css is "assembled" from different sources within backlight. There is no one place. You wouldn't want to change that particular css anyway. If it's taken out you'd end up with a search form at the top of your page under the search icon.

Thanks for the explanation. I'm beginning to understand it and that's important to me too wink

#66 Re: Backlight Support » Footer search in PHPlugins » 2018-05-26 18:56:23

Daniel Leu wrote:

Better would be to use your own CSS class. This way, you can target this search block and not affect any other design elements:

I just added '_footer' to all the classes and IDs. Now just add your custom CSS code (yeah, copy search specific Backlight CSS code, add _footer and modify it).

That was the right solution and I'm beginning to understand the connection. Now I just have to adjust my CSS a little, but on the iPad it's not really possible.

Thanks Daniel.

#67 Re: Backlight Support » Footer search in PHPlugins » 2018-05-25 23:24:49

rod barbee wrote:

Note that your code will put the search form above your current "footer" - which is actually the page__bottom__pallet area.

According to your comments http://pangolin.barbeephoto.com/hook-locations-page/ the ttg_footer_bottom hook or the ttg_footer_top hook would be the right place for my search and corresponds to the one on http://www.der-canonier.de.
I can't find the page__bottom__pallet area in the PHPlugins.

rod barbee wrote:

There's this in the pangolin css:
#search {
    display: none;}
which hides anything with the ID of "search"

Is this a standard css file, which is always included and stored somewhere in the backlight directory?

rod barbee wrote:

You should be able to override this with some inline css
add inline styling to your form:

<div id="search" class=“collapse clearfix” style="display: block;">
.................rest of your code........

I probably still have a bug in the code, because it doesn't work. The search field is not displayed

#68 Re: Backlight Support » Size of thumbnails in album set is wrong » 2018-05-25 06:15:24

Cool, thanks Daniel! This has worked very well

Which browser do you use to find the right places? I'm still having so much trouble with that roll

#69 Backlight Support » Footer search in PHPlugins » 2018-05-24 21:42:54

Markus
Replies: 15

Hi,
in my Okapi Site http://www.der-canonier.de/ I use the PHPlugins Footer search in the ttg_footer_top.

This works perfectly.

In Pangolin there is exactly the same section.
Has anything changed in the code in Pangolin? Or did I miss an attitude?

That's my Code I use in pangolin:

//FOOTER SEARCH FOR PHOTOGRAPHY
function ttg_footer_top( $style, $path ) {
echo '
<div id="search" class="collapse clearfix">
<form action="https://pangolin.der-canonier.de/backlight/search" method="GET">
<input type="text" id="q" name="q" placeholder="Fotosuche" class="footsearch" value=""/>
<button type="submit" class="footsearch">Fotos suchen</button>
</form>
</div> <!-- #search -->
';
return true;
}
//END

What's wrong?
Greetings, Markus

#70 Re: Backlight Support » Size of thumbnails in album set is wrong » 2018-05-24 19:43:00

Daniel Leu wrote:

Viel Spass!

Sehr witzig lol big_smile

Daniel Leu wrote:

Ahh...... NOW I see what you mean and yeah, I get the same smile

In Germany we say: "a picture says more than 1000 words".
Very good that we're talking about the same thing now.

Daniel Leu wrote:

Due to a CSS setting, the image is enlarged:

background-size: cover;

So you have to adjust the image grid to get the desired size.
I'm changing my response: I think it would be easier/better to make the thumbnails a bit bigger so that they properly fit the image grid.

I found the area with the Firefox web inspector. So you think I could resize the cover in CSS? Then I just have to figure out what the code has to look like.
Or is there another option besides "cover"?

The size of the thumbnails is already borderline. I don't really want to make them any bigger.

In okapi it was much easier, if not everything deceives me, I have set it with this.
Okapi-Settings

@Matt and @Ben: would it be possible to reinstall this option during an update?

#71 Re: Backlight Support » Size of thumbnails in album set is wrong » 2018-05-24 07:51:41

Thanks Daniel,

this is what I see:

Thumbnails

1. for div.thumbnail-background a size of 389x583 px.
2. below then the thumbnail from the album custom_thumbnail in the right size

Thumbnails

when I call up the image via the link then the correct size of 280x420 px is also displayed

This is really getting crazy.
Why are the thumbnails displayed in 389x583px?

#72 Re: Backlight Support » Size of thumbnails in album set is wrong » 2018-05-24 06:55:49

rod barbee wrote:

this page: https://pangolin.der-canonier.de/galleries/ is now showing large custom thumbnails (280 x 420). If you're not seeing this, then try clearing browser cache.

hm, very strange. I deleted the cache and looked at it in Safari, Firefox and Chrome. The image is displayed in code or when I display the image with 280x420px, but the thumbnail with 389x583px when I go with the inspector on the thumbnails.

That's not possible.

BTW: if I knew how to upload an image, I could also show a screenshot of how I look like.
But I haven't managed it yet. I always fail because of the storage space for the PNG

#73 Re: Backlight Support » Size of thumbnails in album set is wrong » 2018-05-24 02:21:10

ok, in my Top-Level-Gallery I changed the ratio. There was also a mistake.
But how must the ratio be, so that I get a thumbnail of 280x420px afterwards? (is actually a ratio of 1:1,5).

For ratio X I entered 280 and for ratio Y 420, but then I get a thumbnail of 389x583.

Even with 2:3 or 4:6 I can not get the result!

I have not hidden the folder CustomThumbnails once. Should have been there.

I have also set the thumbnails max-width to 280 px

#74 Re: Backlight Support » Size of thumbnails in album set is wrong » 2018-05-23 20:29:24

rod barbee wrote:

It looks like the aspect ratios are different
On this page: http://www.der-canonier.de/galleries/ the ratio of probably equivalent to 280 wide x 420 high.
While on this page: https://pangolin.der-canonier.de/galleries/ it looks to be 1:1

Have you created a custom_thumbnails album in the test site?

Yes, indeed! In my test site I created a custom_thumbnails Album, and the ratio is 1:1.  I didn't realize what it meant. In okapi I could still set the direct size.

I set it once to 280 and 420. Let's see if this works.

Then I just have to clarify why I can't select the custom thumbnails in Lightroom

#75 Re: Backlight Support » Size of thumbnails in album set is wrong » 2018-05-23 19:56:59

rod barbee wrote:

the thumbnail from this page: https://pangolin.der-canonier.de/galleries/
is 420px high by 280px wide and is source from: https://pangolin.der-canonier.de/galler … l_9540.jpg

Thanks Rod,

the Inspector shows me the size 420x280 px for the thumbnail in the code, but when I click on the picture I get a size of 389x389 px for div.thumbnail-background

I still don't understand why this isn't working. the custom_thumbnails, which I want to use for the AlbumSets and Album, I created as Matt described it here.

In my production page http://www.der-canonier.de/galleries/ the thumbnails from the album "custom-thumbnails" are used in galleries/ as well as in the album sets and also displayed correctly with the size 420x280 px.

And in Lightroom I can also select these custom thumbnails. On the Pangolin test page in Lightroom I can only select the thumbnails from the album "Test". The alternatives from custom_thumbnails are not displayed in Lightroom.

I guess I'll have to solve that problem first. It's just a question of how hmm

Board footer

Powered by FluxBB