Better Search v1.2

My plugin Better Search just got better. v1.2 includes better template support, redesigned admin page, better WordPress widget support, etc. Please backup your database before upgrading.

Better Search replaces the default WordPress search engine with a more powerful search engine. Visitors will find more relevant search results of search terms. You can fine tune results by giving the title or the content more weighting.

Changes in 1.2:

  • Updates for better search template compatibility. New template included in this release
  • Quick links added in Plugins page in WP-Admin
  • Relevance score is now displayed as a percentage
  • Fixed: Daily search terms were not being cleared
  • Modified: Default search colours for the heatmap are grey and black instead of blue and red
  • Modified: Plugin will not add a link to Better Search homepage by default
  • Modified: New WordPress widget to display the popular searches in your sidebar
  • Added: New template file based on Twenty Eleven WordPress theme

Minor updates to CRP and Better Search

I’ve uploaded two minor updates to CRP and Better Search, while the upgrade to Contextual Related Posts is optional, Better Search is a required update.

Contextual Related Posts lets you display a list of contextually related posts for the current post. It does this by analyzing the title and content of your post and finding the most relevant posts based on this.

In this release to CRP, I’ve added the Italian language which has been provided by Gianni and the Danish translation from Georg. Gianni has provided the Italian translation for Top 10 as well, while Georg has provided the Danish translation for TwitterCounter. All the translations are available when you download the plugin.

Again, I am looking for translators for all three plugins. If you’ve translated the plugin or would like to, please contact me.

Better Search is a plugin that helps you improve the search results on your blog. The plugin tries to find highly relevant search results for your blog based on the title and content of the posts on your blog.

This release fixes a major bug that prevented the proper display of the search heatmap. I also pushed a minor update today that should create two more mySQL FULLTEXT indexes. This is my first step to improving the ability of displaying search terms. I have a big roadmap for this and all my plugins. As usual, suggestions are highly welcome.

If you’re using this plugin and would like to support my efforts, do drop in a donation. Are you using my plugin? Blog about it and spread the word.

Better Search bug-fix release

I’ve just committed v1.1.5 of Better Search to the repository. Both 1.1.4 and 1.1.5 fixes two tiny bugs in the functioning of the plugin. Thanks to Thaya and vikingjs suggesting the two fixes.

I still have a number of major modifications that I would like done to this plugin, but sadly, I haven’t found a good amount of time to sit and do them. vikinjs has also made a few changes to the plugin which you may like to try out.

Again, I’m looking for a guide on programming a callback function. If anyone has done this or knows how to or where I can find out how, do post below or email me.

Until then, download the latest version of Better Search.

Better Search Languages

The following languages are available for this version of Better Search.

Bellarussian

The Bellarussian translation is provided by Fat cow.

Chinese – Traditional

The Chinese Traditional translation is provided by Hugo.

Danish

The Danish translation is provided by Daniel.

Dutch

The Dutch translation is provided by Redactie.

French

The French translation is provided by Erwan.

Hindi

The Hindi translation is provided by Sparx.

Italian

The Italian translation is provided by Giorgio.

Portuguese (Brazilian)

The Brazilian Portuguese translation is provided by Guilherme.

Russian

The Russian translation is provided by Sergey.

Much Props to the Translators

The translators here have put in a lot of work to translate this plugin. If you like Better Search in its localized form, please consider a donation to one of the translators. If you?re not sure how to go about doing that, please get a hold of me and I?ll get you with the right person.

Please return to the Better Search page.

Creating Templates for Better Search WordPress Plugin

From version 1.1, Better Search supports the use of a custom template in your WordPress theme directory to display the search results. By using the theme directory, you can customize the look and feel of the search results page and ensure that it integrates completely within your WordPress blog.

Getting Started

Better Search will look for the file called better-search-template.php in your current themes folder. If this is found, then the plugin will use this file, otherwise it will default to the one hardcoded into the plugin.

I have included a sample template file that is created for the WordPress default theme. If you’re still using the WordPress default theme, you can copy the file into /wp-content/themes/default/.

You can also use this template as a starting point to creating your own.

Template Tags

Better Search supports the following template tags that you can use in better-search-template.php. Besides these you can use just about any template tag supported by WordPress

get_bsearch_title_daily

This is used to display the Title of the Daily Popular Searches heatmap. It picks up the one that is set in WP-Admin > Settings > Better Search

Syntax:

get_bsearch_title_daily($text_only = true)

Parameters:
$text_only
This will return the title stripped of all tags. This is useful if you are styling the theme and it uses a different format as that you specified for the heatmap.
Default: true

Example:

<?php echo get_bsearch_title_daily(false); ?>

This will display the title including all the tags as you entered it in WP-Admin.

get_bsearch_title

This is used to display the Title of the Overall Popular Searches heatmap. It picks up the one that is set in WP-Admin > Settings > Better Search

Syntax:

get_bsearch_title($text_only = true)

Parameters:
$text_only
This will return the title stripped of all tags. This is useful if you are styling the theme and it uses a different format as that you specified for the heatmap.
Default: true

Example:

<?php echo get_bsearch_title(false); ?>

This will display the title including all the tags as you entered it in WP-Admin.

get_bsearch_heatmap

This is used to display the heatmap for popular searches

Syntax:

get_bsearch_heatmap($daily=false, $smallest=10, $largest=20, $unit="pt", $cold="00f", $hot="f00", $before='', $after='