WordPress.org

Ready to get started?Download WordPress

Forums

Use of Gravatars external? (1 post)

  1. Jaja..
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags