mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Hide "Reply" button on comment items for anonymous users if "anon_post" is disabled.
This commit is contained in:
@@ -99,6 +99,8 @@ class comment_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
$pref = e107::getPref();
|
$pref = e107::getPref();
|
||||||
$REPLY = '';
|
$REPLY = '';
|
||||||
|
if(USERID || $pref['anon_post'] == 1)
|
||||||
|
{
|
||||||
if($this->var['comment_lock'] != "1" && $this->var['comment_blocked'] < 1)
|
if($this->var['comment_lock'] != "1" && $this->var['comment_blocked'] < 1)
|
||||||
{
|
{
|
||||||
if ($thisaction == "comment" && $pref['nested_comments'])
|
if ($thisaction == "comment" && $pref['nested_comments'])
|
||||||
@@ -106,6 +108,7 @@ class comment_shortcodes extends e_shortcode
|
|||||||
$REPLY = "<a id='e-comment-reply-".$this->var['comment_id']."' class='e-comment-reply btn btn-default btn-mini btn-xs' data-type='".$this->var['comment_type']."' data-target='".e_HTTP."comment.php' href='".e_HTTP."comment.php?reply.".$thistable.".".$this->var['comment_id'].".".$thisid."'>".COMLAN_326."</a>";
|
$REPLY = "<a id='e-comment-reply-".$this->var['comment_id']."' class='e-comment-reply btn btn-default btn-mini btn-xs' data-type='".$this->var['comment_type']."' data-target='".e_HTTP."comment.php' href='".e_HTTP."comment.php?reply.".$thistable.".".$this->var['comment_id'].".".$thisid."'>".COMLAN_326."</a>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return $REPLY;
|
return $REPLY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user