View Single Post
  #10  
Old 05-04-2008, 09:04 PM
Siraris Siraris is offline
 
Join Date: May 2008
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, after doing a lot of thinking, I definitely need to integrate the two, let me post my thoughts and maybe someone can help me sort them out and tell me the right direction to go. This is my first time ever using VBulletin as an admin, and it's a bit overwhelming. I hope my post here makes sense, I'm a big discombobulated.

I have a user register on my site, I collect the Username, pass, zipcode, gender, birthday, and that's it. I can then insert that data into the VBulletin forum.user table - although for some reason, I think I am still doing the PW generation incorrectly (I still can't find the salt that VBulletin uses to generate the password, and in the DB it has something like *4e for when I registered) - and insert it into my tblUser database as well.

Is this stupid? Should I just use the VBulletin user database? If I do that, can I just add on my own columns on there, and then replace any reference to my tblUser in my code to the vbulletins user db?

If I do that, and just use the vbulletin user DB, then everything is solved. If a user changes his PW, it is reflected on both my site and the forum without any messing around.

The thing I'm most worried about is messing with VBulletins code and breaking everything, since I don't know how exactly their system is designed, and I am much better at working with code I wrote than other peoples code.

Anyways, if I don't just move all my data over to their DB, and continue to use mine and theirs, it could turn out to be a nightmare, at least in my thinking.

The only other issue there is, when they login on the main site, they will need to be logging in to the messageboard, correct? At that point, it will create the necessary cookies for Vbulletin, and I can also reflect it in my session variables in my login script. Can I have it so that it logs in with my user forum, posts to the message board, logs in, and redirects back to my front page?

If so, that should be everything. Taking into that I am thinking about this as me putting all my data into the VBulletin user table, and using that for both sections, any change of a PW will reflect on both sites, it will register on my site, it will login through VBulletin, create all the necessary cookie data for vbulletin, then go back to my site where I will use the userID in the VBulletin cookie to get the data I need from my site, and complete the login.

Please help!
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01924 seconds
  • Memory Usage 1,763KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (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_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete