Ready to get started?Download WordPress


Use of Gravatars external? (1 post)

  1. Jaja..
    Posted 2 years 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">
          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?

Topic Closed

This topic has been closed to new replies.

About this Topic