WP Search Result in IndexU

 Wednesday, March 19th, 2008
Mods Compatibility
IndexU 5.4.X
IndexU Deluxe

It seems many of our visitor searching for blogs/article using the big search bar above, but unfortunately they will found no result from blogs because it is only searching for IndexU links not the Wordpress content. So we decide to make a mods that will search Wordpress content and display it's result within IndexU, hopefully it will make our site more useful for users.

Members can download this mods for FREE here (you’ll need to login first).

Here is the integration step :

  1. You'll need to do the initial Wordpress and IndexU integration first.
  2. Edit your indexu-blocks.php script, and add the following code at the bottom :
    Content visible to member only. Please register or login first.

  3. Unzip and upload the wp-search-result.zip file to the corresponding IndexU folder.
  4. Edit your search.html and search_error.html template (IndexU) and add the following :
    Content visible to member only. Please register or login first.

    About the parameters :

    • blog_url : your blogs url (without the end slash)
    • title : the blocks title, you might want to customize it to suits you
    • keyword : the search term for blog
    • min_char : minimum keywords chars where blog search will be performed
    • num_result : maximum number of result returned

The mods is created based on kosmos template, so for other templates you might need to adjust it a little bit.

That's all.
Comments and feedbacks to improve this mods are welcome.

Related Mods
- Integrating Wordpress to Your Directory
- WP Calendar in IndexU
- WP Recent Post By Category in IndexU
- WP Meta Keywords and Description in IndexU

2 Responses to “WP Search Result in IndexU”



  1. lewis Says:

    Hi,
    tried installing this mod and get the folowing error.

    Warning: file_get_contents(http://atozfitness.com/indexu/blog/indexu-blocks.php?type=search_result&keyword=venuto&num_result=10) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 in /home/atozfitn/public_html/indexu/blocks/block.wordpress_search_result.php on line 33
    Result from blogs : venuto

    What do you think I did wrong ?
    I put it in search.html at the end of the file.

    Lewis

  2. admin Says:

    It seems your 'blog_url' is incorrect, try replace it with "$site_url/wordpress".
    Hope it helps.

Leave a Reply