vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   VB_5.0.5 auto registration (https://vborg.vbsupport.ru/showthread.php?t=308262)

sroshan 02-13-2014 07:35 AM

VB_5.0.5 auto registration
 
I have a question about automatic registration of users in vb 5.0.5.
This is what I want. I have a website and users register to our website and we have a link to our forum on the user page. We want to make the user able to be registered with the same user info(which used in our web site) to our forum without being forced to enter the information again. Is there anyway that I can add this to vbulletin code?

Lynne 02-13-2014 05:51 PM

You will need to first write a script that transfers all user login information from your website to the vbulletin database and then you will need to write a bridge so that when a user registers on your site, they are automatically registered on vbulletin.

sroshan 02-14-2014 04:59 PM

Do you mean that just by writing my own php script to insert user info into database I can register a user? Or is it better to use vbulletin scripts to register the user? Could you tell me which vbulletin script is called on user registration?

Lynne 02-14-2014 06:00 PM

If you write your php script correctly, then yes, you would be able to register users. I can't tell you if it is better to use the vbulletin script to register the user or your own script - either way you need to write some php to register the user in both databases. If you look at the top of the register.php script, you will see what other scripts are called on the page.

sroshan 02-14-2014 06:25 PM

And what kind of session variables are used on the page? Is it possible that we can set some session variables so the user entering to the forum from our website does not need to enter login information in our forum?

Lynne 02-14-2014 11:15 PM

I don't know anything about your site, so I can't guess what is there. But, you can read this article to view what user information needs to be entered into the database when you add a user - https://vborg.vbsupport.ru/showthread.php?t=82836


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