Solved

Goole and Facebok links to Sharepoint

Posted on 2010-11-16
1
342 Views
Last Modified: 2012-05-10
Hi,

I am configuring Sharepoint 2010. I was wondering if anyone has a method to add a goole search box and also a Facebook link to our page. Is this straigh forward?
0
Comment
Question by:cglynn
1 Comment
 
LVL 5

Accepted Solution

by:
tzarad earned 250 total points
ID: 34145966
Use a HTML Form Web Part linking to an external web page containing the google search form

<WebPartPages:SimpleFormWebPart webpart="true" runat="server" __webpartid="{5DD01AA0-8C42-4879-8392-52B476CCB9A7}">
<WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/WebPart/v2">
  <Title>HTML Form Web Part</Title>
  <FrameType>None</FrameType>
  <Description>Connects simple form controls to other Web Parts.</Description>
  <IsIncluded>true</IsIncluded>
  <PartOrder>1</PartOrder>
  <FrameState>Normal</FrameState>
  <Height />
  <Width />
  <AllowRemove>true</AllowRemove>
  <AllowZoneChange>true</AllowZoneChange>
  <AllowMinimize>true</AllowMinimize>
  <AllowConnect>true</AllowConnect>
  <AllowEdit>true</AllowEdit>
  <AllowHide>true</AllowHide>
  <IsVisible>true</IsVisible>
  <DetailLink />
  <HelpLink />
  <HelpMode>Modeless</HelpMode>
  <Dir>Default</Dir>
  <PartImageSmall />
  <MissingAssembly>Cannot import this Web Part.</MissingAssembly>
  <PartImageLarge>/_layouts/images/mssfwp.gif</PartImageLarge>
  <IsIncludedFilter />
  <ExportControlledProperties>true</ExportControlledProperties>
  <ConnectionID>00000000-0000-0000-0000-000000000000</ConnectionID>
  <ID>g_5dd01aa0_8c42_4879_8392_52b476ccb9a7</ID>
  <Content xmlns="http://schemas.microsoft.com/WebPart/v2/SimpleForm"><![CDATA[<!-- Google Search Box HTML Start --> <iframe src="http://myserver/Igoogle.html" name="googlesearch" allowtransparency="true" scrolling="no" frameborder="no" height = "60px" width="400px"></iframe> <!-- Google Search Box HTML End --> ]]></Content>
</WebPart></WebPartPages:SimpleFormWebPart>



igoogle.html code :

<html>
<head>
<link rel="stylesheet" type="text/css" href="http://webserver/_layouts/1033/styles/Themable/search.css?rev=Uoc0fsLIo87aYwT%2FGX5UPw%3D%3D"/>
<style>
.ema01{
font-style:italic;
border:1px solid #e3e3e3 !important;
color:#476382;
margin-top:0;
font-size:12 px;
height:19px;
border-right:0 !important;
width:191px !important;
background:url("http://webserver/_layouts/images/bgximg.png") repeat-x -0px -511px;
border:1px solid #e3e3e3 !important;
background-color:#fff;

padding:2px 3px 0;
}
/*ema01 ms-sbplain */
</style>
</head>
<body >
<form method="get" action="http://www.google.com/search" target="_new" class="ms-sbcell" name="googleform">

<table class="ms-sbtable ms-sbtable-ex s4-search" cellpadding="0" cellspacing="0" border="0">
                        <tr class="ms-sbrow">
                        <td><a href="http://www.google.com/"><img border=0  src="google.gif" align="middle" /></a></td>
                              <td class="ms-sbcell">
                              <input  type="text" value="Search the web ..." maxlength="200"
                              title="Search..." class="s4-searchbox-QueryPrompt ema01" name="q" alt="Search web"
                              style="width:170px;" /></td>
                              <td class="ms-sbgo ms-sbcell"><a  title="Search" href="javascript:document.googleform.submit()">
                              <img title="Search" onmouseover="this.src='http://ws2008shp2010/_layouts/images/gosearchhover15.png'"
                              onmouseout="this.src='http://ws2008shp2010/_layouts/images/gosearch15.png'"
                              class="srch-gosearchimg" alt="Search the web" src="http://ws2008shp2010//_layouts/images/gosearch15.png" style="border-width:0px;" /></a></td>
                              <td class="ms-sbLastcell"></td>
                        </tr>
</table>

</form>
</body>
</html>


0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Sharepoint and PHP 12 86
Sharepoint templates 10 45
How to Sync files with One Drive Personal 1 39
Sharepoint workflow on list 6 30
A question that is asked often, is how to generate sequential numbers in InfoPath Forms. The best way to achieve this is to use a SQL database, along with a stored procedure and a web service to connect Forms Services to the DB. The first thing t…
I have just recently built a new SharePoint 2007 farm on a complete Windows 2008 R2 server platform and part of my standard build procedure is to implement a warm up routine, usually in the form of a script that is scheduled every morning to launch …
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now