[Plugin] Bludit Search beta version

Kanna
Jr. Bludit
Posts: 9
Joined: Mon Aug 06, 2018 6:45 pm

I created own Search plugin it will show results on HomePage xD

Screenshot
Image

Download
http://www.mediafire.com/file/7l1ev5hbu ... h.zip/file

all you need to use ?s like wordpress use it for search .

For Theme

Code: Select all

<form role="search" action="<?php echo $Site->url(); ?>">
<input type="search" placeholder="Search" name="s" autocomplete="off" value="<?php echo isset($keyword)  ? $keyword : ""; ?>" class="search" data-provide="typeahead">
<button type="submit" class="search-btn"><i class="icon-search"></i></button>
</form>
hastenichgesehen
Ssr. Bludit
Posts: 19
Joined: Wed Jun 20, 2018 4:16 pm

Sehr schön!
Mit ein wenig Feintuning kann man das Suchfeld in jedes Theme einbinden.

http://www.hsw2.de/bludit/
--
Gruß
Horst
User avatar
LRAM
Master Bludit
Posts: 199
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Has thanked: 22 times
Been thanked: 2 times
Contact:

Bonjour

I added the pluggin in question, nothing appears to me. I suppose it is necessary to modify a file of the theme and paste the code. home.php?
https://sucrepop.com
Candies for the ears
hastenichgesehen
Ssr. Bludit
Posts: 19
Joined: Wed Jun 20, 2018 4:16 pm

Ich habe es in die navbar.php kopiert.
Aber es kommt ja auf das Theme an.
--
Gruß
Horst
User avatar
LRAM
Master Bludit
Posts: 199
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Has thanked: 22 times
Been thanked: 2 times
Contact:

Ok
danke
I will try
https://sucrepop.com
Candies for the ears
User avatar
LRAM
Master Bludit
Posts: 199
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Has thanked: 22 times
Been thanked: 2 times
Contact:

Ok, it work fine here
https://sucrepop.com/Ukulele/

I thought the result will be a list of links to the different post to choose from
It's the list of all post concerned by the search
nevertheless it's a fine tool
thanks a lot
https://sucrepop.com
Candies for the ears
Kanna
Jr. Bludit
Posts: 9
Joined: Mon Aug 06, 2018 6:45 pm

this plugin uses

Code: Select all

$dbPages->getPublishedDB(true);
for searching so inside content it won't look.

about not showing results you need only form input with

Code: Select all

name="s"
because ?s= is hardcoded for search maybe i will add setting for it xD

2nd issue is that example you got 40+ results but when u go to 2nd page it will not show because ?s= is removed from url and paginator does not append it.
hastenichgesehen
Ssr. Bludit
Posts: 19
Joined: Wed Jun 20, 2018 4:16 pm

Kanna wrote: Mon Aug 06, 2018 6:54 pm ...
all you need to use ?s like wordpress use it for search .
...
WordPress "?s"-Suche findet auch Beitragsinhalte und nicht nur Textteile in Beitragstiteln.
Attachments
Screenshot_2018-08-08 Suchergebnisse für „renncenter“ – Hastenichgesehen.jpg
Screenshot_2018-08-08 Suchergebnisse für „renncenter“ – Hastenichgesehen.jpg (191.9 KiB) Viewed 5312 times
--
Gruß
Horst
Kanna
Jr. Bludit
Posts: 9
Joined: Mon Aug 06, 2018 6:45 pm

I know but this plugin use

Code: Select all

$dbPages->getPublishedDB(true);
so it won't get content so difficult so search content atm.

I'm thinking of using different approach for it.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Thank you for the plugin!

Search engines are not easy to code... In the meantime you can also use external search engines:

https://planet-bludit.ch/verschiedenes/suche
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply