vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   'Contact Us' - Add "image verification" for registered users, too. (https://vborg.vbsupport.ru/showthread.php?t=99235)

incka 07-04-2006 06:52 PM

Hi, I've got a forum running vBulletin v3.0.4 and we've been getting a lot of spam lately. It's been brought to my attention to implement Image Verification into the registration process, but I'm not sure if this code will work with an older version of the software.

Can someone help me? Much appreciated!

snowbird 07-07-2006 12:47 AM

I am using 3.5.4.

In sendmessage.php, instead of finding
Code:

if (!$vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == 2 AND $vbulletin->options['gdversion'])
there is:
Code:

        if (!$vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == 2 AND ($vbulletin->options['gdversion'] OR $vbulletin->options['magickpath']))
What should be done differently w/ 3.5.4? Thanks.

navjotjsingh 12-13-2006 03:22 AM

Then just change
Code:

if (!$vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == 2 AND ($vbulletin->options['gdversion'] OR $vbulletin->options['magickpath']))
to

Code:

if (!$vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == 2 AND ($vbulletin->options['gdversion'] OR $vbulletin->options['magickpath']))
For Versions 3.6.4(not sure whether same is for 3.6.0-3.6.3)
Find this in sendmessage.php
Code:

if (!$vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == 2 AND $vbulletin->options['regimagetype'])
and change to

Code:

if (!$vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == 2 AND $vbulletin->options['regimagetype'])

87GTR 12-24-2006 09:41 AM

can this be modded so that uses with less than X number of post have to use the image block to post?

Chicago_VLNU_4s 02-27-2007 03:25 AM

Installed, but it doesn't show any sign of an image verification when I test it out.

**Nevermind** It works only for guest. Good job, just what I was looking for. I was tired of these damn bots mailing me everyday.


All times are GMT. The time now is 06:59 AM.

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.01032 seconds
  • Memory Usage 1,723KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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