Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 02-10-2003, 08:07 AM
Chamber's Avatar
Chamber Chamber is offline
 
Join Date: Oct 2001
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Registration - using another ID

I'd like to remove the vBulletin registration altogether, and replace it with a bespoke system.

However, I'd still like to use the vB generated cookie, and other board functionality.

The process I envisage is thus:

Bespoke registration page filled in.
Most data saved in new custom table.
Insert ID (for cross referencing) and essential data passed to vB database - > standard registration confirmation email sent.

What I'd really like to know is:

a: What is the "essential" info that vB needs. I'm thinking username, password and email address - anything else?

b: Since I'm handling the registration through a direct connection with the database, how might I envoke the email confirmation bit?

c: Any obvious flaws in the plan?

Many tia.
Reply With Quote
  #2  
Old 02-10-2003, 12:44 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

a. well you always have to create a userfield row for each user, or you can't edit the user from your acp.

also usergroupid should be specified (2 for registred)
that should be all what is really needed..
Reply With Quote
  #3  
Old 02-10-2003, 01:17 PM
Chamber's Avatar
Chamber Chamber is offline
 
Join Date: Oct 2001
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Xenon
also usergroupid should be specified (2 for registred)
that should be all what is really needed..
And herein lies the problem.
I'd still like to authenticate email addresses ala vB. Should I try and get the vB engine to do this (if so, how?), or should I write a new bit to the script that updates that field by sending a unique link?

I suspect I'd like it to default to "awaiting vailidation", then somehow send the confirmation and update link.

Cheers, had forgotten about usergroup.
Reply With Quote
  #4  
Old 02-10-2003, 02:35 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

usergroupid is 3 when you want to validate em

then you have to rewrite this code a bit:

PHP Code:
  if ($verifyemail) {
        
// make random number
        
mt_srand ((double) microtime() * 1000000);
    
$activateid=mt_rand(0,100000000);

    
//save to DB
        
$DB_site->query("INSERT INTO useractivation VALUES (NULL,'$userid','".time()."','$activateid',0)");

    eval(
"\$message = \"".gettemplate("email_activateaccount",1,0)."\";");
    eval(
"\$subject = \"".gettemplate("emailsubject_activateaccount",1,0)."\";");

    
mail ($email,$subject,$message,"From: \"$bbtitle Mailer\" <$webmasteremail>");

  } 
(from register.php)
Reply With Quote
  #5  
Old 02-10-2003, 02:40 PM
Chamber's Avatar
Chamber Chamber is offline
 
Join Date: Oct 2001
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yay - thanks muchly, I'll work on that and let ya know how it goes
Reply With Quote
  #6  
Old 02-19-2003, 07:44 AM
Chamber's Avatar
Chamber Chamber is offline
 
Join Date: Oct 2001
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've used the above code as a guide and written a new script for this. Still testing at the moment but all seems to be ok. Thanks very much for your help
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:01 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.03977 seconds
  • Memory Usage 2,207KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete