From d3ff0d73332bc5e1e5f8b08ae52619eec7a50f95 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 4 Feb 2015 19:04:28 -0800 Subject: [PATCH] Fixes #682 - default avatar on comments. --- e107_core/shortcodes/batch/comment_shortcodes.php | 8 +++++++- e107_core/shortcodes/single/user_avatar.php | 5 ++--- e107_core/templates/comment_template.php | 4 ++-- e107_handlers/comment_class.php | 14 +++++++------- 4 files changed, 18 insertions(+), 13 deletions(-) diff --git a/e107_core/shortcodes/batch/comment_shortcodes.php b/e107_core/shortcodes/batch/comment_shortcodes.php index 12275411b..6c27dcde4 100644 --- a/e107_core/shortcodes/batch/comment_shortcodes.php +++ b/e107_core/shortcodes/batch/comment_shortcodes.php @@ -105,8 +105,14 @@ class comment_shortcodes extends e_shortcode function sc_comment_avatar($parm='') { $tp = e107::getParser(); - $text = $tp->parseTemplate("{USER_AVATAR=".vartrue($this->var['user_image'],USERIMAGE)."}"); + // return $this->var['user_image']; + + // $url = $tp->thumbUrl($this->var['user_image']); + + // $text = $tp->parseTemplate("{USER_AVATAR=".vartrue($this->var['user_image'],USERIMAGE)."}"); + $text = $tp->parseTemplate("{USER_AVATAR=".$this->var['user_id']."}"); + $text = $text .= "