SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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:

share|improve this answer
Here is an example of how to get the profile picture using the JavaScript client object model:… – 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
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

Your Answer


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.