Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
'Contact Us' - Add "image verification" for registered users, too. Details »»
'Contact Us' - Add "image verification" for registered users, too.
Version: 1.00, by timetunnel timetunnel is offline
Developer Last Online: Mar 2007 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-24-2005 Last Update: 10-29-2005 Installs: 8
Code Changes  
No support by the author.

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:
if (!$vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == AND $vbulletin->options['gdversion']) 
TO:
==
PHP Code:
if (!$vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == AND $vbulletin->options['gdversion']) 
Hope this helps.

(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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-25-2005, 11:37 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!
Reply With Quote
  #3  
Old 10-25-2005, 09:10 PM
COBRAws's Avatar
COBRAws COBRAws is offline
 
Join Date: Oct 2002
Location: Buenos Aires
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 10-25-2005, 09:12 PM
timetunnel timetunnel is offline
 
Join Date: Sep 2005
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'...
Reply With Quote
  #5  
Old 10-26-2005, 12:46 AM
timetunnel timetunnel is offline
 
Join Date: Sep 2005
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 10-26-2005, 07:28 AM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wouldn't removing the first condition completely achieve the same?
Code:
!$vbulletin->userinfo['userid'] AND
Reply With Quote
  #7  
Old 10-26-2005, 03:06 PM
timetunnel timetunnel is offline
 
Join Date: Sep 2005
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #8  
Old 10-30-2005, 02:58 AM
timetunnel timetunnel is offline
 
Join Date: Sep 2005
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello.

I've added a text file to my original post for download which contains the code modification instructions.

ENJOY!
Reply With Quote
  #9  
Old 04-09-2006, 06:12 PM
cat4m cat4m is offline
 
Join Date: Mar 2006
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What does this actually do ??
Reply With Quote
  #10  
Old 04-09-2006, 06:22 PM
Roms's Avatar
Roms Roms is offline
 
Join Date: Jun 2004
Location: Witness ProtectionProgram
Posts: 1,841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:28 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07614 seconds
  • Memory Usage 2,286KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete