Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Do you know of a way to display a message on every page when a user had not changed thier default image in there profile. Once there profile has changed then I no longer wish to show the message.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

There wouldn't be anyway to do this without writing custom code. If going the custom code route you could create a Visual Studio Web Part. Have it check the profile of the user to see if it is blank or null. They display the message in the web part. Here is one way to access the profile picture through code: http://mysharepointwork.blogspot.com/2010/11/sharepoint-2010-show-user-profile.html

share|improve this answer
    
Here is an example of how to get the profile picture using the JavaScript client object model: learningsharepoint.com/2010/07/19/… –  John Chapman Oct 5 '11 at 15:06
    
With the JavaScript route, you could just add a Content Editor Web Part and add your JavaScript code there. Thus making it so you don't need to deploy a custom web part from Visual Studio. –  John Chapman Oct 5 '11 at 15:07
1  
You could use the JavaScript OM reference that John posted above to check to see if it's the default image, and output a alert to the user stating they need to update it. You could push it to the SPNotification API to generate an alert bar and integrate it nicely into SharePoint. –  webdes03 Oct 5 '11 at 18:27
    
Agreed. Using the alert bar would be an excellent choice. You can generate those with JavaScript or C#. –  John Chapman Oct 5 '11 at 21:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.