@KyIIpyM
Гейм-дизайнер

Как добавить капчу к комментариям wp?

В общем есть гугл капча от BWS, однако она не работает если не авторизован юзер. То есть капча не выводтся, но при отправке комментария (если не залогинен) требует чтобы пользовател ввел капчу. Что может быть?
Вот такой код если залогинен:
<div class="gglcptch gglcptch_v2"><div id="gglcptch_recaptcha_1" class="gglcptch_recaptcha"><div><div style="width: 304px; height: 78px;"><iframe src="тут ссылка для гугла" title="виджет reCAPTCHA" width="304" height="78" role="presentation" frameborder="0" scrolling="no" name="undefined"></iframe></div><textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px; height: 40px; border: 1px solid #c1c1c1; margin: 10px 25px; padding: 0px; resize: none;  display: none; "></textarea></div></div>
			<noscript>
				&lt;div style="width: 302px;"&gt;
					&lt;div style="width: 302px; height: 422px; position: relative;"&gt;
						&lt;div style="width: 302px; height: 422px; position: absolute;"&gt;
							&lt;iframe src="ссылка" frameborder="0" scrolling="no" style="width: 302px; height:422px; border-style: none;"&gt;&lt;/iframe&gt;
						&lt;/div&gt;
					&lt;/div&gt;
					&lt;div style="border-style: none; bottom: 12px; left: 25px; margin: 0px; padding: 0px; right: 25px; background: #f9f9f9; border: 1px solid #c1c1c1; border-radius: 3px; height: 60px; width: 300px;"&gt;
						&lt;textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px !important; height: 40px !important; border: 1px solid #c1c1c1 !important; margin: 10px 25px !important; padding: 0px !important; resize: none !important;"&gt;&lt;/textarea&gt;
					&lt;/div&gt;
				&lt;/div&gt;
			</noscript></div>

Вот такой если нет:
<div class="gglcptch gglcptch_v2"><div id="gglcptch_recaptcha_1" class="gglcptch_recaptcha"></div>
			<noscript>
				&lt;div style="width: 302px;"&gt;
					&lt;div style="width: 302px; height: 422px; position: relative;"&gt;
						&lt;div style="width: 302px; height: 422px; position: absolute;"&gt;
							&lt;iframe src="Ссылка" frameborder="0" scrolling="no" style="width: 302px; height:422px; border-style: none;"&gt;&lt;/iframe&gt;
						&lt;/div&gt;
					&lt;/div&gt;
					&lt;div style="border-style: none; bottom: 12px; left: 25px; margin: 0px; padding: 0px; right: 25px; background: #f9f9f9; border: 1px solid #c1c1c1; border-radius: 3px; height: 60px; width: 300px;"&gt;
						&lt;textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px !important; height: 40px !important; border: 1px solid #c1c1c1 !important; margin: 10px 25px !important; padding: 0px !important; resize: none !important;"&gt;&lt;/textarea&gt;
					&lt;/div&gt;
				&lt;/div&gt;
			</noscript></div>
  • Вопрос задан
  • 427 просмотров
Пригласить эксперта
Ответы на вопрос 1
@rubtsoff
попробуй этот плугин https://ru.wordpress.org/plugins/wp-recaptcha/
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы