Replacing Wordpress search with Google search and adsense
Wordpress by default provides search functionality out of the box. But instead you may want to use Google site search. The reason is simple, Google search can be monetized. If the user clicks on ads displayed after search you get paid!
Integrating Google site search is simple provided you are OK to have the search results on a different page. Just copy and paste the code generated by Adsense. But if you want to integrate Google search inside Wordpress, things become a bit complicated. Initially I tried creating a Wordpress page and then tried integrating Google search inside it. It didn’t work.
Then I came across this cool plugin called MightySearch. Using it is pretty simple,
Installation: Upload mightysearch.php to wp-content/plugins/ directory and activate it. Go into your Google account and get the form & search result code. Paste both code into MightySearch.
How to use it: Just create a new page, for example “Google Search”, so that the post slug will be “google-search”, and reachable at URL for example: http://yourdomain.com/google-search/ . Then type either one of the following text anywhere in your page to call the search form or/and search result;
<!--mightysearch--> - to call both search form and search result on the page <!--mightysearch_form--> - to call only search form on the page <!--mightysearch_result--> - to call only search result on the page.
Planet Planet RSS Feed Aggregator
RSS Aggregators are used to collect multiple RSS feeds from web sites and then publish it as a logical group. Check out LinuxChix for a sample use.
Are you looking for a good RSS aggregator which can handle a large number of RSS feeds? The best aggregator I have come across is the Planet Planet Feed Reader. It is fast and has a good template system as well.
Planet uses a config.ini file for the list of feeds and various aggregation options. The actual output can be configured using *.tmpl files provided. Templates provide simple conditional statements also (TMPL_IF for example).
For this to work as an offline feed aggregator you need to be able to put the aggregator in the web server cron job. Unfortunately most of the hosting providers don’t give such a facility. If your site has fairly good traffic, an alternative is to use Pseudocron.
Note that planet aggregator requires python 2.2 or above installed on the web server. In my case I tried installing it on my server hosted by globat. I got the following error (The BSD module is broken?)
ImportError: No module named _bsddb…..