title: How to programatically print a user´s picture? This code won´t work
body: <p>I’ve tried this so far in a Drupal 7 installation:</p>
  
  <pre><code>&lt;?php print $user_picture; ?&gt;
  &lt;?php print $user-&gt;picture ?&gt;
  &lt;?php print $node-&gt;picture ?&gt;
  </code></pre>
  
  <p>None of these snippets will get me the picture printed on the page.</p>
  
  <p>I’m using Devel’s module, so I tried to get it to give me some hints. This is all I get:</p>
  
  <pre><code>picture (String, 1 characters ) 0
  $...-&gt;picture
  </code></pre>
  
  <p>I’ve read that to print a variable you just print or echo it (<code>echo $var1</code> for example). So why won’t this work? I’m adding this snippet inside my <code>node.tpl.php</code> template.</p>
  
  <p>Any thoughts on this? Thank you for your insight!!</p>
  
  <p><strong>Update:</strong> This is the result of <code>var_dump($user_picture)</code>:</p>
  
  <pre><code>string(0) "" 
  </code></pre>