vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   register.php editing!! (https://vborg.vbsupport.ru/showthread.php?t=208461)

moon_spell 03-15-2009 10:11 PM

register.php editing!!
 
hello

i would like to know where can i place this code in register.php to wokd :

Code:

$cryptpass=crypt($password);
mysql_query("insert into nuke_users (uname, email, url, user_regdate,
user_icq, user_aim, user_yim, user_viewemail, pass) values ('$username',
'$email', '$homepage', '$user_regdate', '$icq', '$aim', '$yahoo',
'$showemail', '$cryptpass')");

normaly it should be here but it could not be found in it :

Code:

.addslashes($testreferrerid['userid'])."','$nosessionhash')");
$userid=$DB_site->insert_id();
$user_regdate = date("M d, Y");

best regards

TigerC10 03-16-2009 03:01 AM

Don't edit the .PHP file. Use a plugin for a modification. When you make the plugin, use the hook location register_addmember_complete.

Here's a list of topics to help you with plugin development:

https://vborg.vbsupport.ru/showthread.php?t=82621
https://vborg.vbsupport.ru/showthread.php?t=82923
https://vborg.vbsupport.ru/showthread.php?t=97331
https://vborg.vbsupport.ru/showthread.php?t=82625
https://vborg.vbsupport.ru/showthread.php?t=137086
https://vborg.vbsupport.ru/showthread.php?t=109998

Dismounted 03-16-2009 04:52 AM

Note that the password is already encrypted at that point, and is not in plaintext.

TigerC10 03-16-2009 05:04 AM

Good point, Dismounted. I forgot about that.

moon_spell 03-16-2009 12:13 PM

well , but i want to add this command to add fully new registerd member into vbulletin and also in nuke users ! at same time do you have any idia ? how to import vb users into nuke too ! i have made the blocks and modules on phpnuke already ! is there any methodes to mix users in deferent databases ?

best regards

TigerC10 03-16-2009 03:29 PM

Well, when "integrating" systems like this... It's generally not a good idea to add one user to both databases. Reason why is because later on down the road your users may want to change their password. So you're better off changing the nuke authentication to use the vB database.

Dismounted 03-17-2009 06:03 AM

Quote:

Originally Posted by TigerC10 (Post 1769709)
Reason why is because later on down the road your users may want to change their password.

Not only this, but you will get other data discrepancies as well (with any alterable data).


All times are GMT. The time now is 05:00 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.01106 seconds
  • Memory Usage 1,725KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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