1 (edited by gabri3lmarques 2016-05-20 18:20:12)

Topic: Seacrh Pluign

Hello Folks,

I am still knowing about Monstra and PHP, so i have ideas but i don't know how to do it.

Does anybody whith more skills and experience know how to build a search plugin for Monstra? It would be very, very useful!!

I guess that some plugin that works similar to the tags function, but instead of click on a tag you type something in a field and get some results, would be good enough.

Thanks for helping!

Re: Seacrh Pluign

hi

simple snippet for searching blog's posts via title

results for ' .$_POST['name']. ' :'; echo '
    '; foreach($pages as $page) { $title = strtolower($page['title']); if (strpos($title , $name) !== false) { echo '
  • '; echo '' .$page['title']. ''; echo '
  • '; $counter++; } } echo '
'; if ($counter === 0) { echo '

no matches found

'; } else { echo '

found ' .$counter. '

'; } } ?>
Here you will find templates for monstra and morfy xxwebplus
Best cms

xxwebplus's Website

Re: Seacrh Pluign

Hello, xxwebplus!

Thank you very much for the answer.

4 2016-06-15 10:59:41

Re: Seacrh Pluign

Thanks for this impressive answer

5 2016-06-15 17:00:49

Re: Seacrh Pluign

Thanks for respecting of copyrights

6 2016-06-30 12:55:57

Re: Seacrh Pluign

Can anyone extend this code to search more than only titles?

barichello's Website

Re: Seacrh Pluign

search blogs's post by content

http://forum.monstra.org/post/4414/#p4414