[Plugin] Bludit Search beta version

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

Mon Aug 06, 2018 6:54 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: 18
Joined: Wed Jun 20, 2018 4:16 pm

Tue Aug 07, 2018 9:55 am

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
Sr. Bludit
Posts: 49
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Contact:

Tue Aug 07, 2018 5:50 pm

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?
hastenichgesehen
Ssr. Bludit
Posts: 18
Joined: Wed Jun 20, 2018 4:16 pm

Tue Aug 07, 2018 5:59 pm

Ich habe es in die navbar.php kopiert.
Aber es kommt ja auf das Theme an.
--
Gruß
Horst
User avatar
LRAM
Sr. Bludit
Posts: 49
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Contact:

Wed Aug 08, 2018 8:06 am

Ok
danke
I will try
User avatar
LRAM
Sr. Bludit
Posts: 49
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Contact:

Wed Aug 08, 2018 8:27 am

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
Kanna
Jr. Bludit
Posts: 9
Joined: Mon Aug 06, 2018 6:45 pm

Wed Aug 08, 2018 8:45 am

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: 18
Joined: Wed Jun 20, 2018 4:16 pm

Wed Aug 08, 2018 11:20 am

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 66 times
--
Gruß
Horst
Kanna
Jr. Bludit
Posts: 9
Joined: Mon Aug 06, 2018 6:45 pm

Wed Aug 08, 2018 12:13 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: 1259
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Wed Aug 08, 2018 12:28 pm

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
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
Post Reply