vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Pass details from 3rd party app (https://vborg.vbsupport.ru/showthread.php?t=145727)

storebuilder 04-25-2007 10:12 AM

Pass details from 3rd party app
 
Hi Everybody,
I have a custom built app which records all of my customer details.

As part of the process I want to "verify" all customers who just completed this weekends workshop. This includes automatically creating their user accounts in vbulletin (username and password).

My programmer tells me that this is what I am looking for:

We require a php function written that will allow us to add users from our current database into our forum software (vbulletin v3.6.4).

The function will receive 3 paramaters.
- username
- password
- email
Note: The password is already MD5 encrypted (not sure how vbulletin stores its passwords)

The function should return a true or false boolean value

The connection information to our vbulletin database will use the following constants:

$dbcnx = @mysql_connect(DBFORUM_HOST, DBFORUM_USER, DBFORUM_PASSWORD);
@mysql_select_db(DBFORUM_NAME);

So for your testing just set those same constants to your test db.

In closing the function should be nothing more than the following:

function AddUserToForms($username, $password, $email) {
# connect to db
$dbcnx = @mysql_connect(DBFORUM_HOST, DBFORUM_USER, DBFORUM_PASSWORD);
@mysql_select_db(DBFORUM_NAME);

# do what ever is needed to add user to db

# return true/false
return $result;
}

My guess is that this has done before but where should I look? I'm quite happy to pay someone to get this job done.

Thanks
Tony


All times are GMT. The time now is 05:02 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.01113 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
  • (1)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