Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-01-2007, 01:48 AM
consolegaming consolegaming is offline
 
Join Date: Jan 2007
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Registration/Activation Process

Hi, basically we're coding a website to run alongside a vBulletin forum and are using vB for all the user information etc and we're basically trying to come up with our own registration script.

We know how to code with php, html and how to work with databases etc so that's not the issue but I'm simply trying to find out what tables the vB registration script inserts data to at the time of registration and then again at the time of activation so that we can duplicate this effect with our own scripts.

i.e. We're well aware a row gets inserted into the user table and they're usergroupid is the unactivated usergroup. But I am aware there are multiple tables that concern users and obviously want to duplicate the effect properly so as to not screw up any information.

If any help could be given on listing the appropriate steps for both the registration and activation process. I.e. which tables require data inserting to, and any particular fields which may be crucial to the overall process.

Thanks in advance.
Reply With Quote
  #2  
Old 08-01-2007, 06:09 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you're using PHP, simply use the User Datamanager. There should be a tutorial in the articles section.
Reply With Quote
  #3  
Old 08-01-2007, 09:35 PM
consolegaming consolegaming is offline
 
Join Date: Jan 2007
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From what I've looked into the solution you suggested I would need to include global.php for it to work. Which would mean if I use that in my header on the site then the site will be inaccessible whenever someone receives a temporary suspension which is unacceptable really. Correct me if I'm wrong on the above but from the testing I've done using global.php makes the pages you use it on unaccessible if the forum is closed or as I said above even if the person is temporarily suspended.

Except for permanent bans I'd like to keep our site and forum banning systems separate. If there's a way to do what you suggested without global.php then feel free to suggest but as far as I know there isn't which was the main reason I was asking about the steps that are taken during the registration/activation processes so that we can best produce them without the limitations of using global.php
Reply With Quote
  #4  
Old 08-02-2007, 06:24 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why don't you just take a look at how the register process works in register.php?
Reply With Quote
  #5  
Old 08-02-2007, 02:06 PM
consolegaming consolegaming is offline
 
Join Date: Jan 2007
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not exactly the easiest of scripts to follow lol. I'll give it a go though, had hoped someone would just know which tables have rows inserted to them though lol.

EDIT:
So far I've found:

user has a row inserted, usergroupid is the unactivated group in my case 3, pass is encrypted as to be expected,

useractivation seems to have a row inserted - though I'm not sure what is done with this table - does the row get removed once the user is activated? does usergroupid store the user group the user is to become once activated? and what is activation id? is that the activation code that gets emailed out or? if so how is that generated as the lengths seem to be various lengths. If it's not the activation code where is it stored.

It looks like userfield and usertextfield also get tables before activation takes place. Do any values in these fields get altered after activation too? I doubt it but thought i'd ask.

EDIT2:

Is there a way through plugin/s to make it avoid the closed forum check/suspended user check for certain urls i.e. anything non forum or would I need to manually alter the php files? and if so would that cause any issues for upgrading the forum in future.
Reply With Quote
  #6  
Old 08-05-2007, 02:17 PM
consolegaming consolegaming is offline
 
Join Date: Jan 2007
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by consolegaming View Post
user has a row inserted, usergroupid is the unactivated group in my case 3, pass is encrypted as to be expected,

useractivation seems to have a row inserted - though I'm not sure what is done with this table - does the row get removed once the user is activated? does usergroupid store the user group the user is to become once activated? and what is activation id? is that the activation code that gets emailed out or? if so how is that generated as the lengths seem to be various lengths. If it's not the activation code where is it stored.

It looks like userfield and usertextfield also get tables before activation takes place. Do any values in these fields get altered after activation too? I doubt it but thought i'd ask.
If anyone could answer the questions I pinpointed in that section of my last post it'd be well appreciated and would help me greatly in being able to reproduce the effect that registering and activating has on the user in the db.
Reply With Quote
Reply


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 11:35 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10408 seconds
  • Memory Usage 2,213KB
  • 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_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