Easily search through all blogs into your WordPress Multisite posts by post title, post content or post author. Multisite Global Search doesn’t work with single WordPress installation and it must be activated for all sites using «network activate» in the plugins admin panel.
This plugin is based on my other global search plugin, WPMU Global Search. It has some new features but if you want to keep using the older version of WordPress MU, you can install my other plugin.
Currently in the following languages:
- English (en_GB)
- French (fr_FR) by Fabrice Perrinel
- German (de_DE) by Dennis Vorpahl
- Norwegian Bokmal (nb_NO) by Tore Johnny Bråtveit
- Portuguese (pt_PT) by José Anjos
- Romanian (ro_RO) by Alexander Ovsov Web Geek Science
- Russian (ru_RU) by Sam Savinov
- Serbian (sr_RS) by Andrijana Nikolic http://science.webhostinggeeks.com/multisite-global-search
- Slovak (sk_SK) by Branco WebHostingGeeks.com
- Spanish (es_ES)
If you have created your own language pack, or have an update of an existing one, you can send gettext .po and .mo files to me so that I can bundle it into Multisite Global Search.
Requeriments
- WordPress Multisite Installation.
- MySQL 5.0.1 or greater.
- The MySQL user needs to be assigned the ability to «create views» and «drop views» in WordPress database.
- Permalink structure must be diferent to default when widget is activated in a blog of your network.
Features
- Search on posts and pages.
- Put search form into your code.
Multisite_Global_Search::ms_global_search_vertical_form(your_results_page)
Multisite_Global_Search::ms_global_search_horizontal_form(your_results_page)
- Insert search form in templates using a shortcode:
[multisite_search_form]
- Use type attribute to select vertical form or horizontal form. Default attribute value: vertical.
[multisite_search_form type="vertical"]
[multisite_search_form type="horizontal"]
- Use page attribute to change results page URI. Default attribute value: globalsearch.
[multisite_search_form page="multisite-search"]
Search results will be showed in http://your_blog_URL/multisite-search.
- Search results are showed in a page which contents the shortcode:
[multisite_search_result]
- Show excerpted results:
[multisite_search_result excerpt="yes"]
- Multisite Global Search Widget. Show a search form in your sidebar.
- Customizable relative URI for results page.
- Two different form types, vertical and horizontal.
- Search across all network blogs or only in your blogs if you are logged.
- Entries on every site across your installation appear in search results immediately after publication.
- Receive results from your complete blog network, even sites you do not own or control.
- Customizable style sheet for widget and results page.
Download
Download the plugin from the WordPress Plugin Repository: http://wordpress.org/extend/plugins/multisite-global-search/
If plugin works in your WP version, send your vote and push works in the compatibility form.
great plugin!!!
is there a way to limit the results to just the title? I have a lot of contect so it returns a lot of information.
thanks so much
@RHK Thanks!!
Show title only is not possible but you can show title and excerpt:
[multisite_search_result excerpt=»yes»]
in my code it has …… if(strcmp($excerpt, «yes») == 0)
i got it to work with this code… so it only returns the title. for some reason it doesnt recognize «excerpt» so i added this uder it
echo substr(strip_tags($post->post_content), 0, 200);
else
echo substr(strip_tags($post->post_content), 0, 200); ?>
i think my code is quick and dirty maybe there is a better way…
Great plugin!
Though i had the same error than Frank when i was deleting blogs. This leaded me to disable the plugin all the time..
Gracias por el plugin, la verdad quiero instalarlo pero no puedo.
Sucede que tengo un wp 3.0.4 actualizado desde un wordpress mu 1.3, el problema es que como vengo de un upgrade no puedo activar la opcion MULTISITE, porque si lo hago no me reconoce la base de datos.
Intente borrar las partes de tu codigo que lo solicitaban pero aun asi no me agarra, como opcion desdesperada borre toda posibilidad de que pidiera el multisite pero cuando lo hago solo me agrega uno de los sitios a la vista de la base de datos.
Por favor te pido alguna guia para hacer funcionar esto, no puedo reinstalar wordpress ya que son muuuuuuuuuuuuuuuchos posts en cada uno de los blogs y no los puedo perder.
Gracias de antemano.
Claudio
Hi Aicia,
I have switched to you latest Multisite Global Search. I am getting the following error when trying to activate the plugin
Error creating search views in the database. Deactivate Multisite Global Search and check you have create views privilege in your WordPress database.
The used SELECT statements have a different number of columns
I have double checked an the data base user hall ALL privileges and the version of MySQL is 5.0.91
So I am thinking there must be a wrong number of columns in the database. What columns are referenced in the Select statement and what columns should I look for in the database.
@Frank In first time, thanks for sending your bugs.
Deactivate the plugin before upgrade it. I think this resolve your problem.
@Claudio Castro Prueba a ver si te funciona cambiando la línea 31:
if ( !defined( ‘MULTISITE’ ) || MULTISITE == false ) {
Por esto:
if( !is_multisite() ) {
Ese es el único lugar donde compruebo que sea multisite. Me he dado cuenta que como utilizo la función wp_blogs_prefix no funciona adecuadamente para mi plugin así que arreglaré este bug en la siguiente actualización 😉
New version available!
Fixed some problems with upgrades from WPMU to WP3.0 Multisite.
Using is_multisite() instead of MULTISITE constant.
Resolved problems with excerpts and added Russian language pack by Sam Savinov.
@aliciagh
WP 3.0.4, BP 1.2.7 and MGS 1.2.4
After installing and network activating, error arrived:
Error creating search views in the database. Deactivate Multisite Global Search and check you have create views privilege in your WordPress database.
CREATE VIEW command denied to user ’user’@’localhost’ for table ’wp_v_posts’
How to fix this ?
Regards,