Stylesheets that are used in MOSS

I do a lot of CSS changes to my sites, I find that easier and quicker than to rebuild themes or site definitions and stuff. MOSS 2007 uses the following css files:controls.cssHtmlEditorCustomStyles.cssHtmlEditorTableFormats.cssportal.csscore.css When you create a WSS site, the following CSS files are used:portal.csscore.css MySite portal.csscore.css

Remove the “Powered by…” in InfoPath forms

In this folder (the one and only.. right?) “C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions12TEMPLATELAYOUTSINC” is a file that is called “ifsmain.css”. This stylesheet file controls how a web form built by InfoPath is displayed. If you want to remove the logo “powered by InfoPath services” that is displayed in the bottom of every web form …

Create a new search scope

This is very useful. Say you have several web sites and you don’t want to display the same search results on every web site – only the results relevant to the current site! Do this: Open Central AdministrationOpen your SSPClick on “Search settings” and then “Content sources”.There is a list of current content sources, there …

Event id 7888 in Eventviewer

A while ago I got a lot of error messages in Event Viewer on our MOSS server. I found the following solution: run stsadm -o sync -DeleteOldDatabases 0 and the message disappears.What it does is enter the table “sitesynch” on the SQL server and deletes connections to any old Sharepoint config database that you may …

Install IFilter on MOSS

How to install the PDF iFilter so that pdf files are searchable (and given an icon too) Download the latest Adobe PDF IFilter from http://www.adobe.com/support/downloads/detail.jsp?ftpID=2611Stop the IIS serviceRun the Adobe PDF IFilter Setup on your MOSS serverCopy the ICPDF.GIF file (search your server) to “C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions12TemplateImages”Open “C:Program FilesCommon FilesMicrosoft SharedWeb server …

Useful STSADM commands

path to STSADM iscd C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions12BIN addcontentdbstsadm -o addcontentdb -url URL [-databaseserver servername] –databasename databasename [-DatabaseUser username -DatabasePassword password] [-SiteWarning number] [-SiteMaximum number] [-SearchServer servername] stsadm -o addcontentdb -url http://srv007:42464 -databasename Sharepoi1_SITE stsadm.exe -o restore -url http://srv007:24003 -filename c:backupmigrera-SRV005-ComSolut1_SITE.SPB create a new site using a template in another language (in this …

Dropdown with URL in onchange

If you want to create a dropdown list with onchange event to dynamically go to selected URL then do this: Use Sharepoint DesignerInsert Data ViewSelect Show DataSelect which field that should be displayed in the drop-down listInsert DataViewData..StyleChange layout to “Drop-down view style”Click OKChange to Code view in DesignerPut the following code before the /head> …

Custom source in profile import

If you would like to be able to select which OU to import from in your Active Directory then select Custom Source in “Configure Profile Import” in the SSP settings. That will let you write your own custom source like the following example: OU=NaBSolutions,OU=Hosting,DC=yourdomain, DC=se The default setting is DC=yourdomain, DC=se so what you will …