![]() |
'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 :)
|
All times are GMT. The time now is 08:33 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|