WP Search Result in IndexU
|
||||||||
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 :
- You'll need to do the initial Wordpress and IndexU integration first.
- Edit your indexu-blocks.php script, and add the following code at the bottom :
- Unzip and upload the wp-search-result.zip file to the corresponding IndexU folder.
- Edit your search.html and search_error.html template (IndexU) and add the following :
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 |



May 31st, 2008 at 1:15 am
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
July 9th, 2008 at 11:26 pm
It seems your 'blog_url' is incorrect, try replace it with "$site_url/wordpress".
Hope it helps.