![]() |
'Contact Us' - Add "image verification" for registered users, too.
Hello.
For 'Contact Us', to add "image verification" for registered users in addition to the existing 'unregistered users/guests', one method is to do the following: in "sendmessage.php", search for 'imagecheck'. You'll find this word exists in 2 places. For each instance, in its associated block of code, modify the following line: FROM: ==== PHP Code:
== PHP Code:
(note: this edit added the code here to vb 3.5.0 from the post in vb 3.0.x section) EDIT: 10/30/05 - Added a text file for downloading code instructions |
Thanks!
|
If you wrote the code changes here, you would get more installs :P
great mod tho, but I cant find a use for my board at the moment. |
Thanks.
I guess I need to find out how to do it...huh :) EDIT: I mean, find out how to make it so it's 'installable'... |
I just added code here and I checked the 'code changes' box. Hope it's correct. Will find out later about how the 'install' counter works for hacks like this where someone edits their own code in the file vs. e.g. counter for downloads.
|
Wouldn't removing the first condition completely achieve the same?
Code:
!$vbulletin->userinfo['userid'] AND |
Yes it would, Oblivian Knight. I tested them both at the time.
The only reason I kept the one above is because I prefer to present to coders, especially, less-experienced coders, the version that maintains some of the original infrastructure. This sometimes makes it easier for those who don't add comments to their code nor comment out the original code and add the revised code before or after it. So if in the future they want to add e.g. a 'new member-type' condition whereby the revised condition no longer applies to 'everyone', they can easily follow the same nomenclature/infrastructure. Just a personal preference, not a requirement. Glad you noticed! |
Hello.
I've added a text file to my original post for download which contains the code modification instructions. ENJOY! |
What does this actually do ??
|
Thanks :)
|
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! |
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']) Code:
if (!$vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == 2 AND ($vbulletin->options['gdversion'] OR $vbulletin->options['magickpath'])) |
Then just change
Code:
if (!$vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == 2 AND ($vbulletin->options['gdversion'] OR $vbulletin->options['magickpath'])) Code:
if (!$vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == 2 AND ($vbulletin->options['gdversion'] OR $vbulletin->options['magickpath'])) Find this in sendmessage.php Code:
if (!$vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == 2 AND $vbulletin->options['regimagetype']) Code:
if (!$vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == 2 AND $vbulletin->options['regimagetype']) |
can this be modded so that uses with less than X number of post have to use the image block to post?
|
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 04:43 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|