Showing posts with label deploy solution. Show all posts
Showing posts with label deploy solution. Show all posts

Monday, June 4, 2012

Adding a Hit counter Webpart in Sharepoint 2010

As I was working On hit counter for Sharepoint 2007 I also wanted to check if there is anything available for Sharepoiunt 2010 .

And Yes There is a Webpart available on Codeplex which works without any issues .

Before adding the webpart to the page. First create a Custom List, name it as Statistics also create three columns in Statistics list as below:

1.Url    -                    Multiple lines of text
2.Date -                    Single line of text
3.Username -            Single line of text

Give the Contribute – Can view, add, update, and delete permissions for the Visitor and Viewers for the Statistics list, so that visitor/viewers visits also recorded in the list.

To give permissions

1.Go to Statistics list, Settings > List Settings
2.Under Permissions and Management click on Permissions for this list
3.Select Visitors checkbox then click on Actions > Edit User Permissions then select Contribute – Can view, add, update, and delete
4.Click Ok

To know the hit count for all pages in site, you have to place the webpart in master page, so that the webpart code runs on every page where the visitor go and makes the unique entry in Statistics list

Download the Web part from the Below Link
http://hitcounter.codeplex.com/releases/view/35682

After You download the Solution Add the Solution to the Farm using the stsadm command

stsadm -o addsolution -filename HitCounter.wsp

to better understand

stsadm -o addsolution
   -filename <solution file name>
   [-lcid] <language>

Then go to the SharePoint Central Admin => Operations > Solution Management to deploy the solution.
After that go to the Site Collection Features where the solution is deployed and activate the feature HitCounter. Now, the Hit Counter web Part will be available for the users.

You can also deploy the solution using the Command prompt

 stsadm -o deploysolution -filename HitCounter.wsp

Syntax

stsadm -o deploysolution
   -name <solution name>
   [-url] <virtual server URL>
   [-allcontenturls]
   [-time] <time to deploy>
   [-immediate]
   [-local]
   [-allowgacdeployment]
   [-allowcaspolicies]
   [-lcid] <language>
   [-force]

 

Users cannot see the checked out files in the folder/ library

I Came across a Issue today wherein the user opened a ticket for the below issue Issue : Users cannot see the checked out files in the fo...