<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Branding</title>
        <link>http://geekswithblogs.net/shehan/category/7777.aspx</link>
        <description>Branding</description>
        <language>en-US</language>
        <copyright>shehan</copyright>
        <managingEditor>digitalshehan@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>JavaScript to 'Sign in as a Different User'</title>
            <link>http://geekswithblogs.net/shehan/archive/2009/04/06/javascript-to-sign-in-as-a-different-user.aspx</link>
            <description>&lt;p&gt;Blogging this mainly for my benefit, but if anyone else finds it useful - you're welcome :)&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;In case you're working on a SharePoint site where the branding requires the removal of the Welcome links control then you'll loose the ability to 'Sign in as a Different User' to check the look-and-feel and functionality that different users will experience. &lt;/p&gt;  &lt;p&gt;One possible solution is to adjust you browser settings to always prompt for credentials and then restart your browser every time you need to sign in as a different user. Another way is to paste the following JavaScript in the address bar of the browser and hit enter. This will show the login credential dialog and you can enter the new username and password. &lt;/p&gt;  &lt;p&gt;javascript:LoginAsAnother('\u002f_layouts\u002fAccessDenied.aspx?loginasanotheruser=true', 0)&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:d60484ba-7f21-415d-9177-1329f5f2a8f3" class="wlWriterSmartContent"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/SharePoint" rel="tag"&gt;SharePoint&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Branding" rel="tag"&gt;Branding&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Sign%20in%20as%20a%20Different%20User" rel="tag"&gt;Sign in as a Different User&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=131487"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=131487" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/shehan/aggbug/131487.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>shehan</dc:creator>
            <guid>http://geekswithblogs.net/shehan/archive/2009/04/06/javascript-to-sign-in-as-a-different-user.aspx</guid>
            <pubDate>Tue, 07 Apr 2009 02:09:56 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/shehan/comments/131487.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/shehan/archive/2009/04/06/javascript-to-sign-in-as-a-different-user.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/shehan/comments/commentRss/131487.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/shehan/services/trackbacks/131487.aspx</trackback:ping>
        </item>
        <item>
            <title>Change the &amp;quot;Welcome&amp;quot; link font color</title>
            <link>http://geekswithblogs.net/shehan/archive/2008/02/25/change-the-quotwelcomequot-link-font-color.aspx</link>
            <description>&lt;p&gt;As part of configuring enterprise search for a company's portal, one of the requirements was changing the look and feel of the SearchCenter. In short, they wanted a very Google like UI - I.e. nothing too flashy or heavy.&lt;/p&gt;
&lt;p&gt;So, I started off creating a minimal master page and adjusting the layouts - nothing major just positioning the controls etc.. Now, to change the appearance of the webparts required modifications to the default styles located in the core.css file and thanks to &lt;a href="http://www.heathersolomon.com/content/sp07cssreference.htm#Global" nofollow=""&gt;Heather Solomons CSS Reference Chart&lt;/a&gt; this was pretty much easy. But when it came to changing the font color of the "Welcome" link, changes to the styles mentioned by her weren't working....&lt;/p&gt;
&lt;p&gt;Took me a while, but managed to find the solution by examining the source of the generated web page. Seems that the style in use for the font color of the "Welcome" link is: &lt;em&gt;.ms-SPLink A:link,.ms-SPLink A:visited&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;To change the font color, modify the existing class like:&lt;/p&gt;
&lt;p&gt;.ms-SPLink A:link,.ms-SPLink A:visited    &lt;br /&gt;
{     &lt;br /&gt;
color: #FFFFFF; /*#2A4666; this is the font color for the "Welcome" Link*/     &lt;br /&gt;
text-decoration:none;     &lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;and if you want to change the font color on mouse over then add a new class:    &lt;br /&gt;
.ms-SPLink A:hover     &lt;br /&gt;
{&lt;/p&gt;
&lt;p&gt;color: #66FFFF; /*this is the font color for the "Welcome" Link - mouse over*/    &lt;br /&gt;
text-decoration:none;     &lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Do remember that changes to the core.css file will result in changes that will be reflected all over the portal. So, if you only want the change to appear in on site don't go change the cosre.css file....&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=119948"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=119948" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/shehan/aggbug/119948.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>shehan</dc:creator>
            <guid>http://geekswithblogs.net/shehan/archive/2008/02/25/change-the-quotwelcomequot-link-font-color.aspx</guid>
            <pubDate>Mon, 25 Feb 2008 23:18:33 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/shehan/comments/119948.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/shehan/archive/2008/02/25/change-the-quotwelcomequot-link-font-color.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/shehan/comments/commentRss/119948.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/shehan/services/trackbacks/119948.aspx</trackback:ping>
        </item>
        <item>
            <title>Highlight Search Results</title>
            <link>http://geekswithblogs.net/shehan/archive/2008/02/21/highlight-search-results.aspx</link>
            <description>OOTB the Search Core Results webpart simply emphasizes the search string you entered in the Search Box by wrapping it within the &amp;lt;b&amp;gt;&amp;lt;/b&amp;gt; tags. But let’s say you need to highlight the search terms in different colors; what do you do? Write a new results webpart? No! you only need to adjust the Search Core Results  XLS.&lt;br /&gt;
&lt;br /&gt;
This is how it’s done:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
    &lt;li&gt;Open up the XLS editor and copy the contents  to notepad or some other  editor (if your fine with editing it in the MOSS’s default editor, go right ahead)&lt;/li&gt;
    &lt;li&gt;Search for the term &amp;lt;xsl:template match="ddd"&amp;gt;&lt;/li&gt;
    &lt;li&gt;Just below that you will see :&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="margin-left: 40px;"&gt; &amp;lt;xsl:template match="c0"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;xsl:value-of select="."/&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;xsl:template match="c1"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;xsl:value-of select="."/&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style="margin-left: 40px;"&gt;And this goes on till “c9”. The values “c0” to “c9” correspond to the search terms you entered, where “c0” is the first, “c1” is the second and so on…&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;ul&gt;
    &lt;li&gt;Replace this with something like:&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="margin-left: 40px;"&gt;  &amp;lt;xsl:template match="c0"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;strong style="background-color: #CCCCFF"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;xsl:value-of select="."/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;xsl:template match="c1"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;strong style="background-color: #CCFFFF"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;xsl:value-of select="."/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style="margin-left: 40px;"&gt;As you can see I’ve used the style “background-color” to give each search term its own color.&lt;br /&gt;
&lt;/div&gt;
&lt;ul&gt;
    &lt;li&gt; Once done copy the updated XLS file back to the webpart and save&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Searching for "&lt;span style="font-style: italic;"&gt;microsoft sharepoint server&lt;/span&gt;"&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-style: italic;"&gt; with the default XLS:&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: left;"&gt;&lt;img width="816" height="82" align="left" alt="with default XLS" src="/images/geekswithblogs_net/shehan/blogImages/highlightNO.PNG" /&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-style: italic;"&gt;&lt;br /&gt;
with the modified XLS:&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;div style="text-align: left;"&gt;&lt;img width="816" height="82" align="left" alt="with modified XLS" src="/images/geekswithblogs_net/shehan/blogImages/highlight.PNG" /&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: left;"&gt; &lt;/div&gt;
&lt;div style="text-align: left; color: rgb(255, 255, 255);"&gt;&lt;a href="http://technorati.com/claim/t6dcxj7q5f" rel="me" style="background-color: rgb(255, 255, 255);"&gt;Technorati Profile&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=119834"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=119834" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/shehan/aggbug/119834.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>shehan</dc:creator>
            <guid>http://geekswithblogs.net/shehan/archive/2008/02/21/highlight-search-results.aspx</guid>
            <pubDate>Fri, 22 Feb 2008 01:38:47 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/shehan/comments/119834.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/shehan/archive/2008/02/21/highlight-search-results.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/shehan/comments/commentRss/119834.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/shehan/services/trackbacks/119834.aspx</trackback:ping>
        </item>
    </channel>
</rss>