Thursday, January 13, 2011

Want to be different?

Lets try to have your taskbar at the top of your Sitecore Desktop instead of the bottom.
Then we need to change a part of the source code in the /sitecore/shell/Applications/Shell.xml file from :

<GridPanel>
<Border ID=”Desktop” GridPanel.Class=”scFill” ContextMenu=”ShowContextMenu”>
<Border ID=”Links” DblClick=”Launch”/>
</Border>
<Startbar GridPanel.Class=”scStartbar”/>
</GridPanel>


to

<GridPanel>
<Startbar GridPanel.Class=”scStartbar”/>
<Border ID=”Desktop” GridPanel.Class=”scFill” ContextMenu=”ShowContextMenu”>
<Border ID=”Links” DblClick=”Launch”/>
</Border>
</GridPanel>


Hope it works and probably now, you can see the difference.... :)

Monday, January 10, 2011

Forgotten your admin password?

Forgotten your admin password?
No worries, if you have access to the core database then you can change the password from there. (This works in 6 and above)


Open the dbo.aspnet_Users table and find the record where the UserName column contains the sitecore\admin value.

Note the value of the UserId column of this record.

Open the dbo.aspnet_Membership table and find the record where the UserId column contains the saved value in the point above.

In this record change the current value of the Password column to the “qOvF8m8F2IcWMvfOBjJYHmfLABc=” value (this is the hash value of the “b” password).

Prevent Sitecore from logging into the log file

If you have something that Sitecore is logging into the log file and you no longer want it to show up you can ask the log4net class to clear it by updating your web.config accordingly by adding a filter like so within the web.config (this will stop the string “INFO: sitecore/admin has logged in” from being logged into the Sitecore log files.


<log4net>



<appender name=”LogFileAppender” type=”log4net.Appender.SitecoreLogFileAppender, Sitecore.Logging”>



<filter type=”log4net.Filter.StringMatchFilter”>

<stringToMatch value=”INFO: sitecore/admin has logged in” />

<acceptOnMatch value=”false” />

</filter>



</appender>



</log4net>