vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Create New User [MySQL] (https://vborg.vbsupport.ru/showthread.php?t=273903)

eob 11-12-2011 04:35 PM

Create New User [MySQL]
 
Greetings,

Like most boards, I'm being plagued by good old fashioned spambots, even with the best efforts of a few well chosen hacks, manual approval of new members and ReCaptcha.

Luckily, I run a car site with a couple of thousand cars stored, all of which have multiple pictures, and their colour, so, it's very easy for me to build an Asirra style hack for my site based on "Click On The Red Car To Register" type questioning.

I doubt they'll bother write a custom spambot for just one site :)

However, I also intend building my own user registration page, which just creates a new user in the VBulletin database via good old fashioned MySQL commands.

Is this documented anywhere? Ie. Is it just a matter of creating a single new entry in the users table or is it more complex?

If anyone has any other suggestions, I'm all ears :D

Go team! :)

kh99 11-12-2011 04:43 PM

You can use the user datamanager to handle the details. If I were going to do it I'd probably just use the existing code as a guide. In admincp/user.php there's the code that adds a user when you do it from the admincp (starts around line 285).


All times are GMT. The time now is 03:38 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.01608 seconds
  • Memory Usage 1,708KB
  • 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