Hi, I really like this plugin.
But when I update discourse to [v1.6.0.beta2 ] yesterday, it does not showed up.
Thanks for your help.
Hi, I really like this plugin.
But when I update discourse to [v1.6.0.beta2 ] yesterday, it does not showed up.
Thanks for your help.
Hey @iminai008, this is because the Discourse header logic has changed significantly in the latest releases. I will be updating this plugin soon. I am updating Quick Messages first, then I will get to this one.
Wonderful news, thank you.
Hey @iminai008 Iāve just committed an update for this plugin so that itās fully compatible with the new header. I basically had to re-write it, so let me know if there are any issues. Cheers, Angus.
Thank you very much, it works.
Hi @angus, Iām getting the search box on our mobile version, is there any way to disable it?
You need to update to the latest commit on the plugin by rebuilding your docker container.
One big concern I have with this plugin is that it will be terribly broken on all iDevices, if you ever focus on a INPUT on a fixed panel on iOS it will scroll the whole page either to the top or the bottom. There are no workarounds short of taking every single element on the page out of standard layout.
Iāve previously precluded the search bar widget from being attached in mobileView
which includes iPhones.
Just testing it now on my iPad it seems to work fine.
Looking around the interwebs, I see there is an issue with .focus()
on iOS, however Iām not using that method.
Could you point me in the right direction to understand / test the issue? Cheers.
It works fine, if you are at the top of the topic, try scrolling down a bit.
Hello!
I have this plugin and am running it on a mac in chrome. The header is rearranged in a weird way when resizing the window and making it small, picture below:
I really like this search bar, but for some reason the original search button is also still visible. Do you know if there is any smart way to hide it?
Hey, thanks for using this plugin and for giving feedback. Iāll be fixing this tomorrow I hope, so stay tunedā¦
Both of these are fixed now.
When you scroll down on a topic the header search is hidden in favor of the āextra infoā and the normal search icon re-appears.
The transition between the two states was indeed not amazing on iPad, as it wasnāt handling the scrollTop
that occurs when you focus on the normal search input while scrolled on a topic. Iāve added some better show / hide handling for that.
When I am using header search plugin. It is showing error in console like this:
Error: Could not find module discourse/views/application
imported from discourse/plugins/discourse-header-search/discourse/initializers/header-search-edits
.
Pls help me to solve this error.
@pankaj Thanks for the issue report.
Looks like the application view has been removed.
Luckily, I donāt actually need it!
This is fixed.
Hi @angus, I updated the Discourse version to the latest, and all of a sudden, the header search box is gone. I checked the plugin, itās configured properly. I even tried rebuilding the docker container once again. What might be the issue for this?
Forum Link: http://forum.hellboundbloggers.com
P.S. I really love the header search box. :ā)
Hey @angus, weāre seeing the header box sporadically appear and then disappear. It will always show while in the admin pages though. Is that something you have seen before? We have a custom header over the forum, but that shouldnāt really impact the functionality of the header search bar should it? The forum is a new setup, so I donāt know if it wouldāve worked with an earlier discourse version.
@pradeepkumar @David_Scharf Hey chaps, sorry for the slow reply to you both.
Iāve updated the show / hide logic of the search input. Itās now:
let headerWidth = this.$('.d-header .contents').width(),
panelWidth = this.$('.d-header .panel').width(),
titleWidth = this.$('.d-header .title a').width() + 560, // 560 is the width of the search input
showHeaderSearch = headerWidth > (panelWidth + titleWidth + 50);
Hopefully that fixes the issue for your site headers.