vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Anti-Spam Options - Is Bot: Registration Time Check (https://vborg.vbsupport.ru/showthread.php?t=135094)

Fred. 08-07-2010 07:18 PM

Quote:

Originally Posted by Boofo (Post 2080551)
It works fine on vb 4 now.

ok, thanks :cool:

Boofo 08-12-2010 10:39 PM

I just noticed something with this mod for vb 4. According to the instructions, we need to add this to the register template:

Code:

<input type="hidden" name="isbot_time1" value="$isbot_time1" />

But for vb 4 it would need to be:

Code:

<input type="hidden" name="isbot_time1" value="{vb:raw isbot_time1}" />

Do we needs to preRegister the isbot_time1 variable in the code for the register template?

RonJH 08-16-2010 10:54 AM

Quote:

Originally Posted by Boofo (Post 2074925)
Try:

Code:

vbmail('yourname@yoursite.com', $isbot_subject, $isbot_message, true);

Replacing yourname@yoursite.com with your own email address.

That worked, thank you.

skyyjet 08-23-2010 10:38 AM

Can we do something so that it shows spammers IP in email it sents to admin?

SnakeV 08-27-2010 04:35 AM

Is possible to modify this plugin to work with newthread pages instead of register?
It should calculate the time between these pages:
newthread.php?do=newthread
newthread.php?do=postthread

I tried changing the plugin hook to newthread_form_start and newthread_form_complete but it don't work, any ideas?

Thanks

aldamon 11-02-2010 04:34 PM

So reading this, is the mod v4.x compatible or not?

Quote:

Originally Posted by Boofo (Post 2082925)
I just noticed something with this mod for vb 4. According to the instructions, we need to add this to the register template:

Code:

<input type="hidden" name="isbot_time1" value="$isbot_time1" />

But for vb 4 it would need to be:

Code:

<input type="hidden" name="isbot_time1" value="{vb:raw isbot_time1}" />

Do we needs to preRegister the isbot_time1 variable in the code for the register template?


vinzphua 12-04-2010 03:09 PM

The mod is NOT compatible with vb4 out of the box, but there is a few simple change you can make to make it work.

1. Install as instructed, except add this line to the register template instead:
PHP Code:

<input type="hidden" name="isbot_time1" value="{vb:raw isbot_time1}" /> 

2. Go to Admin CP -> Plugins & Products -> Plugin Manager.
3. Look for the register_form_complete hook for the isBot product and click Edit.
4. In the Plugin PHP Code text box, add the following line below the only line of code there.
PHP Code:

vB_Template::preRegister('register',array('isbot_time1' => $isbot_time1)); 

5. Click Save and you're done.

Now you just have to wait for a bot to come along to test it.

Boofo 12-04-2010 03:28 PM

Quote:

Originally Posted by vinzphua (Post 2129233)
The mod is NOT compatible with vb4 out of the box, but there is a simple change you can make to make it work.

1. Install as instructed.
2. Go to Admin CP -> Plugins & Products -> Plugin Manager.
3. Look for the register_form_complete hook for the isBot product and click Edit.
4. In the Plugin PHP Code text box, add the following line below the only line of code there.
Code:

vB_Template::preRegister('register',array('isbot_time1' => $isbot_time1));
5. Click Save and you're done.

Now you just have to wait for a bot to come along to test it.

I added it to both hooks as I wasn't sure which one to add it to. It works but I'm not sure which hook is making it work.

You also need to do the value="{vb:raw isbot_time1}" in the template for vb 4.

vinzphua 12-05-2010 01:35 PM

Quote:

Originally Posted by Boofo (Post 2129239)
I added it to both hooks as I wasn't sure which one to add it to. It works but I'm not sure which hook is making it work.

Just the "register_form_complete" is enough.

Quote:

Originally Posted by Boofo (Post 2129239)
You also need to do the value="{vb:raw isbot_time1}" in the template for vb 4.

You're right. I forgot to mention that. I've corrected my post above. Thanks.

Boofo 12-06-2010 02:02 AM

Quote:

Originally Posted by vinzphua (Post 2129605)
Just the "register_form_complete" is enough.

I thought you had to pre-register the variable, to make it viable for that hook, if you used it in another hook, too. The pre-register stuff is still new to me.

Quote:

Originally Posted by vinzphua (Post 2129605)
You're right. I forgot to mention that. I've corrected my post above. Thanks.

No problem. ;)


All times are GMT. The time now is 07:40 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01748 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete