mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 19:44:09 +02:00
@@ -162,7 +162,10 @@ class cpage_shortcodes extends e_shortcode
|
||||
{
|
||||
$com = $this->var['comments'];
|
||||
//if($parm && isset($com[$parm])) return $com[$parm];
|
||||
return $com['comment'].$com['comment_form'];
|
||||
|
||||
return e107::getComment()->parseLayout($com['comment'],$com['comment_form'],$com['moderate']);
|
||||
|
||||
// return $com['comment'].$com['moderate'].$com['comment_form'];
|
||||
}
|
||||
|
||||
function sc_cpagenav()
|
||||
|
@@ -764,13 +764,15 @@ function sc_user_email($parm='')
|
||||
|
||||
function sc_profile_comments($parm)
|
||||
{
|
||||
if(e107::getPref('profile_comments'))
|
||||
if(!e107::getPref('profile_comments'))
|
||||
{
|
||||
$ret = e107::getComment()->compose_comment('profile', 'comment', $this->var['user_id'], null, $this->var['user_name'], FALSE,true);
|
||||
|
||||
return e107::getRender()->tablerender($ret['caption'],$ret['comment_form']. $ret['comment'], 'profile_comments', TRUE);
|
||||
return '';
|
||||
}
|
||||
return "";
|
||||
|
||||
return e107::getComment()->compose_comment('profile', 'comment', $this->var['user_id'], null, $this->var['user_name'], false,'html');
|
||||
|
||||
// return e107::getRender()->tablerender($ret['caption'],$ret['comment_form']. $ret['comment'], 'profile_comments', TRUE);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user