Support » Fixing WordPress » Use of Gravatars external?

  • Just curious,

    I’ve got a WP Website and a Vanilla forum (still building) and now i was asking myself would it be possible to include the Gravatar support on the profile page?

    This is the code of my profile page it’s only the image section.

    <?php if (!defined('APPLICATION')) exit();
    if ($this->User->Photo != '') {
       <div class="Photo">
          if (StringBeginsWith($this->User->Photo, 'http'))
             echo Img($this->User->Photo);
             echo Img(Gdn_Upload::Url(ChangeBasename($this->User->Photo, 'p%s')));

    Maybe an extra IF …. gravatar else .. use the default picture.

    Easy to include here or not?

  • The topic ‘Use of Gravatars external?’ is closed to new replies.