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)
-   -   NoSpam! for vBulletin 3.5 (https://vborg.vbsupport.ru/showthread.php?t=133937)

antialiasis 12-12-2006 10:00 PM

NoSpam! for vBulletin 3.5
 
This hack, originally for 3.6, has now finally been fully converted to proper 3.5 format, where it will undoubtedly be even more useful than on 3.6, given the stronger default CAPTCHA protection in 3.6.

Note that this was tested on 3.5.7. If you have an older version and it is not working (or, in fact, if you have 3.5.7 and it's not working), please post in the hack thread at vBulletin.org with the details of what is working, what is not working, and what version you do have.

The method by which this version prevents guests from using Quick Search (to save them from getting a confusing "You answered the NoSpam! question incorrectly" message when they attempt it) is considerably less elegant than on 3.6 where it uses the simple $show['quicksearch'] switch which was only added in 3.6, but it works. Any pointers on improving it would be very much appreciated, however.

To quote from the other thread:

Quote:

This simple hack is meant as a replacement for the default CAPTCHA system in vBulletin. There are two main reasons one might want to do this: firstly, new technology is constantly being developed to crack CAPTCHA images and make spam accounts anyway, and secondly, the more secure the CAPTCHA, the more difficult it is for genuine users to tell what the numbers in the image are. There is also the issue of visually impaired users, and the fact that not all servers are capable of generating CAPTCHA images.

So what does this hack do instead? It asks a question. Any question you want. That's the best part: YOU make up the questions, which means that every forum is unique, which means that it is impossible for spambots to be simply programmed to bypass it at all forums with the hack installed. You can make one or many questions - if you make many, the hack will pick one at random when a guest attempts to register, search, post or send mail through the Contact Us form. Their input is compared with your specified answer, and voil?, if they get it right they're pretty much guaranteed to be human. If they get it wrong, they're given an error message.

It doesn't have to be a complicated question. Heck, you can just make it "Please type 'blah' into this box." Or you can go with inserting a simple image with HTML and ask what is shown on the image. Or you can ask them to tell you two plus two. It's up to you. In fact, this can also be used as a means of forcing people to read the rules by asking for a certain password found there, or if your forum focuses on a specialized subject, ask a question concerning the subject that all your genuine users will be able to answer, but a random troll or "CAPTCHA-sweatshop-reader" will be scratching their head over.

It's simple to install, too: just one product to import, and that's it.


VERSION HISTORY:

3.0: Added functionality to allow users to specify which pages should use NoSpam!.
2.0: Extended the NoSpam! functionality to guest posts, guest searches and guest "Contact Us" in addition to registration. First 3.5 release.
1.1: Made template edit in 3.6 automatic (with thanks to Cole2026), added ability to have more than one answer to each question, and made answers case insensitive. To upgrade, I recommend undoing the template edit so you won't have to worry about it anymore (replace $nospamfield in the template register with $imagereg, or if you added $nospamfield above $imagereg, just remove $nospamfield altogether), and then reimport the product through the Admin CP (making sure that Allow Overwrite is set to On).
1.0: Initial 3.6 release.


INSTALLATION:

1. Import product-nospam-35.xml through the Admin CP product manager.
2. Go to your vBulletin options in the Admin CP and select NoSpam! Settings. Once there, turn the system on and input your questions and answers according to the instructions there.

The system should now be functional and running. :)


UNINSTALLATION:

Just uninstall the product through the Admin CP.


SUPPORT:

Full support will be given in this thread. All suggestions are welcome.

Thank you and please click "Mark as Installed" if you like it.

Rich 12-13-2006 08:49 PM

Hello,

Thanks for porting this for everyone still using 3.5. I actually downloaded the 3.6 and used that one without any issues. (I made a few changes to it manually.) I have experienced GREAT results with the spam activity, or lack of, since I incorporated this. I am actually using this in conjunction with the captcha images.

Thanks again!

PoetJA-1975 12-13-2006 11:12 PM

Yes = thank you very much for this! I just posted in the 3.6.x thread about getting this to work with Quick Register: https://vborg.vbsupport.ru/showthrea...quick+register

Any help will be appreciated!

Excellent excellent vB modification - How can I vote for this as Mod of the Month?

Thanx again!

Jacquii.

antialiasis 12-14-2006 01:05 AM

Okay, I figured out how to make it work with QuickRegister.

Edit the plugin "Generate and insert NoSpam! question" on the hook global_start.

FIND the line

Code:

  if ($nospamdo) {
and MOVE this line to just ABOVE this line a little below:

Code:

      eval('$nospamfield = "' . fetch_template('nospam') . '";');
Now SAVE the plugin.

Now go to the Template Manager and edit the quick_register template. In the template, find these lines:

Code:

    <img src="image.php?$session[sessionurl]type=regcheck&amp;imagehash=$imagehash" alt="$vbphrase[registration_image]" width="100" height="30" border="0" />
  </if>

BELOW them, add this:

Code:

  <if condition="$vbulletin->options['nospam_onoff']">
    <br />$nospamquestion <input type="text" class="bginput" name="nospam" value="Answer here" onFocus="value=''" size="20" /> <input type="hidden" name="nospamnumber" value="$nospamnumber" />
  </if>

Now save the template, and you should be good to go.

And voting Mod of the Month is located in the Mod Options below "Mark as Installed". :)

Sooner95 12-14-2006 01:22 AM

awsome, man I need this. Thx.

PoetJA-1975 12-14-2006 02:09 PM

Quote:

Originally Posted by antialiasis (Post 1138176)
Okay, I figured out how to make it work with QuickRegister.

Edit the plugin "Generate and insert NoSpam! question" on the hook global_start.

FIND the line

Code:

  if ($nospamdo) {
and MOVE this line to just ABOVE this line a little below:

Code:

      eval('$nospamfield = "' . fetch_template('nospam') . '";');
Now SAVE the plugin.

Now go to the Template Manager and edit the quick_register template. In the template, find these lines:

Code:

    <img src="image.php?$session[sessionurl]type=regcheck&amp;imagehash=$imagehash" alt="$vbphrase[registration_image]" width="100" height="30" border="0" />
  </if>

BELOW them, add this:

Code:

  <if condition="$vbulletin->options['nospam_onoff']">
    <br />$nospamquestion <input type="text" class="bginput" name="nospam" value="Answer here" onFocus="value=''" size="20" /> <input type="hidden" name="nospamnumber" value="$nospamnumber" />
  </if>

Now save the template, and you should be good to go.

And voting Mod of the Month is located in the Mod Options below "Mark as Installed". :)

EXCELLENT - Thanx very much!
No I have NoSpam! installed on vBadvanced pages!
Much appreciation and respect for this modification = AWESOME!

Jacquii.

PoetJA-1975 12-14-2006 02:10 PM

Quote:

Originally Posted by antialiasis (Post 1138176)
Okay, I figured out how to make it work with QuickRegister.

Edit the plugin "Generate and insert NoSpam! question" on the hook global_start.

FIND the line

Code:

  if ($nospamdo) {
and MOVE this line to just ABOVE this line a little below:

Code:

      eval('$nospamfield = "' . fetch_template('nospam') . '";');
Now SAVE the plugin.

Now go to the Template Manager and edit the quick_register template. In the template, find these lines:

Code:

    <img src="image.php?$session[sessionurl]type=regcheck&amp;imagehash=$imagehash" alt="$vbphrase[registration_image]" width="100" height="30" border="0" />
  </if>

BELOW them, add this:

Code:

  <if condition="$vbulletin->options['nospam_onoff']">
    <br />$nospamquestion <input type="text" class="bginput" name="nospam" value="Answer here" onFocus="value=''" size="20" /> <input type="hidden" name="nospamnumber" value="$nospamnumber" />
  </if>

Now save the template, and you should be good to go.

And voting Mod of the Month is located in the Mod Options below "Mark as Installed". :)

EXCELLENT - Thanx very much!
No I have NoSpam! installed on vBadvanced pages!
Much appreciation and respect for this modification = AWESOME!

Jacquii.
------------
------------

I hear you like to write? https://vborg.vbsupport.ru/
If so click the link and become part of the JPiC Community ;)

khad 12-15-2006 11:34 AM

This was exactly what I wanted. Was getting so tired of spambots registering, even though I had spambuster which got rid of their posts. Now they can't even register in the first place! Good job. This mod also doubles as an idiot filter if they can't answer whatever question you put. :D

Quarterbore 12-16-2006 05:30 PM

This worked so well for my 3.6 forums and I am so thankful to get this for my last 3.5.x board... The darned spammers have a suprise in store for them!

apnet 01-01-2007 02:31 PM

Great stuff!!!

Used on v3.5.4 with no problems. :)


All times are GMT. The time now is 07:12 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.02986 seconds
  • Memory Usage 1,766KB
  • 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
  • (12)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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