Search banner theme component

I’ve installed it and it’s really great

Is there any way to display it only to tl0 + tl1 users?

1 Like

This theme component shows users in search (mobile view) but why doesn’t the normal search bar shows users in mobile search?

1 Like

Brilliant theme @awesomerobot! Thanks a million.

2 Likes

This breaks the layout of my website and also adds an uneven top padding. Could you please fix that?

  1. navigation-container
  2. header

I am using the Mozilla Discourse Theme

1 Like

Hey @awesomerobot
There seems to be an issue with this theme-component with the who’s online plugin.

That is, the user card is being displayed in an irregular fashion when your theme-component is enabled.

After disabling it, it’s aligned the right way. Can you please check this?

(I don’t think this is a theme-specific issue. I tried with all themes including the default one and the issue persists.)

1 Like

There seems to be an issue with the Who’s Online plugin and the official Search banner theme component .

That is, the user card is being displayed in an irregular fashion when this plugin is enabled with that theme-component.

After disabling the theme-component, it’s aligned the right way.
Can you please check if there’s something that you could do on this?
(Something like a fix to always display the user-card below the clicked location, instead of automatically choosing an alignment?)

I don’t think this is a theme-specific issue. I tried with all themes including the default one and the issue persists.

2 Likes

This means it is a problem with the theme component, not the plugin. I’ve made a change to the component that should fix it (also moved your post to the component topic).

5 Likes

Thanks a lot, works good now :slight_smile:

Yeah I got that. Just thought if the issue could be fixed from the plugin by setting something like always displaying the user-card only beside the user-icon. (And also thought if this theme-component was no longer being updated since the last commit was almost 1 year ago :wink: )

2 Likes

hi, after the recent update, the search banner won’t show up if the Topic list sidebar navigation theme is also active.

2 Likes

oh I see, I wasn’t accommodating the plugin outlet in the layout… if you update the component this should fix it:

5 Likes

Is there a way to remove the pre-populated list of search items?

1 Like

Is that your browser’s autocomplete? do you also get that list in the default search box within Discourse?

3 Likes

Ah! You’re right. My bad! It does happen also with Discourse search.

1 Like

So, since a few hours ago, our Discourse installation is getting this error:

ember_jquery-189e46ebcb33594b835e782fd1ce916ec750bc0cf980ebc4fb7796649161a18d.js:1 Uncaught ReferenceError: currentUser is not defined
    at t.displayForUser (06b3c02bf90c13a835f8d9513b1bd1f33479b2ac.js?__ws=community.kodular.io:10)
    at t.<anonymous> (application-ecf3182bf9e458e6969b74e8c9785e2a10a613f0167f16e7eea352c462b6a2d9.js:1)
    at e.t.get (ember_jquery-189e46ebcb33594b835e782fd1ce916ec750bc0cf980ebc4fb7796649161a18d.js:1)
    at Qe (ember_jquery-189e46ebcb33594b835e782fd1ce916ec750bc0cf980ebc4fb7796649161a18d.js:1)
    at t.<anonymous> (ember_jquery-189e46ebcb33594b835e782fd1ce916ec750bc0cf980ebc4fb7796649161a18d.js:1)
    at e.t.get (ember_jquery-189e46ebcb33594b835e782fd1ce916ec750bc0cf980ebc4fb7796649161a18d.js:1)
    at Qe (ember_jquery-189e46ebcb33594b835e782fd1ce916ec750bc0cf980ebc4fb7796649161a18d.js:1)
    at e.t.compute (ember_jquery-189e46ebcb33594b835e782fd1ce916ec750bc0cf980ebc4fb7796649161a18d.js:1)
    at e.value (ember_jquery-189e46ebcb33594b835e782fd1ce916ec750bc0cf980ebc4fb7796649161a18d.js:1)
    at r.t.value (ember_jquery-189e46ebcb33594b835e782fd1ce916ec750bc0cf980ebc4fb7796649161a18d.js:1)

We did not update anything during that time for it to pop. It was during night, that it started appearing. We have even tried to run ./launcher rebuild app, but it’s still there.

1 Like

Update: we have discovered that the issue is related to the Discourse Search Banner component. We have disabled it, and it is now working again.

3 Likes

Have you tried updating the theme component? There were some recent additions to check for User and this may have been related.

3 Likes

this theme doesn’t work properly with Topic list sidebar navigation.

the same way as in Homepage Feature Component - #70 by Pad_Pors.

3 Likes

How to add a link in the subhead banner:

search_banner.subhead

Before Posting please search ..., New User's read [FAQ](https://instance.discourse.org/t/faq/10235).

Is that posible???..

Regards.,

1 Like

How would discourse search autocomplete work with this?

1 Like