Recent Topics

1 Jul 31, 2007 10:33    

My b2evolution Version: 1.9.x

Hi,

I use the very nice plugin "Turing test" to avoid spam, but how do I disable it in the backoffice ?

If i want to make a comment in the backoffice, I can't, because there is no textbox for the turing test, so it will not let me post.

Any help would be nice.

Edb ?

2 Jul 31, 2007 10:38

Find this bit of the plugin :

/**
 * Reject the comment if the answer is not correct
 */
function BeforeCommentFormInsert( & $params ) {
	if( ! empty($params['is_preview']) ) {

and change it to look like :

/**
 * Reject the comment if the answer is not correct
 */
function BeforeCommentFormInsert( & $params ) {
global $is_admin_page;
	if( ! empty($params['is_preview']) || $is_admin_page ) {

¥

3 Aug 01, 2007 18:13

Thanks for your tip.

But it did not work for me, no difference, it's still checks for the correct answer, and in admin there is nowhere to type the answer.

4 Aug 01, 2007 19:49

ohhh yeah, htsrv isn't an admin page :p

change the code to :

/**
 * Reject the comment if the answer is not correct
 */
function BeforeCommentFormInsert( & $params ) {
    if( ! empty($params['is_preview']) || $is_logged_in() ) { 

and see if that works.

¥

5 Aug 06, 2007 17:26

I will give this a shot because it pisses me off that I can't get past my own plugin if I want to comment from the back office.


Form is loading...