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-23-2006, 04:24 PM
denniss denniss is offline
 
Join Date: Aug 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default vB easy to integrate with - not!

I've asked a few vB integration related questions - how do I create a vB user, change their password, log into vB all from my own custom developed php application that I want vB to be a 'seamless' part of.

I only ever got a response to how to create a user, and I've got that working, thank you.

I appreciate that vBulletin probably wasn't designed to be easy to integrate with. It wants to do everything itself.

However, as a product that we paid money for, I am shocked at the lack of documentation and answers on the forums about integration issues. I see other people asking integration questions and I see precious few answers.

I know other people are grappling over these same issues.

For instance, I want to do something like this:

$vbuser =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY);
$vbuser->set_existing($vbulletin->userinfo);

and then do something with the object...change password, whatever.

I know I have to include some files -

require_once '/usr/local/apache/htdocs/forum/includes/class_dm.php';
require_once '/usr/local/apache/htdocs/forum/global.php';

But I am running into two different problems:

First, if I try to put this code in a function "things break". I suspect this is a global var issue. What global $vars do I need to list in the function? Is this documented somewhere?

Second, I am having problems with the vB calls stomping on my existing database connections. How can I avoid this? Is this documented somewhere?

I am desperately trying to get password change working so that I can keep my custom built application's password and vBulletin's password in sync. I am now at the point where I am looking at the vBulletin tables and seeing if I can figure out how to change users passwords with sql.

I don't like dropping to this level. I'd rather be at an API level, but the apparent lack of documentation is forcing me down this path.

Is there anyone who can help me out?
Reply With Quote
  #2  
Old 08-23-2006, 05:47 PM
minorgod's Avatar
minorgod minorgod is offline
 
Join Date: Aug 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you check these threads for documentation?...

API Basics: https://vborg.vbsupport.ru/showthread.php?t=98047
API Documentation: http://members.vbulletin.com/api/

These have helped me a bit, but I could still use a decent list of the hooks and good descriptions of where/when they are called and what variables are available when they are called.
Reply With Quote
  #3  
Old 08-23-2006, 10:38 PM
denniss denniss is offline
 
Join Date: Aug 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Minor God for pointing to those resources.

For some reason I can't log into the API page with my customer number & password. I don't know what is up with that.

If I do some things like this:

$vbuser =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY);
$vbuser->set_existing($vbulletin->userinfo);
$vbuser->set('password', $newpw);
$vbuser->save();

do I then need to dispose of $vbuser?

Dennis S
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 03:38 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.03579 seconds
  • Memory Usage 2,178KB
  • 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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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