Commentary section was set to "no-one" by Elxis CMS default.So how to set the commentary for everyone (include unregister members) by default at every article?
However, when I test by post a comment on an article, then clear cache to show it below that artilce, but it still not appear?Huh Why? How to fix it?
Posting CommentsIf user comments are enabled for a content item and you are allowed to post comments then Elxis will display you a form to add a new comment. If you are a visitor your comment will stay unpublished until the article's author or a site's super administrator publish it. Elxis sends a notification e-mail to the article's author in order to notify him about the new added unpublished comment. Registered users comments are published automatically. HTML is not allowed inside comments. Elxis will strip out any html tags may found in your comment and it will also remove some special characters that could be dangerous. Elxis will also convert URLs to click able links. So, if you wish to add a link in your comment just type the URL.
How to confirm the visitor comments in the administrator back-end?
if (!$auto_publish) { $database->setQuery("SELECT name, email, preflang FROM #__users WHERE id='".$row['created_by']."' AND block='0'"); $recipient = $database->loadRow(); if ($recipient) { $prlang = new prefLang(); $prlang->load($recipient['preflang']); $msg = $prlang->lng->_E_HI.' '.$recipient['name'].",<br />\r\n"; $msg .= sprintf($prlang->lng->_E_NEWCOMBYTITLE, '<b>'.$com->author.'</b>', '<b>'.$row['title'].'</b>')."<br />\r\n"; $msg .= $prlang->lng->_E_COMMENTS.": ".$com->cmessage."<br /><br />\r\n"; $msg .= $prlang->lng->_E_COMSTAYUNPUB."<br />\r\n"; $msg .= 'URL: <a href="'.$redLink.'">'.$redLink."</a><br />\r\n"; $msg .= $prlang->lng->_DATE.": ".mosFormatDate($this->now)."<br /><br />\r\n"; $msg .= '<a href="'.$mainframe->getCfg('live_site').'">'.$mainframe->getCfg('sitename').'</a>'; $msg .= "<br /><br /><br /><br />\r\n"; $msg .= '<small>Generated by '.$_VERSION->PRODUCT.' '.$_VERSION->RELEASE.'.'.$_VERSION->DEV_LEVEL.' ('.$_VERSION->CODENAME.')</small>'; $msg .= "<br />\r\n"; $msg .= '<small>'.$_VERSION->COPYRIGHT.'</small><br />'; mosMail($mainframe->getCfg('mailfrom'), $mainframe->getCfg('fromname'), $recipient['email'], $prlang->lng->_E_NEWCOMNOTIF, $msg, 1); } }
//if (!$auto_publish) { comment out $database->setQuery("SELECT name, email, preflang FROM #__users WHERE id='".$row['created_by']."' AND block='0'"); $recipient = $database->loadRow(); if ($recipient) { $prlang = new prefLang(); $prlang->load($recipient['preflang']); $msg = $prlang->lng->_E_HI.' '.$recipient['name'].",<br />\r\n"; $msg .= sprintf($prlang->lng->_E_NEWCOMBYTITLE, '<b>'.$com->author.'</b>', '<b>'.$row['title'].'</b>')."<br />\r\n"; $msg .= $prlang->lng->_E_COMMENTS.": ".$com->cmessage."<br /><br />\r\n"; if (!$auto_publish) { $msg .= $prlang->lng->_E_COMSTAYUNPUB."<br />\r\n"; } $msg .= 'URL: <a href="'.$redLink.'">'.$redLink."</a><br />\r\n"; $msg .= $prlang->lng->_DATE.": ".mosFormatDate($this->now)."<br /><br />\r\n"; $msg .= '<a href="'.$mainframe->getCfg('live_site').'">'.$mainframe->getCfg('sitename').'</a>'; $msg .= "<br /><br /><br /><br />\r\n"; $msg .= '<small>Generated by '.$_VERSION->PRODUCT.' '.$_VERSION->RELEASE.'.'.$_VERSION->DEV_LEVEL.' ('.$_VERSION->CODENAME.')</small>'; $msg .= "<br />\r\n"; $msg .= '<small>'.$_VERSION->COPYRIGHT.'</small><br />'; mosMail($mainframe->getCfg('mailfrom'), $mainframe->getCfg('fromname'), $recipient['email'], $prlang->lng->_E_NEWCOMNOTIF, $msg, 1); } //} comment out
That is. I would suggest that as a permanent feature (on-off) as it would be much more clever.
QuoteThat is. I would suggest that as a permanent feature (on-off) as it would be much more clever.thats why a called it a quick hack