I made the changes to Josc_post, but I ended up reverting them due to bugs. I received a white screen on pages with comments enabled with these changes. There are some differences in the code, I wonder if that is the problem? You say to find the following:
if ($this->_avatar) {
if(JString::strpos($this->_avatar,"gallery/")===false) {
$path = JURI::base()."/images/comprofiler/tn$this->_avatar";
} else {
$path = JURI::base()."/images/comprofiler/$this->_avatar";
}
$html = str_replace('{avatar_picture}', $this->profileLink("<img class='avatar' src='$path' alt='avatar' />", $this->_user_id), $html);
} else if ($this->_gravatar) {
$gravatar_email = $this->_item['email'];
$default = JURI::base().'components/com_comment/assets/images/nophoto.jpg';
$size = 60;
// Prepare the gravatar image
$path = "http://www.gravatar.com/avatar.php?gravatar_id=".md5(strtolower($gravatar_email)).
"&default=".urlencode($default)."&size=".$size;
$html = str_replace('{avatar_picture}', $this->profileLink("<img class='avatar' src='$path' alt='avatar' />", $this->_user_id), $html);
}
but this no longer exists, instead it looks like this:
if ($this->_avatar) {
$display = $this->_avatar;
} else if($this->_gravatar) {
$display = $this->_gravatar;
} else {
$display = 0;
}
$html = JOSC_utils::checkBlock('BLOCK-avatar_picture', $display, $html);
if ($this->_avatar) {
if(JString::strpos($this->_avatar,"gallery/")===false) {
$path = JURI::base()."/images/comprofiler/tn$this->_avatar";
} else {
$path = JURI::base()."/images/comprofiler/$this->_avatar";
}
$html = str_replace('{avatar_picture}', $this->profileLink("<img class='avatar' src='$path' alt='avatar' />", $this->_user_id), $html);
} else if ($this->_gravatar) {
$gravatar_email = $this->_item['email'];
if (file_exists(JPATH_BASE.DS.'components'.DS.'com_comment'.DS.'joscomment'.DS.'templates'.DS.$this->_template_name.DS.'images'.DS.'nophoto.png')) {
$default = "$this->_template_path/$this->_template_name/images/nophoto.png";
} else {
$default = JURI::base().'components/com_comment/assets/images/nophoto.jpg';
}
$size = 64;
// Prepare the gravatar image
$path = "http://www.gravatar.com/avatar.php?gravatar_id=".md5(strtolower($gravatar_email)).
"&default=".urlencode($default)."&size=".$size;
$html = str_replace('{avatar_picture}', $this->profileLink("<img class='avatar' src='$path' alt='avatar' />", $this->_user_id), $html);
}
Also, assuming these changes work, which avatar option do I enable in the back-end? CB? Gravatar? Or should a new one appear?
I will research the myblog stuff some more later tonight, I'll focus on the above issue for now
one at a time
I look forward to the next release!
Sorry for asking so many questions, but if it makes you feel better... I plan to leave a glowing review on JED. You, JFusion, and JReviews have the best support out of all of the extensions I have used; it's really remarkable how great you guys are. I think the better groups understand that answering questions today will save them time tomorrow, if you know what I mean
Thanks!