Support » Plugins and Hacks » [Plugin: Multisite Global Search] Does not work

[Plugin: Multisite Global Search] Does not work

  • I Activated the plugin across the Network, and using the search form in the template, it returns absolutely no results. I tried hacking the search form, even to include a hidden radio button (checked) but still nothing:

    <form class="ms-global-search_form" method="get" action="<?php echo get_bloginfo( 'wpurl' ).'/'.$page.'/'; ?>">
    <label for "s" class="hide">Search Terms</label><input type="text" value="Search"
    name="s" id="s"
    onblur="if (this.value == '')
    {this.value = 'Search';}"
    onfocus="if (this.value == 'Search')
    {this.value = '';}" alt="Search"  longdesc="Search this site" />
    <input type="hidden" id="searchsubmit" value="<?php _e( 'Search', 'ms-global-search' ) ?>" />
    <div style="visibility: hidden;"><input type="radio" id="ms-global-search_181444722" name="mswhere" value="all" checked='checked' /></div>

    We’re not using the widget, we have a custom form already styled in the site, so I don’t know what I’m missing, but if there is a way to hack the form that’s coded in the template that would work.. I just don’t know what else to add, to get the form to work. Any ideas?



Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author aliciagh



    Sorry for the delay.

    The Multisite Global Search form can be put in your site using the widget, inserting the shortcode in a page or post, or putting one of the following lines in the template:


    Later, you can edit the style sheet including in the plugin directory to custom the form.

    Thanks for using my plugin!

    Hi aliciagh,

    thanks for sending instructions. we ended up having to use a different plugin since we launched a month ago, but for future reference I’ll keep this on hand. I don’t understand the code that’s supposed to be added to the template, just that one area where it says your_results_page. Is that supposed to be in quotes? Why isn’t it wrapped in a <php> tag? You just add that code exactly as it appears? Or do you need to do anything else? Reason I ask is that some programmers forget to tell you that stuff and assume everyone else is a programmer 😉 I’m not, unfortunately, so I would just copy/paste that line above and expect it to work. Maybe that’s why people are reporting your plugin as Broken?

    I haven’t tried the code above because I thought I could use the built in search form. I’ll give it a try next time though.

    Also, I wouldn’t recommend updating any styles within the plugin directory, they will be overwritten with the next plugin update, so if anyone else is reading this – it’s best to add the styles to your own stylesheet.


    Plugin Author aliciagh


    Hi @malawimama,

    It’s true, I supposed that you had some knowledge of PHP.

    For example, this is my results page for word ‘e-learning’: http://grial.usal.es/agora/busqueda/?mssearch=e-learning&msp=1&mswhere=all

    In my case, the name of the results page is ‘busqueda’ so the code that I’ll have to put in my PHP template must be:

    <?php Multisite_Global_Search::ms_global_search_vertical_form('busqueda') ?>

    About the style sheet, you are right. You can copy the style from the style sheet in the plugin directory and paste it in your own stylesheet.

    Thanks a lot. I’ll update the FAQ section with this explanation.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Multisite Global Search] Does not work’ is closed to new replies.