Still no donations coming in, so I have no shout-outs to make today. Please get those donations in ASAP! Make sure you check out the rewards page to see the new contest which ends this Sunday December 2nd. Ok on with today’s tutorial.
In today’s tutorial I’m going to show you how you can add searching by your voice to your Pligg site by only adding 14 characters. Too good to be true? See the image below.

Ok so lets jump right in. In this tutorial were going to assume you are using the default template that comes with Pligg. Open the header.tpl file in your favorite text editor.
Locate the input box for the search. It should look something like this.
<input type=”text” size=”20″ name=”search” id=”searchsite” value=”{$searchboxtext}” onfocus=”if(this.value == some_search) {ldelim}this.value = ”;{rdelim}” onblur=”if (this.value == ”) {ldelim}this.value = some_search;{rdelim}”/>
Now all we want to add a small piece of code to that string. x-webkit-speech
When we combine to the two we get the following sctring
<input type=”text” size=”20″ name=”search” id=”searchsite” value=”{$searchboxtext}” onfocus=”if(this.value == some_search) {ldelim}this.value = ”;{rdelim}” onblur=”if (this.value == ”) {ldelim}this.value = some_search;{rdelim}” x-webkit-speech />
That’s all there is to it. Now peopole using an HTM% such as a browser for smart phones can easily speak into their phone to search your pligg site.
See how you can Help ChuckRoast now and get some cool stuff in return.
Tune In Tomorrow
~ ChuckRoast