Advertise Here

Author Topic: Google Search Engine on Own Site  (Read 4572 times)

0 Members and 1 Guest are viewing this topic.

Offline Deathmanxxx

  • SMF For Free Newbie
  • *
  • Posts: 10
    • View Profile
    • Game Dream

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Google Search Engine on Own Site
« on: May 22, 2007, 09:44:15 pm »
Forum Url: http://www.gamedream.smfforfree2.com
How do I put one of these on my forums and my actual site, that includes the "Search (website):"? An example:


Offline Kimmie

  • SMF For Free Master
  • *
  • Posts: 2010
    • View Profile
    • Kimmie's Caverns

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Google Search Engine on Own Site
« Reply #1 on: May 22, 2007, 10:16:05 pm »
Try this:

http://www.askdavetaylor.com/how_can_i_add_a_google_search_box_to_my_web_site.html

or this:

http://code.google.com/apis/ajaxsearch/

(edit - I am not sure if these are linked to google adsense or not so you may want to check with SMF before installing one  ;) )
« Last Edit: May 22, 2007, 10:20:58 pm by Kimmie »

Offline Kimmie

  • SMF For Free Master
  • *
  • Posts: 2010
    • View Profile
    • Kimmie's Caverns

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Google Search Engine on Own Site
« Reply #2 on: May 22, 2007, 10:18:18 pm »

Offline Deathmanxxx

  • SMF For Free Newbie
  • *
  • Posts: 10
    • View Profile
    • Game Dream

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Google Search Engine on Own Site
« Reply #3 on: May 22, 2007, 10:24:41 pm »
Forum Url: http://www.gamedream.smfforfree2.com
Ok. Thanks. Now I have to figure out how to put it on... Because my site isn't based on HTML, and it's a bit hard with CSS. :S Because I don't know where the code goes.

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: Google Search Engine on Own Site
« Reply #4 on: May 23, 2007, 02:26:15 pm »
You could put it in the headers or footers it doesn't matter.  If you want it to show up at the top, you can put it in your headers, if you want it to show up at the bottom, but it in your Footers.
Check out Revolution X's Brand new Code Index!

Offline Hurricane47

  • SMF For Free Master
  • *
  • Posts: 1108
    • View Profile
    • My Graphics Forum!

  • Total Badges: 27
    Badges: (View All)
    Windows User Poll Starter Poll Voter Level 5 Webmaster
Re: Google Search Engine on Own Site
« Reply #5 on: May 23, 2007, 05:42:17 pm »
I got it working.
I used the 'ask david taylor' thing.
I had to tweak the code a little because it kept doing searches with "ask david taylor" but I got it fixed!

Thanx!

Offline Kimmie

  • SMF For Free Master
  • *
  • Posts: 2010
    • View Profile
    • Kimmie's Caverns

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Google Search Engine on Own Site
« Reply #6 on: May 23, 2007, 09:25:56 pm »
It tells you at the bottom of that page:

"If you'd like to use this on your own site, simply change the occurrences of askdavetaylor.com as appropriate."  ;)

Offline Crystalman

  • SMF For Free Full Member
  • *
  • Posts: 152
  • Crystalman.EXE
    • View Profile
    • Buster Cannon Forums

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Google Search Engine on Own Site
« Reply #7 on: May 24, 2007, 11:52:05 am »
Server 1 has a google search bar at the bottom of the screen... I'm not sure about the others though.


Buster Cannon Forums, and BCF-Comics.

Offline SbS

  • SMF For Free Member
  • *
  • Posts: 46
  • Agent Moose = My hero 4 his codes!
    • View Profile
    • runeblast

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Google Search Engine on Own Site
« Reply #8 on: July 31, 2007, 11:20:03 am »
Put this in headers or footers, wherever you want


Code: [Select]
<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Google</title><style><!--
body,td,a,p,.h{font-family:arial,sans-serif}
.h{font-size:20px}
.h{color:#3366cc}
.q{color:#00c}
.ts td{padding:0}.ts{border-collapse:collapse}#gbar{float:left;font-weight:bold;height:22px;padding-left:2px}#gbh{border-top:1px solid #c9d7f1;font-size:0;height:0;position:absolute;right:0;top:24px;width:200%}#gbi{background:#fff;border:1px solid;border-color:#c9d7f1 #36c #36c #a2bae7;font-size:13px;top:24px;z-index:1000}#guser{padding-bottom:7px !important}#gbar,#guser{font-size:13px;padding-top:1px !important}.gb1,.gb3{display:inline;height:22px;margin-right:1em;vertical-align:top}#gbi,.gb2{display:none;position:absolute;width:7em}.gb2{z-index:1001}#gbar a,#gbar a:active,#gbar a:visited{color:#00c;font-weight:normal}.gb2 a,.gb3 a{text-decoration:none}.gb2 a{display:block;padding:.2em .5em}#gbar .gb2 a:hover{background:#36c;color:#fff}--></style>
<script>
<!--
window.google={kEI:"5mCvRoOfKKfMwAGL1_z8Aw",kEXPI:"17259,17497,52193",kHL:"en"};function sf(){document.f.q.focus();}
window.clk=function(b,c,d,e,f,g){if(document.images){var a=encodeURIComponent||escape;(new Image).src="/url?sa=T"+(c?"&oi="+a(c):"")+(d?"&cad="+a(d):"")+"&ct="+a(e)+"&cd="+a(f)+(b?"&url="+a(b.replace(/#.*/,"")).replace(/\+/g,"%2B"):"")+"&ei=5mCvRoOfKKfMwAGL1_z8Aw"+g}return true};window.gbar={};(function(){;var h=window.gbar,a,g,f;function m(b,e,d){b.display=b.display=="block"?"none":"block";b.left=e+"px";b.top=d+"px"}h.tg=function(b){var e=0,d,c,i,j=0,k=window.navExtra;!g&&(g=document.getElementById("gbar"));!f&&(f=g.getElementsByTagName("div"));(b||window.event).cancelBubble=true;if(!a){a=document.createElement(Array.every||window.createPopup?"iframe":"div");a.frameBorder="0";a.id="gbi";a.scrolling="no";a.src="#";document.body.appendChild(a);if(k)for(var n in k){var l=document.createElement("div");l.appendChild(k[n]);l.className="gb2";g.appendChild(l)}document.onclick=h.close}for(;f[j];j++){c=f[j];i=c.className;if(i=="gb3"){d=c.offsetLeft;while(c=c.offsetParent)d+=c.offsetLeft;m(a.style,d,24)}else if(i=="gb2"){m(c.style,d+1,25+e);e+=20}}a.style.height=e+"px"};h.close=function(b){a&&a.style.display=="block"&&h.tg(b)};})();// -->
</script>
</head><body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onload="sf();if(document.images){new Image().src='/images/nav_logo3.png'}" topmargin=3 marginheight=3><div id=gbar><nobr><div class=gb1>Web</a></div><div class=gb1><a href=http://images.google.com/imghp?ie=UTF-8&tab=wi>Images</a></div><div class=gb1><a href=http://video.google.com/?ie=UTF-8&tab=wv>Video</a></div><div class=gb1><a href=http://news.google.com/nwshp?ie=UTF-8&tab=wn>News</a></div><div class=gb1><a href=http://maps.google.com/maps?ie=UTF-8&tab=wl>Maps</a></div><div class=gb1><a href=http://mail.google.com/mail?tab=wm>Mail</a></div><div class=gb3><a href=http://www.google.com/intl/en/options/ onclick="this.blur();gbar.tg(event);return false"><u>more</u> <span style=font-size:11px>&#9660;</span></a></div><div class=gb2><a href=http://blogsearch.google.com/?ie=UTF-8&tab=wb>Blog Search</a></div><div class=gb2><a href=http://www.blogger.com/?ie=UTF-8&tab=wj>Blogger</a></div><div class=gb2><a href=http://books.google.com/bkshp?ie=UTF-8&tab=wp>Books</a></div><div class=gb2><a href=http://www.google.com/calendar?tab=wc>Calendar</a></div><div class=gb2><a href=http://docs.google.com/?tab=wo>Documents</a></div><div class=gb2><a href=http://finance.google.com/finance?ie=UTF-8&tab=we>Finance</a></div><div class=gb2><a href=http://groups.google.com/grphp?ie=UTF-8&tab=wg>Groups</a></div><div class=gb2><a href=http://labs.google.com/>Labs</a></div><div class=gb2><a href=http://www.orkut.com/?ie=UTF-8&tab=w0>Orkut</a></div><div class=gb2><a href=http://www.google.com/ptshp?ie=UTF-8&tab=wt>Patents</a></div><div class=gb2><a href=http://picasaweb.google.com/home?ie=UTF-8&tab=wq>Photos</a></div><div class=gb2><a href=http://www.google.com/prdhp?ie=UTF-8&tab=wf>Products</a></div><div class=gb2><a href=http://www.google.com/reader?ie=UTF-8&tab=wy>Reader</a></div><div class=gb2><a href=http://scholar.google.com/schhp?ie=UTF-8&tab=ws>Scholar</a></div></nobr></div><div id=gbh></div><div align=right id=guser style="font-size:84%;padding:0 0 4px" width=100%><nobr><a href="/url?sa=p&pref=ig&pval=3&q=http://www.google.com/ig%3Fsourceid%3Dnavclient%26ie%3DUTF-8%26hl%3Den&usg=AFQjCNELLfnbyvGZovwAUekpcIU7cSUHFw">iGoogle</a> | <a href="https://www.google.com/accounts/Login?continue=http://www.google.com/webhp%3Fsourceid%3Dnavclient%26ie%3DUTF-8&hl=en">Sign in</a></nobr></div><center><br id=lgpd><img alt="Google" height=110 src="/intl/en_ALL/images/logo.gif" width=276><br><br><form action="/search" name=f><table cellpadding=0 cellspacing=0><tr valign=top><td width=25%>&nbsp;</td><td align=center nowrap><input name=hl type=hidden value=en><input maxlength=2048 name=q size=55 title="Google Search" value=""><br><input name=btnG type=submit value="Google Search"><input name=btnI type=submit value="I'm Feeling Lucky"></td><td nowrap width=25%><font size=-2>&nbsp;&nbsp;<a href=/advanced_search?hl=en>Advanced Search</a><br>&nbsp;&nbsp;<a href=/preferences?hl=en>Preferences</a><br>&nbsp;&nbsp;<a href=/language_tools?hl=en>Language Tools</a></font></td></tr></table></form><br><br><font size=-1><a href="/intl/en/ads/">Advertising&nbsp;Programs</a> - <a href="/services/">Business Solutions</a> - <a href="/intl/en/about.html">About Google</a> - <b><a href=http://www.google.co.uk/>Go to Google UK</a></b><span id=hp style="behavior:url(#default#homepage)"></span><script><!--
(function() {var a="http://www.google.com/",b=document.getElementById("hp"),c=b.isHomePage(a);_rptHp=function(){(new Image).src="/gen_204?sa=X&ct=mgyhp&cd="+(b.isHomepage(a)?1:0)};if(!c){document.write('<p><a href=/mgyhp.html onClick=document.getElementById("hp").setHomepage("'+a+'");_rptHp();>Make Google Your Homepage!</a>')};})();//-->
</script></font><p><font size=-2>&copy;2007 Google</font></p></center></body></html>

 

Related Topics

  Subject / Started by Replies Last post
13 Replies
4854 Views
Last post December 14, 2007, 09:46:48 pm
by simply sibyl
2 Replies
1458 Views
Last post October 13, 2007, 01:14:05 pm
by nickrulz1
6 Replies
1671 Views
Last post February 21, 2008, 05:39:08 pm
by simply sibyl
13 Replies
3289 Views
Last post January 24, 2009, 10:31:14 pm
by valhalla95
4 Replies
961 Views
Last post July 31, 2010, 06:43:19 pm
by InsertName