FKB Pro - Social theme

29628 views 465 replies Created 2022-07-28 20:58

Hello 👋

UPDATE :tada:

Bulk Select is now available in this theme.

The bulk select is a little different like on the Default theme because of the layout and topic list boxed design.

It can be activate with the floating button on the bottom. After you click this button the topic list whole topic box will be clickable to select so no matter where you click. The Dismiss… button is sticking to the top of the page on desktop while the bulk select active and you scrolling.

This update fix an issue when you have activated bulk select and navigate to a discovery page where the bulk select is not an option but the topics still selectable.


On mobile while the bulk select active we hide the create topic floating button on the bottom.


This update also adds the last visited topic indicator to the topic list.


It works if you just click on the title.
If we try to click on the description, the block will not be marked as last if we return to the feed

The theme was broken with the last update. Profile pages cannot be accessed. A warning appears on the admin page that the theme is broken. I would be happy if you could take care of me in time. @Don

Yes, theme broken @Don
Console error:

FKB Pro theme/component is throwing errors: ReferenceError: Cannot access 'C' before initialization

ReferenceError: Cannot access 'C' before initialization
    at Module.queryParams (https://example.com/assets/chunk.70cd7dffe01a4d76493d.d41d8cd9.js:1:2303683)
    at 92375 (https://example.com/assets/chunk.70cd7dffe01a4d76493d.d41d8cd9.js:1:3134538)
    at u (https://example.com/assets/chunk.3d4fb59fe94d324c9d9f.d41d8cd9.js:1:53022)
    at 27397 (https://example.com/assets/chunk.70cd7dffe01a4d76493d.d41d8cd9.js:1:3059514)
    at u (https://example.com/assets/chunk.3d4fb59fe94d324c9d9f.d41d8cd9.js:1:53022)
    at 33195 (https://example.com/assets/chunk.70cd7dffe01a4d76493d.d41d8cd9.js:1:2303840)
    at u (https://example.com/assets/chunk.3d4fb59fe94d324c9d9f.d41d8cd9.js:1:53022)
    at s.callback (https://example.com/assets/chunk.70cd7dffe01a4d76493d.d41d8cd9.js:1:410275)
    at s.exports (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:1:2054)
    at requireModule (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:1:582)
    at d.get (https://example.com/assets/chunk.70cd7dffe01a4d76493d.d41d8cd9.js:1:3490796)
    at p._extractDefaultExport (https://example.com/assets/chunk.70cd7dffe01a4d76493d.d41d8cd9.js:1:3496043)
    at p.resolveOther (https://example.com/assets/chunk.70cd7dffe01a4d76493d.d41d8cd9.js:1:3492267)
    at p.resolve (https://example.com/assets/chunk.70cd7dffe01a4d76493d.d41d8cd9.js:1:3492729)
    at https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:6128
    at f.resolve (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:6234)
    at f.resolve (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:6317)
    at o (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:4394)
    at i.factoryFor (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:4164)
    at Ae._resolveClass (https://example.com/assets/chunk.70cd7dffe01a4d76493d.d41d8cd9.js:1:2524358)
    at Ae.modifyClass (https://example.com/assets/chunk.70cd7dffe01a4d76493d.d41d8cd9.js:1:2524510)
    at https://example.com/theme-javascripts/c4aa68fabdfd0f67abcb0fa38b2397f7aec72985.js?__ws=example.com:24:211
    at Me (https://example.com/assets/chunk.70cd7dffe01a4d76493d.d41d8cd9.js:1:2536360)
    at Object.initialize (https://example.com/theme-javascripts/c4aa68fabdfd0f67abcb0fa38b2397f7aec72985.js?__ws=example.com:19:75)
    at n.initialize (https://example.com/assets/chunk.70cd7dffe01a4d76493d.d41d8cd9.js:1:306647)
    at https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:141587
    at e.each (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:368592)
    at e.walk (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:367608)
    at e.each (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:366961)
    at e.topsort (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:367007)
    at e._runInitializer (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:141797)
    at e.runInstanceInitializers (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:141537)
    at u._bootSync (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:112941)
    at e.didBecomeReady (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:111458)
    at invoke (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:358131)
    at h.flush (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:357218)
    at p.flush (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:358981)
    at B._end (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:364064)
    at B._boundAutorunEnd (https://example.com/assets/vendor.f196a698a6a811ae0583c1ea5284644b-53642a3b547b78e34800ab2eeb101f12b39be8c27ec85e9ad359a095161fad6b.js:9:360488)

another one

FBK pro theme/component is throwing errors: ReferenceError: Cannot access uninitialized variable.

Hey @ozkn , @Skeleton 👋 Thanks for the reports! I’ve merged a fix. Please update the theme. 👍

And I can’t find how to enable this option

You’ll need to follow this topic for that:

Ty. But for some reason it looks different to me

Can you try this CSS?

I’m not sure if showing the parent category color looks good here. :thinking:

.badge-category__wrapper {
    margin-top: 0 !important;
    
    .badge-category {
        border-radius: 0 0 var(--d-default-border-radius) var(--d-default-border-radius);
        padding-inline: calc(var(--badge-category-padding-h) * 3);
        line-height: normal;

        &.--has-parent {
            padding-inline-end: calc(var(--badge-category-padding-h) * 2.5);
        }
        
        &.--has-parent:before {
            border-radius: 0 0 0 var(--d-default-border-radius);
            background: linear-gradient(90deg, var(--parent-category-badge-color) 46%, var(--category-badge-color) 50%);
            width: calc(var(--badge-category-padding-h) * 3);
        } 

        svg {
          width: 0.8em !important;
          height: 0.8em !important;
        }
    }
}

I would like to solve this problem ideally. I really want to use this style with this component 😥

I believe you got a response in the other topic about it, no?

Yes, but I was hoping there would be a way to fix it.

How can I separate different elements?
Like this:

image

Because now it doesn’t look very nice

That’s my bad. If I remember correctly it doesn’t contain scrollbar because it’s not sticky by default. I will check this and add a custom scrollbar. Something like what the sidebar has.

I will be grateful if you do this. It would be great if the items were displayed separately and did not scroll

That top block, is that a block in the component and I just wasn’t aware of it or did you make it custom?

Edit: Nevermind, it’s a part of the FKB Pro - Social theme.

Hello 👋

Update for Right Sidebar Blocks theme component. 🚀

  • Added custom scrollbar (borrowed from sidebar)

  • Added a new setting: right sidebar blocks expanded
    (Enabling this setting will expand the right sidebar blocks height and makes the components separate. The last component is sticky.)


Added custom scrollbar to a mixin.

Thanks a lot. ❤️
Tell me, is it worth waiting for compatibility with this component?

Good time of day. I am trying to add a theme component by changing the color scheme - night/day. All two components of the theme that I found just don’t work.

The dark theme is selected in the default admin settings.
In colors, I set 2 themes (dark and white) available for user modification (FKB Pro - Light and FKB Pro Dark).

I will be very grateful for any hint on how to make color scheme switches at the touch of a button for any user.

I wrote here because I assume that the official component should work, but all that happens after installing it is that the left panel changes a little.

I will check what we can do.

I checked the Sidebar theme toggle now and works for me. Did you activate the component for all of your themes where you want to use it? On the themes page you have to check the Theme can be selected by users field.

  1. default dark mode color scheme id - yes


  1. Theme can be selected by users


What am I doing wrong? )

These are two separate theme components.

On the images you shared 🔽

1. Is for the color scheme. This is an other theme component called: Dark/Light Mode Toggle so you have to install it too.

The other images you shared is for the sidebar theme toggle: Sidebar theme toggle
On the 4. images I can see you only activated the theme component for the Default theme. You have to activate it to the FKB Pro theme too.

Click here and select the FKB Pro theme too.


The settings are the same, nothing changes when switching.

Regarding the topic, yes, I understand, I will try. But I still want a change, not a theme, but a change in the color scheme

Same situation, you have to add the FKB Pro theme to the activated themes as I mentioned above.

Oh, I see. The problem is you installed the FKB Pro theme as a theme component. You have to convert it to theme. (If I remember correctly there is a button on the theme page bottom which can convert it to theme. Or you have to reinstall the FKB Pro theme as a theme.

I also decided to try while you are discussing.

I have fbk installed as a theme. I also set up the color schemes according to the instructions and for some reason the color scheme does not change when I press the trigger.

Could the problem be that the dark scheme is set by default?

Could you check these settings are seted up correctly?

And

If you have seted up the dark and light (default) color scheme the same color palette in your user interface settings it won’t change.

Only 2 color schemes available
image
image
image

Dark color scheme set

Auto dark mode is off
image

I think the problem is, on the FKB Pro theme page the Color Palette is the FKB - Dark for your setup and the default dark mode color scheme id is FKB - Dark too. In this way when you clicking the button it will switch to the same color palette. Try to change the Color Palette on FKB Pro theme page to FKB - Light.

default dark mode color scheme id - changed on FKB-light, not work when I switch
image image

Yes, it helped.
But for some reason it only works if you are not authorized.

It depends on your personal preferences too. You can find it here preferences/interface. Change the Color Scheme section.

It works for anon because the site settings makes the
Default color scheme: FKB - Light
Dark color scheme: FKB - Dark

But I think it is overwritten on your personal settings.

I don’t quite understand, is it possible to make the default theme dark with the option to turn on white?

Technically it’s possible with changing on the FKB Pro theme page the Color Palette to FKB - Dark and the default dark mode color scheme id: FKB - Light. But you shouldn’t do it. This not too user friendly when user change the device to dark mode then it will use the FKB - Light scheme. So I don’t think its a good idea. And the sidebar toggle will also works the opposite way.

If you really want to do this then a little better if you disable the automatic color scheme change site setting. This way the dark/light color scheme change won’t works automatically. But users can select the prefer color schemes on their preferences/interface page.

Ah. I have a lot of users who don’t want to register and read the guides. It’s a pity that it is impossible to change the color scheme without authorization from Dark (default) to secondary white through 1 button on the panel

Hello, I am using this theme with the “Topic Ratings Plugin” plugin. I have done all the updates now.

The rating star appears on any topic title page.

But on the homepage, I see [object Object] instead of the rating star of the posts.

How can I fix this?

*Note: The problem occurred after the update.( Discourse and Topic Ratings Plugin )

Hello @restivulmu 👋

Please try it on other themes e.g. Default theme. The theme only has a small CSS snippet about topic ratings which can’t cause this kind of issue. Did you update your Discourse version too?

Thank you. The problem continues when I switch to different themes. Then there is no problem with the theme.

Everything is the latest version, I have no idea about the main source of the problem.

@Don Hello! Is it possible to make this component compatible?

Wonderful theme @Don - thank you so much for creating it.

I am wondering if it’s possible to replace the home page by a topic list rather than the cards?

Hey there. How could I move the bottom section to line up with the red line?

It isn’t lined up with the topic/post section above it and it’s killing my OCD, haha.
Also, @Don, how would I move this top tab over to the right? I have tried messing with the CSS but can’t figure it out. I don’t like how it covers the topics some.

If anyone was annoyed by “low-hanging” letters (like the letter “g”) being cut off, as shown below, the fix is:
Go to the fkb-c-topic-list.scss file and change line 123 (by default at least), which is:
line-height: var(--line-height-small); to line-height: 1.1rem;. Makes it show normal without being cut off.

In addition to my 2 replies above, @Don, is it possible to have a mixture of the topic image backdrop for images that are vertical VS horizontal?

Example: If a vertical image is posted, I would like the whole thing to show like this, so that the image isn’t cut off and has the blur.

Then, if a horizontal image is posted, I would like it to take up the entire space without needing blur, like so:

Would be great to have this and is how FaceBook actually does it.

Hello @Festinger 👋 Thanks! Do you mean using the default topic list template? I am not sure yet but I will try this. If It works then this should works too.


Hello @45thj5ej 👋 Actually that is perfectly lined with topic avatar + topic body width 😃

But you can change it if you want 🔽

Desktop CSS

.topic-area > .loading-container,
.topic-above-footer-buttons-outlet.presence,
#topic-footer-buttons,
.more-topics__container {
    width: var(--wo-avatar-width); // without avatar width
    margin-left: calc(60px + 1em); // avatar width + distance between avatar and body
  }
}

Yeah, this one is not the easiest because this element has fixed position. I don’t think we can move it nicely because the side distance will always different on different size of screens.

Thanks, I’ve increased the line height.

Nope, this is currently not possible with this theme.