vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   vB API question (https://vborg.vbsupport.ru/showthread.php?t=267323)

obscureclouddon 07-24-2011 07:59 AM

vB API question
 
First of all I'd like to know if I am using the API for something that it is intended for (or possible nonetheless).
I am trying to utilize the API to log users into my vB installation when they log into another part of the site. That is, I want them to seamlessly be able to navigate an existing wordpress installation (with 15k existing accounts) and the newly installed vB forums.
I have ported the accounts over already. That is not much of a problem (except for the passwords....)

Now I am trying to set it so that when they log into the WP, the API logs them into the vB.

Will this work?

Is there a better way to get the desired result?

Lynne 07-24-2011 04:27 PM

If you include the global.php file, then a session gets started for the user in vbulletin. Are you using the same username/password for both wordpress and vB?

obscureclouddon 07-24-2011 06:34 PM

That seems to be something that will need to be done. I can't decrypt the existing passwords, I was thinking about overwriting the password when they log into wordpress. This way the password will be the same even if they change it in wordpress.

So if I include the global.php, I still need to pass their credentials to vB to get the session to be of a logged in status. Also, I have vB running inside of WP. So if I call vB in WP, it will essentially call WP twice and cause issues.

I guess I just need to know what the best way to log into vB from outside of vB is. Is the API the way to do that?

Lynne 07-24-2011 11:07 PM

I have seen wordpress to vB bridges before. Have you done any sort of search to find one?

obscureclouddon 07-24-2011 11:29 PM

extensive research. Everything that is out there is not compatible with vB 4x

I've got 90% of it done. I just need to know why the API isn't working or another way to set the session.

Lynne 07-25-2011 01:53 AM

Most of the php code for a bridge should be compatible with vb4. Any template code would definitely not be, but the basic php should be fine whether it is vb4 or vb3.

obscureclouddon 07-25-2011 02:15 AM

I will look into it. Thanks.


All times are GMT. The time now is 05:57 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.00998 seconds
  • Memory Usage 1,714KB
  • 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
  • (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