wsp/web Part Deploy Steps

by Altaf Pinjari 28. November 2011 06:07

step 1:  open SP2010 powershell
step 2:  stsadm -o addsolution -filename PATH\ConsultPoint.SharePoint.RibbonVisibility.wsp
step 3:  stsadm -o deploysolution -name ConsultPoint.SharePoint.RibbonVisibility.wsp -allowgacdeployment -immediate

:::::::::::::::::::::::::::::::::::::::::::::::::::::

PS C:\Users\Administrator> stsadm -o addsolution -filename PATH\ConsultPoint.Sha
rePoint.RibbonVisibility.wsp

PATH\ConsultPoint.SharePoint.RibbonVisibility.wsp: The specified file was not fo
und.

PS C:\Users\Administrator> stsadm -o addsolution -filename PATH\ConsultPoint.Sha
rePoint.RibbonVisibility.wsp

PATH\ConsultPoint.SharePoint.RibbonVisibility.wsp: The specified file was not fo
und.

PS C:\Users\Administrator> stsadm -o addsolution -filename c:\ConsultPoint.Share
Point.RibbonVisibility.wsp

Operation completed successfully.

PS C:\Users\Administrator> stsadm -o deploysolution -name ConsultPoint.SharePoin
t.RibbonVisibility.wsp -allowgacdeployment -immediate

Timer job successfully created.

PS C:\Users\Administrator>


:::::::::::::::::::::::::::::::::::::::::::::::::::::


step 4: go to SP2010 centreal admini ->  System Settings  -> Manage farm solutions -> Deploy Solution 


step 5: open site siteaction -> site setting -> Site collection features -> activate feature



Tags: , ,

SharePoint 2010

How can remove or hide "My Newsfeed" and "My profile" link on top ribbon in my site in SharePoint 2010

by Altaf Pinjari 1. November 2011 09:05

Add below script in <head> .... </head> section in master page :

<script type="text/javascript" src="http://demo.haacked.com/hide-anchor/lib/jquery-1.3.2.min.js"></script>

<script type="text/javascript">


$(function() {
 var $spans = $(".menu-horizontal span");
var val = "My Content";
if (val) {
//alert(val);
$spans.filter(':contains(' + val + ')').show();
$spans.filter(':not(:contains(' + val + '))').hide();
} else {
$spans.show();
//alert("m here");
}
});
</script>

Tags: , , , ,

SharePoint 2010

New master page -Style.CSS code with center align layout

by Altaf Pinjari 24. October 2011 09:01

body {
background-color:#FFFFFF;
color:#676767;
font-family:Verdana,Arial,sans-serif;
font-size:8pt;
margin:0;
padding:0;
}

body #s4-bodyContainer{
min-width:760px;
background-color:#F1F0DF;
height:100%;
}

body #s4-ribbonrow{
min-height:43px;
/* [ReplaceColor(themeColor:"Dark2",themeShade:"0.9")] */ background-color:#7c7258;
overflow-y:hidden;
}
.ms-cui-topBar2 {
    border-bottom: 1px solid wheat;
    height: 43px;
}

.ms-siteactionsmenuhover{
/* [ReplaceColor(themeColor:"Dark2-Lighter")] */ border-color:wheat;
/* [RecolorImage(themeColor:"Dark2-Lightest",method:"Filling",includeRectangle:{x:0,y:489,width:1,height:11})] */ background:url("/_layouts/images/bgximg.png") repeat-x -0px -489px;
/* [ReplaceColor(themeColor:"Dark2",themeShade:"0.8")] */ background-color:#7c7258;
}

.ms-welcomeMenu.ms-SpLinkButtonActive{
/* [ReplaceColor(themeColor:"Dark2-Lighter")] */ border-color:wheat;
/* [RecolorImage(themeColor:"Dark2-Lightest",includeRectangle:{x:0,y:489,width:1,height:11})] */ background:url("/_layouts/images/bgximg.png") repeat-x -0px -489px;
/* [ReplaceColor(themeColor:"Dark2",themeShade:"0.8")] */ background-color:#7c7258;
}

.s4-breadcrumb-anchor:hover,.s4-breadcrumb-anchor-open,.ms-qatbutton:hover{
/* [ReplaceColor(themeColor:"Dark2-Lighter")] */ border-color:wheat;
/* [RecolorImage(themeColor:"Dark2-Lightest",includeRectangle:{x:0,y:489,width:1,height:11})] */ background:url("/_layouts/images/bgximg.png") repeat-x -0px -489px;
/* [ReplaceColor(themeColor:"Dark2")] */ background-color:#7c7258;
}

.ms-cui-tt-a:hover{
/* [ReplaceColor(themeColor:"Dark2",themeTint:"0.8")] */ border-color:wheat;
background:url("/_layouts/images/bgximg.png") repeat-x -0px -1000px;
color:#fff !important;
}


.s4-titletext
{   
    display:none;
}
.s4-socialdata-notif
{   
    display:none;
}
.s4-title {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:white none repeat-x scroll 0 -1013px;
margin:0;
min-height:64px;
overflow-x:hidden;
padding:0 0 0 0px;
word-wrap:break-word;
width:1000px;
margin-left:auto;
margin-right:auto;
}

.s4-titlelogo {
padding:12px 10px 12px 0;
text-align:left;
vertical-align:middle;
}
body #s4-topheader2 {

display:block;
width:63%;
min-width:996px;
margin:0px auto;
border-left:1px #aca082 solid;
border-right:1px #aca082 solid;
background-color:#7c7258;

}


.s4-toplinks .s4-tn a.selected {
/* [ReplaceColor(themeColor:"Accent1-Medium")] */ border-color:wheat;
/* [ReplaceColor(themeColor:"Accent1-Lighter")] */ border-bottom-color:wheat;
/* [ReplaceColor(themeColor:"Accent1-Lightest")] */ border-top-color:wheat;
/* [RecolorImage(themeColor:"Light1")] */ background:url("/_layouts/images/selbg.png") repeat-x left top;
/* [ReplaceColor(themeColor:"Accent1",themeTint:"0.35")] */ background-color:#F1F0DF;
/* [ReplaceColor(themeColor:"Accent1",themeShade:"0.20")] */ color:black!important;
padding:4px 5px;
margin:0px 0px;
}

.s4-tn li.static > a:hover
{
/* [ReplaceColor(themeColor:"Accent1")] */ color:white;
text-decoration:underline;
}

.s4-tn li.static > .menu-item{
/* [ReplaceColor(themeColor:"Dark2")] */ color:white;
white-space:nowrap;
border:1px solid transparent;
padding:4px 10px;
display:inline-block;
height:15px;
vertical-align:middle;
}



body #s4-mainarea
{
clear:none;
    width:63%;
    min-width:996px;
    float:none;
    margin-left:auto;
    margin-right:auto;
    padding-top:36px;
    background-color:white;
    border:1px #aca082 solid;
    height:100%;
}
.Fmenu {
font-family:Arial,Helvetica,sans-serif;
font-size:11px;
height:30px;
margin-right:0;
text-transform:uppercase;
width:85%;
margin-left:auto;
margin-right:auto;
text-align:center;
}
.Fmenu ul {
color:#6A72A3;
font-size:11px;
list-style-image:none;
margin:0;
padding:10px 0px 0 0;
}
.Fmenu ul li {
font-family:Arial;
font-size:11px !important;
}

.Fmenu ul li {
list-style-type:none;
}

.Fmenu ul li {
color:#6A72A3;
display:inline;
list-style-type:none;
margin:0;
padding:0;
}
.Fmenu ul li a {
color:#6A72A3 !important;
display:inline;
list-style-type:none;
margin:0;
padding:0;
font-size:11px !important;
font-family:Arial !important;
}
body #s4-leftpanel-content {
background-color:white;
border-color:gray;
border-style:solid;
border-width:0 1px 0 0;
padding:0 0 5px;
}
.s4-ql ul.root ul > li > a {
border-style:solid;
color:#6A72A3;
word-wrap:break-word;
}
.s4-ql ul.root > li > .menu-item, .s4-qlheader, .s4-qlheader:visited {
border-style:solid;
color:#6A72A3;
font-size:1.2em;
word-wrap:break-word;
}
.s4-titlelogo {
padding:0px 2px 0px 2px;
text-align:left;
vertical-align:middle;
background-color:#E1DAC8;
border-top:1px #aca082 solid;
border-left:1px #aca082 solid;
border-right:1px #aca082 solid;
border-bottom:1px #aca082 solid;


}
.s4-ql ul.root > li > .menu-item, .s4-qlheader, .s4-qlheader:visited {
border-style:solid;
color:#6A72A3;
font-size:8pt;
font-weight:normal;
word-wrap:break-word;
}
body #s4-leftpanel {
float:left;
width:180px;
}
.s4-ca {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:#FFFFFF none repeat scroll 0 0;
margin-left:195px;
margin-right:0;
min-height:324px;
}
.s4-specialNavLinkList {
display:none;}
body #s4-leftpanel-content {
background-color:white;
border-color:gray;
border-style:solid;
border-width:0 1px 0 0;
min-height:390px;
padding:0 0 5px;
}
.s4-ql ul > li > a:hover, .s4-ql ul.root > li > a:hover, .s4-qlheader:hover
{
    text-decoration:none;
    color:#e19c57;
}
.signinlink
{
color:#666 !important;
font-family:Tahoma;
text-decoration:none;
}
.ms-titlerowborder {
border-right:0 solid #B8BABD;
}
.flashdiv
{
    width:999px;
    margin-left:auto;
    margin-right:auto;
}
.s4-recentchanges {
border-bottom:1px solid #DBDDDE;
display:none;
margin-bottom:10px;
padding:5px 0 10px;
}
.ms-rteTable-default, .ms-rteTableHeaderFirstCol-default, .ms-rteTableHeaderLastCol-default, .ms-rteTableHeaderOddCol-default, .ms-rteTableHeaderEvenCol-default, .ms-rteTableFirstCol-default, .ms-rteTableLastCol-default, .ms-rteTableOddCol-default, .ms-rteTableEvenCol-default, .ms-rteTableFooterFirstCol-default, .ms-rteTableFooterLastCol-default, .ms-rteTableFooterOddCol-default, .ms-rteTableFooterEvenCol-default, td.ms-rteTable-default, th.ms-rteTable-default, .ms-rtetablecells {
border:0px solid #C4C4C4;
padding:2px;
vertical-align:top;
}
.practice a {
color:#000000 !important;
}
.practice a:hover {
color:#d9802c  !important;
}
.ms-WPBody td {
font-family:verdana,arial,helvetica,sans-serif;
font-size:8pt;
}
.heading_text_22 {
color:#939598;
font-family:verdana,arial,helvetica,sans-serif;
font-size:8pt;
font-size-adjust:none;
font-style:normal;
font-variant:normal;
font-weight:bold;
line-height:15px;
text-align:justify;
text-decoration:none;
text-transform:uppercase;
padding-left:16px;

}

.Heading_text_2 {
-x-system-font:none;
color:#6A72A3;
font-family:verdana,arial,helvetica,sans-serif;
font-size:8pt;
font-size-adjust:none;
font-stretch:normal;
font-style:normal;
font-variant:normal;
font-weight:bold;
line-height:15px;
padding-left:16px;
padding-right:10px;
text-align:justify;
text-decoration:none;
text-transform:uppercase;
vertical-align:top;
white-space:nowrap;
}
.ms-rte-layoutszone-inner {
border:medium none;
margin:0;
overflow:hidden;
padding:0;
word-wrap:break-word;
}
.s4-ql a.selected {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:transparent no-repeat scroll  left  top  none;
border-color:#C6E5F8 #91CDF2 #91CDF2 !important;
border-width:0px !important;
color:#003759 !important;
padding-left:9px !important;
}
.s4-statusbarcontainer
{
    display:none !important;
}
body #pageStatusBar {
border-style:solid;
border-width:1px 0;
    display:none !important;
font-family:verdana;
font-size:1em;
padding:4px 5px 5px 10px;
}
td.heading_text_33 {
color:#000000;
font-family:Arial,Helvetica,sans-serif;
font-size:12px;
font-weight:normal;
line-height:15px;
padding-left:16px;
text-align:justify;
text-decoration:none;
}
.headingtext
{
    border-bottom:2px solid #6A72A3;
}
.ms-rtetablecells a, .ms-rtetablecells1 a{
    color:#003399;
}
.ms-rtetablecells a:hover, .ms-rtetablecells1 a:hover{
    color:#d9802c;
    text-decoration:none;
}
.emaillink a {
color:#D9802C !important;
}
.uemaillink a {
color:#D9802C !important;
}
.uemaillink a:hover {
color:#848284 !important;
}
.dirlink a {
color:#D9802C !important;
}

Tags: , , , ,

SharePoint 2010 | SharePoint Designing

Creating/Modifying share point survey

by Altaf Pinjari 27. September 2011 06:32
Every wonder what’s buzzing through the minds that make up your company? Creating a survey using SharePoint is a quick and easy way to find out.

 

 

 

Creating a SharePoint survey:

 

  1. Click Site Actions on the far right.
  2. A drop down box will appear. Select Create.
  3. Under Tracking, click Survey.
  4. Fill out the form according to your preferences and click Next.
  5. Now it’s time to add questions. Select the question type and settings and click Next Question.
  6. When you’ve entered all questions, click Finish.

 

You’ve finished creating your SharePoint survey, yet there are a few things that you wished you would have added. Wish no more! Here’s how to add questions to an existing survey.

 

Adding Questions to an Existing SharePoint Survey:

 

  1. Navigate to the survey to which you wish to add questions.
  2. Click Settings.
  3. A drop down box will appear, click Survey Settings.
  4. Under Questions, click Add a question.
  5. Select the question type and settings and click Next Question.
  6. When you’ve entered all questions, click Finish.

 

Survey finished and needing a little modification? Change it in only 5 steps.

 

Changing an Existing Survey:

 

  1. Navigate to the survey you wish to modify.
  2. Click Settings.
  3. A drop down box will appear, click Survey Settings.
  4. From this page, select the survey setting you wish to change.
  5. Make the changes and click OK

Tags: , , , ,

SharePoint 2010

SharePoint Document Library !New icon

by Altaf Pinjari 18. September 2011 02:28

Taking a look at the onet.xml (located in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\GLOBAL\XML) I did a search for the new.gif and found it surrounded by an <IfNew> element.  A search on MSDN leads to this document which states:

"Returns TRUE if the item is considered new. Usually, this means that the item was created after midnight the day before. This element renders its contents if the item was created today, that is, after only one day has passed, the number of days being a registry setting for which the default value is 1."

 

I had to read that a few times, but it boils down to two days.

 

To check that, run:

 

stsadm -o getproperty -propertyname days-to-show-new-icon -url "<site_url>" 
 
It returns 2.
If you want to change it, run:
stsadm -o setproperty -pn days-to-show-new-icon -pv <number_of_days> -url "<site_url>"
 
Example :

  1. Click Start, point to All Programs, point to Accessories, and then click Command Prompt. or goto MS Power shell
  2. Type the following commands, and then press ENTER after each command:
1. getproperty
 
PS C:\Users\Administrator> stsadm -o getproperty -propertyname days-to-show-new-
icon -url "
http://192.168.1.40:6855"

<Property Exist="Yes" Value="2" />PS C:\Users\Administrator> stsadm -o setproper
ty -pn days-to-show-new-icon -pv 2 -url "http://inddev16:7576"

Operation completed successfully.
 
2. setproperty
 
PS C:\Users\Administrator> stsadm -o setproperty -pn days-to-show-new-icon -pv 0
 -url "
http://192.168.1.40:6855"

Operation completed successfully.

Tags: , ,

SharePoint 2010

About Ignatiuz

Ignatiuz Technologies is an IT company offering technology solutions for customers keeping partner centric approach with a mantra "Compelling IT Solutions". The company is passionate to latest technologies & innovation. Our consulting led approach make our customers become partners & partner's transformation to global corporations.

Ignatiuz QR Code

Month List

Tag cloud