vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Using username/password for other script (https://vborg.vbsupport.ru/showthread.php?t=42497)

goregasm 08-19-2002 05:45 PM

Using username/password for other script
 
Hello,

I recently bought another license for a site of mine called goregasm.com . At goregasm.com i use a self written comment-, submission- and registerscript. I'm installing the VBulletin and i want to let the other scripts use the vbulletin usernames/passwords so visitors don't have to sign up seperately for both making comments and writing in the forum.
The problem is using the passwords from VB table user 'cause it's encrypted. Please help me out with this

Thanks!

goregasm 08-20-2002 03:13 AM

Anyone?

Shepski 08-20-2002 12:56 PM

it can be done but you will be sending unencrypted usernames and passwords across the network. i have done it with no problems.

in the register.php script look for :

Code:

mail ($newuseremail,$subject,$message,"From: \"$bbtitle Mailer\" <$webmasteremail>");
round about line 500

then after that but before the } insert the following code to connect to the other database, dump the details into it :

Code:

//Code added to enter details into another database
      mysql_connect("serverip", "dbusername", "dbpassword");
      mysql_select_db("databasename");
      mysql_query("INSERT INTO put_your_table_here VALUES ('', '', '$password', '$username', '$email', '', '', '', '')");
//Code Finish

Obvioulsy, the insert into command needs customising to your table depending how many fields you have.

Hope this is what you needed .


All times are GMT. The time now is 05: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.01467 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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