diff --git a/comment.php b/comment.php
index 4abcbe6f4..e4906fe7b 100644
--- a/comment.php
+++ b/comment.php
@@ -113,7 +113,7 @@ if(e_AJAX_REQUEST) // TODO improve security
$_SESSION['comment_author_name'] = $clean_authorname;
-
+ $row['comment_pid'] = $pid;
$row['comment_item_id'] = intval($_POST['itemid']);
$row['comment_type'] = e107::getComment()->getCommentType($tp->toDB($_POST['table'],true));
$row['comment_subject'] = $tp->toDB($_POST['subject']);
@@ -135,7 +135,7 @@ if(e_AJAX_REQUEST) // TODO improve security
{
$row['comment_id'] = $newid;
- $width = ($pid) ? 5 : 0;
+ $width = ($pid) ? 1 : 0;
$ret['html'] = "\n\n";
$ret['html'] .= e107::getComment()->render_comment($row,'comments','comment',intval($_POST['itemid']),$width);
diff --git a/e107_core/shortcodes/batch/comment_shortcodes.php b/e107_core/shortcodes/batch/comment_shortcodes.php
index 43e985c35..12890d5c9 100644
--- a/e107_core/shortcodes/batch/comment_shortcodes.php
+++ b/e107_core/shortcodes/batch/comment_shortcodes.php
@@ -74,10 +74,13 @@ class comment_shortcodes extends e_shortcode
function sc_timedate($parm='')
- {
- global $TIMEDATE, $datestamp, $gen;
- $datestamp = $gen->convert_date($this->var['comment_datestamp'], "short");
- return $datestamp;
+ {
+ if($parm == 'relative')
+ {
+ return e107::getDate()->computeLapse($this->var['comment_datestamp'],time(),false, false, 'short');
+ }
+
+ return e107::getDate()->convert_date($this->var['comment_datestamp'], "short");
}
@@ -251,7 +254,7 @@ class comment_shortcodes extends e_shortcode
function sc_comment_input($parm='')
{
$options = array(
- 'class' => 'tbox input comment-input',
+ 'class' => 'tbox input-xxlarge comment-input',
'placeholder' => "Leave a message..." // TODO Lan
);
diff --git a/e107_core/shortcodes/single/user_avatar.php b/e107_core/shortcodes/single/user_avatar.php
index 873844857..b2bef75a9 100644
--- a/e107_core/shortcodes/single/user_avatar.php
+++ b/e107_core/shortcodes/single/user_avatar.php
@@ -42,13 +42,13 @@ function user_avatar_shortcode($parm='')
if (vartrue($image))
{
- $img = (strpos($image,"://")!==false) ? $image : $tp->thumbUrl(e_MEDIA."avatars/".$image,"aw=".$width."&ah=".$height);
+ $img = (strpos($image,"://")!==false) ? $image : $tp->thumbUrl(e_MEDIA."avatars/".$image,"w=".$width."&h=".$height);
$text = "
";
}
else
{
- $img = $tp->thumbUrl(e_IMAGE."generic/blank_avatar.jpg","aw=".$width."&ah=".$height);
+ $img = $tp->thumbUrl(e_IMAGE."generic/blank_avatar.jpg","w=".$width."&h=".$height);
$text = "
";
}
diff --git a/e107_core/templates/comment_template.php b/e107_core/templates/comment_template.php
index a500d4e43..0fdd67221 100644
--- a/e107_core/templates/comment_template.php
+++ b/e107_core/templates/comment_template.php
@@ -129,7 +129,7 @@ $COMMENT_TEMPLATE['ITEM'] = '