Как вставить капчу в модуль Acomments ?

Обсуждение CMS Made Simple в России.

Moderators: iturbay, wdwp

Post Reply
proton
Forum Members
Forum Members
Posts: 26
Joined: Wed May 02, 2012 3:21 pm

Как вставить капчу в модуль Acomments ?

Post by proton »

Подскажите как вставить капчу в модуль комментариев Acomments ?
В файле action.default.php (Acomments) вроде прописано, что при существующем модуле Captcha он должен выведен в AComments,но он не появляется .

Code: Select all

// captcha spam protection
if ($spamprotect) {
	if (isset($this->cms->modules['Captcha'])) {
		$captcha = &$this->getModuleInstance('Captcha');
		// $smarty->assign('captcha_title', $this->Lang('captcha_title'));
$smarty->assign('spamprotectimage',$captcha->getCaptcha());                            }
Или это не то.Добавлял еще

Code: Select all

echo $captcha->getCaptcha(); // show the captcha image
но эффекта нет.
tiburon
New Member
New Member
Posts: 7
Joined: Thu Sep 17, 2009 2:09 pm

Re: Как вставить капчу в модуль Acomments ?

Post by tiburon »

Нужно исправит action.default.php модуля AComments

AComments checks if Captcha-Module is enabled with:

if(isset($this->cms->modules['Captcha'])){

this doesn't work anymore in CMSMS Hyacinthe.

bad workaround would be:

if(true || isset($this->cms->modules['Captcha'])){

http://dev.cmsmadesimple.org/bug/view/7560
Post Reply

Return to “Russian - русский”