View Single Post
  #4 (permalink)  
Old 07-25-2007, 08:57 AM
mathcv's Avatar
mathcv mathcv is offline
New Pligger
 
Join Date: Jul 2007
Location: Argentina
Posts: 14
Thanks: 1
Thanked 6 Times in 4 Posts
Post 4 simple step for install Google Search in your Pligg

Hi guys!
If your like remplace Pligg Search with Google Search, i write the instructions for the yget template, but for other template is similar :

1- Open /templates/yget/header.php

2- Find this code:

<form action="{$my_pligg_base}/search.php" method="get" name="thisform" id="thisform">
{if $templatelite.get.search neq ""}
{assign var=searchboxtext value=$templatelite.get.search|sanitize:2}
{else}
{assign var=searchboxtext value=#PLIGG_Visual_Search_SearchDefaultText#}
{/if}
<input type="text" size="18" name="search" id="searchsite" value="{$searchboxtext}" onfocus="if(this.value == '{$searchboxtext}') {ldelim}this.value = '';{rdelim}" onblur="if (this.value == '') {ldelim}this.value = '{$searchboxtext}';{rdelim}"/>
<input type="submit" value="{#PLIGG_Visual_Search_Go#}" class="submit" />
</form>


3- And remplace whith this code:

<form method="get" action="http://www.google.com/search" target="_blank">
<input type="hidden" name="ie" value="UTF-8" />
<input type="hidden" name="oe" value="UTF-8" />
<input name="q" size="18" value="{$searchboxtext}" maxlength="255" />
<input name="btnG" type="submit" value="{#PLIGG_Visual_Search_Go#}" />
<input type="hidden" name="domains" value="YOURURL.COM" />
<input type="hidden" name="sitesearch" value="YOURURL.COM" checked="checked" />
</form>

4- Now upload and reemplace, header.php

5- FINISH!


*Reemplae in the step 3 ; YOURURL.COM for your complet URL


See'u!

Last edited by mathcv; 07-25-2007 at 09:06 AM..
Reply With Quote
The Following 2 Users Say Thank You to mathcv For This Useful Post: