[PLUGIN] Search for Bludit

Post Reply
User avatar
lhenriksson
Jr. Bludit
Posts: 5
Joined: Wed Aug 02, 2017 8:38 pm
Location: Sweden
Contact:

[PLUGIN] Search for Bludit

Post by lhenriksson » Tue Aug 29, 2017 8:54 am

Hi all,

I woke up sick today and thought, why not use this day alone to create a search plugin for Bludit. I recently pushed the first working version to GitHub and thought I should make a post here. Hope someone will find this useful.

The plugin is positioned at siteBodyEnd at blog page and posts. It uses jQuery to submit the search to a .php file that is located in the plugin folder.

It uses a small "hack" to search the files/database for posts that have the searched words.

I don't know how smart and accepted it is to do the search the way the plugin does. But it works for me.

You can find the plugin live at the bottom of https://lhenriksson.se/blog

The code can be found here https://github.com/lhenriksson/Bludit-search
The web should be a beautiful place created with and care.
https://lhenriksson.se

User avatar
Edi
Site Admin
Posts: 937
Joined: Sun Aug 09, 2015 3:01 pm
Location: Zurich
Contact:

Re: [PLUGIN] Search for Bludit

Post by Edi » Tue Aug 29, 2017 9:08 am

Thank you very, very much! This is what people were asking for.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).

User avatar
amr
Master Bludit
Posts: 58
Joined: Fri Apr 22, 2016 6:36 am
Location: Egypt
Contact:

Re: [PLUGIN] Search for Bludit

Post by amr » Tue Aug 29, 2017 2:53 pm

hello , thanks verry much !!! , how it works because i cant see it in the footer :(

User avatar
lhenriksson
Jr. Bludit
Posts: 5
Joined: Wed Aug 02, 2017 8:38 pm
Location: Sweden
Contact:

Re: [PLUGIN] Search for Bludit

Post by lhenriksson » Tue Aug 29, 2017 3:24 pm

amr wrote:
Tue Aug 29, 2017 2:53 pm
hello , thanks verry much !!! , how it works because i cant see it in the footer :(
It should be placed in the Theme::plugins('siteBodyEnd') of the theme. It works fine for me. Need some information to find the problem. :)

The first version only shows on blog/posts, but have updated the plugin with settings to choose where it shoud show(page/post/blog), just download the latest from GitHub :)

Is your Bludit installation in a subdirectory?
What theme do you use?
Does the .css and .js file exist in the head tag (check the sourcecode)
The web should be a beautiful place created with and care.
https://lhenriksson.se

Frederick
Jr. Bludit
Posts: 3
Joined: Wed Sep 13, 2017 3:46 pm

Re: [PLUGIN] Search for Bludit

Post by Frederick » Wed Sep 13, 2017 3:54 pm

Any idea of how to replace the searchbox of the Core theme with this plugin? :cry:

User avatar
Edi
Site Admin
Posts: 937
Joined: Sun Aug 09, 2015 3:01 pm
Location: Zurich
Contact:

Re: [PLUGIN] Search for Bludit

Post by Edi » Wed Sep 13, 2017 4:05 pm

Frederick wrote:
Wed Sep 13, 2017 3:54 pm
Any idea of how to replace the searchbox of the Core theme with this plugin? :cry:
I do not understand what you mean with core theme? And what a plugin has to do with a theme?
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).

Frederick
Jr. Bludit
Posts: 3
Joined: Wed Sep 13, 2017 3:46 pm

Re: [PLUGIN] Search for Bludit

Post by Frederick » Wed Sep 13, 2017 6:13 pm

Edi wrote:
Wed Sep 13, 2017 4:05 pm
Frederick wrote:
Wed Sep 13, 2017 3:54 pm
Any idea of how to replace the searchbox of the Core theme with this plugin? :cry:
I do not understand what you mean with core theme? And what a plugin has to do with a theme?
Core theme for Bludit: https://github.com/anaggh/core

I want to replace the searchbox with the searchbox of this plugin but I can't.

User avatar
lhenriksson
Jr. Bludit
Posts: 5
Joined: Wed Aug 02, 2017 8:38 pm
Location: Sweden
Contact:

Re: [PLUGIN] Search for Bludit

Post by lhenriksson » Wed Sep 13, 2017 7:07 pm

I will look at the theme and try to find a solution tomorrow!

Can probably to a easy work around for the theme!
The web should be a beautiful place created with and care.
https://lhenriksson.se

Frederick
Jr. Bludit
Posts: 3
Joined: Wed Sep 13, 2017 3:46 pm

Re: [PLUGIN] Search for Bludit

Post by Frederick » Thu Sep 14, 2017 2:54 am

lhenriksson wrote:
Wed Sep 13, 2017 7:07 pm
I will look at the theme and try to find a solution tomorrow!

Can probably to a easy work around for the theme!
Thanks you so much! I really appreciate your work.

User avatar
lhenriksson
Jr. Bludit
Posts: 5
Joined: Wed Aug 02, 2017 8:38 pm
Location: Sweden
Contact:

Re: [PLUGIN] Search for Bludit

Post by lhenriksson » Thu Sep 14, 2017 10:40 am

Updated version.
  • Now possible to manually add the search box html code into theme so it can be placed anywhere you want. (The HTML code is printed in the settings page of the plugin)
  • If your theme dosn't have jQuery, you can select so the plugin adds the jQuery script.
One important thing to make the plugin work is that the plugin folder is named "search". That's because the script checks inside that folder.

So please download the new version.

I'm sorry if there's any bugs or the source code is bad, it has been coded with a text editor on my mobile.
The web should be a beautiful place created with and care.
https://lhenriksson.se

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest