View Single Post
  #6 (permalink)  
Old 07-25-2007, 10:06 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
Google Search with result in the template

If you want the result appear in your site... then:

1- This is the code for the SearchBox:

<!-- Google CSE Search Box Begins -->
<form id="searchbox_007890414620772450188:gspq1fajlug" action="YOURURL.COM/RESULT.HTML" target="_blank">
<input type="hidden" name="cx" value="007890414620772450188:gspq1fajlug" />
<input name="q" type="text" size="40" />
<input type="submit" name="sa" value="Search" />
<input type="hidden" name="cof" value="FORID:9" />
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_007890414620772450188%3Agspq1 fajlug"></script>
<!-- Google CSE Search Box Ends -->


2- And this is Code for a Box Result:

<!-- Google Search Result Snippet Begins -->
<div id="results_007890414620772450188:gspq1fajlug"></div>
<script type="text/javascript">
var googleSearchIframeName = "results_007890414620772450188:gspq1fajlug";
var googleSearchFormName = "searchbox_007890414620772450188:gspq1fajlug";
var googleSearchFrameWidth = 450;
var googleSearchFrameborder = 0;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
<!-- Google Search Result Snippet Ends -->



>> For edit size of Box Result, edit this line "var googleSearchFrameWidth = 450;"

>> I think that the page to insert the results is user_template/yget/center.tpl, near the line 69

>> Also I think that my English caveman is graceful… jajaj


I extracted some codes of here: BuscaVina en tu sitio

Greetings!
Reply With Quote
The Following 2 Users Say Thank You to mathcv For This Useful Post: