I just checked the Gravatar plugin, and I don't see any place it loads images from the Serendipity directory. I see support for Gravatar and favicons from websites, but that's it.
That said, if you find the end of function pickAvatar(), around line 264, where it says
Code: Select all
} elseif ($use_fallback) {
$this->pickAvatar($othertype, $eventData, $cache, false);
}
and change it to
Code: Select all
} elseif ($use_fallback) {
if (serendipity_getTemplateFile($eventData['author']) === false) {
$this->pickAvatar($othertype, $eventData, $cache, false);
} else {
// Local image was found! Add to comment
$eventData['comment'] = '<img src="' . serendipity_getTemplateFile($eventData['author']) . class="favatar" title="Favatar" style="float: right; margin: 2px" />' . $eventData['comment'];
}
}
That should at least allow you to use local images. It doesn't give users a way to upload them; I'm afraid until someone decides to overhaul the plugin, you'll have to do that manually.