Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Connector API for vBulletin Details »»
Connector API for vBulletin
Version: 0.02, by Noodles24 Noodles24 is offline
Developer Last Online: Apr 2018 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-28-2006 Last Update: 05-10-2006 Installs: 50
Additional Files Is in Beta Stage  
No support by the author.

What it does
Allows you to access vBulletin functions and data through an API. This is useful if you want to tie vBulletin into a larger site and allow the users to only have 1 login for site/forum.

Allows other applications to edit data in vBulletin

Warning
This API opens up a lot of the internal functions of vBulletin, use it carefully and do not trust any input from the browser. Clean and validate your inputs!

Installation
Unzip the files into your the root of your forum
You may need to change
PHP Code:
/* User changable options */
// change this to your forum path.
$forumroot $_SERVER['DOCUMENT_ROOT']."forum";
/* end of User changable options */ 
in the connector.class.php if your forum doesn't sit in /forum/ on your site.

[0.02]
Added addUser function
Added delUser function
Added getUser function
Added editUser function
Cleaned up code
Added comments
Fixed warnings in 3.5.4
Fixed PHP4 incompatability

[0.01]
Initial quick dirty release.
Includes basic API
Allows login/logout through API

TODO:
Error checking function(s)
Forum listings
Topic/Post listings

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 05-14-2006, 10:52 AM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good job Noodles, looks like it could be handy.

Thanks,
Alan.
Reply With Quote
  #23  
Old 05-15-2006, 05:07 PM
cristianmerz cristianmerz is offline
 
Join Date: Oct 2004
Location: Cordoba, Argentina
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The checkloggedin.php don?t work....the login.php is success but the checkloggedin.php sais "you are not logged in"

With the login.php and logout.php i can login correctly...i check it in the forum home and is fine..but i can?t check the login status with the checkloggedin.php. My VB is 3.5.4...Any idea?
Reply With Quote
  #24  
Old 05-16-2006, 12:47 AM
Noodles24 Noodles24 is offline
 
Join Date: Jul 2005
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you do:

PHP Code:
print_r($_COOKIE); 
Does it return values for bbsessionhash, bblastvisit, bblastactivity etc?
Reply With Quote
  #25  
Old 05-16-2006, 08:24 AM
Cheertobi Cheertobi is offline
 
Join Date: Aug 2004
Location: Germany
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the best way to use this with another app?

Create a new user in the other app right after the registration user addUser?!

Tobi
Reply With Quote
  #26  
Old 05-16-2006, 11:27 AM
cristianmerz cristianmerz is offline
 
Join Date: Oct 2004
Location: Cordoba, Argentina
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Noodles24
If you do:

PHP Code:
print_r($_COOKIE); 
Does it return values for bbsessionhash, bblastvisit, bblastactivity etc?
Yes...

In the checkloggedin.php file...

Array ( [panel] => a6f27d70e8e57c021cdae26984d7f232 [PHPSESSID] => 0a2fd7dc2169e9cd63065e4d31f4xxxx [bblastvisit] => 1147717890 [bblastactivity] => 0 [bbuserid] => 348 [bbpassword] => 2eb747ede87107257bac080bxxxxxxxx [bbsessionhash] => d3cf58a53dd98e657028aa9fb05594be [bbthread_lastview] => 54355fc31b0b2eb1e1f86bd672764313a-1-{i-12114_i-1147718592_} [vbulletin_collapse] => [bbreferrerid] => 0 [bbthreadedmode] => [bbstyleid] => 0 [bblanguageid] => 0 )
Reply With Quote
  #27  
Old 05-17-2006, 10:48 AM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does the site need to be on the same host provider? or would this work with ANY site, so to speak?
Reply With Quote
  #28  
Old 05-17-2006, 11:05 AM
cristianmerz cristianmerz is offline
 
Join Date: Oct 2004
Location: Cordoba, Argentina
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes. My webhosting is www.xmundo.net
Reply With Quote
  #29  
Old 05-19-2006, 03:36 AM
Noodles24 Noodles24 is offline
 
Join Date: Jul 2005
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GrendelKhan{TSU
does the site need to be on the same host provider? or would this work with ANY site, so to speak?
At the moment, yes. It needs to be included directly into the file you want to use the API with.

I may include some SOAP interaction later on.
Reply With Quote
  #30  
Old 05-19-2006, 03:44 AM
Noodles24 Noodles24 is offline
 
Join Date: Jul 2005
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cristianmerz
Yes...

In the checkloggedin.php file...

Array ( [panel] => a6f27d70e8e57c021cdae26984d7f232 [PHPSESSID] => 0a2fd7dc2169e9cd63065e4d31f4xxxx [bblastvisit] => 1147717890 [bblastactivity] => 0 [bbuserid] => 348 [bbpassword] => 2eb747ede87107257bac080bxxxxxxxx [bbsessionhash] => d3cf58a53dd98e657028aa9fb05594be [bbthread_lastview] => 54355fc31b0b2eb1e1f86bd672764313a-1-{i-12114_i-1147718592_} [vbulletin_collapse] => [bbreferrerid] => 0 [bbthreadedmode] => [bbstyleid] => 0 [bblanguageid] => 0 )
I'm unsure why it's not working. It uses the same code as vbulletin to intialize.

Try clearing your cookies and try logging in again
Reply With Quote
  #31  
Old 05-19-2006, 03:48 AM
Noodles24 Noodles24 is offline
 
Join Date: Jul 2005
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cheertobi
What is the best way to use this with another app?

Create a new user in the other app right after the registration user addUser?!

Tobi
You can maintain two user tables if you want. The application I'm building at the moment is just going to use vbulletin as it's user base, then any extra information i need for a user will be stored in a seperate table against their userid
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 08:45 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.04672 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete