• Jaja..

    (@jaja-1)


    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">
          <?php
          if (StringBeginsWith($this->User->Photo, 'http'))
             echo Img($this->User->Photo);
          else
             echo Img(Gdn_Upload::Url(ChangeBasename($this->User->Photo, 'p%s')));
          ?>
       </div>
    <?php
    }

    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.