Posts

Showing posts from September, 2010

Cannot activate Publishing Infrastructure feature on MOSS 2007

Today I got this error when trying to activate the publishing infrastructure feature for a new SharePoint 2007 Team Site: "A list, survey, discussion board, or document library cannot have the same name as another list, survey, discussion board, or document library in this Web site. Use your browser’s Back button, and type a new name. at Microsoft.SharePoint.Library.SPRequestInternalClass.CreateList(String bstrWebUrl, String bstrTitle, String bstrDescription, String bstrListUrl, String bstrFeatureId, Int32 lTemplateID, String bstrDocTemplateType, ListQuickLaunchOptions qlOpt) at Microsoft.SharePoint.Library.SPRequest.CreateList(String bstrWebUrl, String bstrTitle, String bstrDescription, String bstrListUrl, String bstrFeatureId, Int32 lTemplateID, String bstrDocTemplateType, ListQuickLaunchOptions qlOpt)" Solution: Turns out erasing the "Style Library" with SharePoint Designer solves it! http://www.cleverworkarounds.com/2007/10/27/sharepoint-branding-part-5-%E...

Messenger issues 0x8ac70013 and 0x8100039d

Getting these errors while trying to connect through video and voice calls. Solutions: - Erase all Internet Explorer history and temporary files - Deactivate existing VMWare Network Connections - Exit Windows Live Messenger, reopen, and try video calls again http://www.cesarromero.com.br/2010/msn-live-messenger-webcam-erros-0x8ac70013-0x8100039d/

SharePoint welcome.ascx change PT-PT login message

In SharePoint sites language 2070 (PT-PT), login welcome message is "Bem-vindo a [DOMAIN\USER]" we can change this message with javascript, finding the Menu ID of the link button. _spBodyOnLoadFunctionNames.push("welcomeBemVindo"); function welcomeBemVindo() { var re= new RegExp('_Menu','g') var el = document.getElementsByTagName('a'); for(var i=0;i { if(el[i].id.match(re)) { var content = document.getElementById(el[i].id); content.innerHTML = content.innerHTML.replace("Bem-vindo a", "Bem-vindo"); } } } the id is dynamic, so we have to use a regular expression to get it. usually it is zz8_Menu but it can change for other pages

Installing Windows Media Player Plugin in Server OS

Scenario: - Windows Server Operating System - Using Windows Media Player 10/11 Codec Problem: - Windows Media Player Plugin won't install on other browsers than IE with error: "This package does not support server operating systems". Solution: - Unzip exe, and hex edit the msi file. Or simply download the edited plugin here . Resource: http://arnoutboer.nl/weblog/?p=24

Data View Web Part Filter by URL Field

Scenario: Lets say you have a page with multiple data (say videos) and you want to click (select) the item and open a new page with the item open (video display). This can be done with a Data View Web Part Per Page. Solution: Create a data view web part in the main page that shows all data from the list, filtering and/or sorting the results, and even giving then specific layouts (I usually use Plain List style and then use xslt and css). Here you should create a html link tag with the list item's name as text and URL (FileRef) as href. If you're using a document library, you can use the field directly in the html, <a href="Video.aspx?ID={@ID}" ><xsl:value-of select="@FileLeafRef" /></a> Right now you have a page of queried items and a page that opens with an ID query string On the view page, create a data view web part, customize it, and limit the results to one. Here you must create a new filter, and select "Create a new parameter......

Take off clicking borders on links

sometimes we get a dotted line around the link area, particularly when using display:block and background images :focus { outline: none 0; }

Transparent background in flash swf files

1.Add the following parameter to the OBJECT tag: <param name="wmode" value="transparent"> 2.Add the following parameter to the EMBED tag: wmode="transparent" http://kb2.adobe.com/cps/142/tn_14201.html

Editing SharePoint Surveys

Problem: Add customized numbers in the SharePoint Survey list's question field Solution: Add question as: "surveyquestionstart 1. surveyquestionend Where's my car dude?" So now what we want to do is add a javascript to the page that changes surveyquestionstart -> to <span class="question"> and surveyquestionend -> to </span> Javascript can be added by the ToolPaneView=2 trick and adding a content editor web part to insert the script; or open the form directly with SharePoint Designer and add the code to the END of the contents in the main place holder. http://www.sharepointkings.com/2009/08/creating-and-working-with-survey-in_7080.html Find the script here Nice trick to edit the form as webpart zone: add ToolPaneView=2 to the new/edit/disp URLs. http://www.sharepointkings.com/2008/05/how-to-edit-list-forms-like-newformaspx.html