Archive for October, 2012

Deploy Custom Webparts in SharePoint 2010

Depending on where you got a custom webpart from, or what it even does, the instructions to install it are not always clear.  In such scenarios, the following 2 commands may be useful to you.

Note:  Run these powershell commands from the location where your webpart is located.

stsadm -o addsolution -filename webpartname.wsp

Update-SPSolution –Identity webpartname.wsp –LiteralPath C:\temp\webpartname.wsp –GACDeployment

WP Ecommerce Duplicate Products


Duplicate products were being displayed when using the productspage shortcode on a Page.
The Cause:
This tends to happen if you use the drag and drop sorting of products while viewing all categories. That’s right, you’ll get duplicate products and sometimes not all of the products will show up too.
While this is annoying it’s quite easy to fix. Go into PHP MyAdmin and the wp_wpsc_product_order table and remove all products with a category id of 0. Refresh your site and it’s fixed.
If there is still an issue after removing the category id of 0, then remove any duplicate product_id rows in the wp_wpsc_product_order table too.
PLEASE NOTE: It’s always a good idea to take a backup before making any alterations.

SharePoint check-in/out prompt for PDF Files

Newer versions of Adobe Reader (X) have a SharePoint Integration feature set.  Part of this integration involves a check in/out prompt when clicking on a PDF file located in a SharePoint Library.

Even if the library itself does not have "check out" enabled, Adobe will prompt the user to either "Open" the file or "Check Out and Open" the file.  

Adobe - SharePoint 2010 Integration

The rub is that even when this feature is NOT enabled in the library itself, if a user clicks "Check out and Open", the file will be checked out in the SharePoint Library!!!  Adobe Reader DOES have an option to Check In, buried in the File menu.  But who is ever going to see or do that?  It's more of an annoyance that anything, at least for my environment, since PDF files typically cannot be edited anyways…

Currently, there is no direct fix for this.  The only option is to disable the Adobe Sharepoint Integration entirely (in the client Registry), which is not very attractive for a number of reasons.


Add this to the list of even more reasons not to like Adobe Reader.  Read more here:

Disappearing SharePoint Scrollbar in Chrome Browser

In some cases, usually after making customization to various code in a SharePoint masterpage, the scrollbar may disappear on SharePoint sites in Chrome.

To fix, look for the following code:

<body scroll="no" onload="if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();" class="v4master">
Replace that line with the following line:
<body scroll="no" class="v4master"> <script type="text/javascript">$(document).ready(function() {if (typeof(_spBodyOnLoadWrapper) != 'undefined') {_spBodyOnLoadWrapper();} });</script>

That's it!

Original Source:

Note:  this appears to disable features in the ribbon. Work in progress issue…

Youtube z-index embed fix

If you are using a Page Viewer to embed a youtube video (via url format:, you may come across an issue where if you also have a picture gallery that pops open in a new window, the youtube video stays in the foreground of the picture gallery. Basically, a z-index issue.

The quickest fix is to simply ammend the youtube URL to include “?wmode=transparent
So from the example URL above, you would change your page view webpart link to be this instead:

Works like a charm.


Return top