vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Plugin help required (https://vborg.vbsupport.ru/showthread.php?t=259208)

dwgebler 02-21-2011 01:29 PM

Plugin help required
 
Hi,
This might be a little bit of a lofty request, but i've just taken over the programming maintenance of a vb4 installation and was hoping someone could save me hours of sifting through code and documentation.

Basically, I want to create a plugin that will check if a user who is logged in and posting a thread has a post count of zero (i.e. they're making their first post) and display a CAPTCHA image as part of the new post form if so. The CAPTCHA code then needs to be validated when the new post form is submitted/processed.

Firstly - there are reasons I need to do the CAPTCHA at this point under these conditions, so please don't suggest I just use the CAPTCHA at registration....there are good reasons, I assure you!

Second, the PHP code that generates a CAPTCHA and validates it at the point of processing the form are not an issue - I don't need help with that. All I need is more information on what hooks I need to attach my plugin(s) to and how I add the relevant HTML to the new post form template.

If anyone is willing to help and needs more information to be able to do so, please ask. Thanks in advance to anyone who can help!

Lynne 02-21-2011 02:41 PM

How about making a new usergroup for those with more than 1 post. Then make the Registered Usergroup require captcha for posting (usergroup manager > edit group > Require Human Verification on Configured Actions > Yes) Then create a promotion to move users to the new usergroup from the Registered Usergroup when they have 1 post.


All times are GMT. The time now is 01:01 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
  • Page Generation 0.01241 seconds
  • Memory Usage 1,705KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete