1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00

Fixes #2425 Fixes #2281 Fixes #2937 Comment navigation issues.

This commit is contained in:
Cameron
2018-07-28 16:10:23 -07:00
parent e5af746153
commit 64d821a2d1
5 changed files with 40 additions and 20 deletions

View File

@@ -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()

View File

@@ -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);
}