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
  #12  
Old 04-29-2006, 11:44 PM
Noodles24 Noodles24 is offline
 
Join Date: Jul 2005
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok thanks, I'll look into that
Reply With Quote
  #13  
Old 04-30-2006, 12:02 AM
eXaulz eXaulz is offline
 
Join Date: Oct 2004
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think functions like:

list forums
list posts in x forum
list new posts in either all forums or by id
etc..

should just return an Array. Echo'ing or return'ing a table/pre-desgined design wouldn't really be useful. Returning a fetched_array would be MUCH better.
Reply With Quote
  #14  
Old 05-08-2006, 03:59 PM
[email protected] vbmenu_register("postmenu_969884", true);
Guest
 
Posts: n/a
Default

is it working with 3.54? anyone made it work?

Its returning lots of errors with previous declared constants and such.
Reply With Quote
  #15  
Old 05-08-2006, 08:05 PM
[email protected] vbmenu_register("postmenu_970056", true);
Guest
 
Posts: n/a
Default

Sorry, now i have a full detailed error
Upon configuration and run this script on 3.54 i got the following.

Code:
Notice: Undefined index: HTTP_REFERER in /forum/includes/class_core.php on line 1574
Notice: Undefined index: charset in /connector/connector.class.php on line 54
Notice: Undefined variable: specialtemplates in /connector/connector.class.php on line 65
Notice: Undefined index: url in /forum/includes/class_core.php on line 1992
Notice: Undefined index: HTTP_REFERER in /forum/includes/class_core.php on line 1998
Notice: Constant IPADDRESS already defined in /forum/includes/class_core.php on line 1542
Notice: Constant ALT_IP already defined in /forum/includes/class_core.php on line 1546
Notice: Constant SCRIPTPATH already defined in /forum/includes/class_core.php on line 1550
Notice: Constant SCRIPT already defined in /forum/includes/class_core.php on line 1562
Notice: Constant WOLPATH already defined in /forum/includes/class_core.php on line 1566
Notice: Constant SESSION_IDHASH already defined in /forum/includes/class_core.php on line 1569
Notice: Constant SESSION_HOST already defined in /forum/includes/class_core.php on line 1570
Notice: Constant USER_AGENT already defined in /forum/includes/class_core.php on line 1573
Notice: Undefined index: HTTP_REFERER in /forum/includes/class_core.php on line 1574
Notice: Constant REFERRER already defined in /forum/includes/class_core.php on line 1574
Notice: Undefined variable: show in /connector/connector.class.php on line 121
Notice: Undefined index: HTTPS in /forum/includes/functions.php on line 1517
Notice: Undefined index: HTTPS in /forum/includes/functions.php on line 1517
Notice: Undefined index: membergroupids in /forum/includes/functions.php on line 278
Notice: Undefined index: forumpermissions in /forum/includes/functions.php on line 3272
Notice: Undefined index: 1 in /forum/includes/functions.php on line 3281
Notice: Undefined index: 2 in /forum/includes/functions.php on line 3281
Notice: Undefined index: hasaccessmask in /forum/includes/functions.php on line 3286
Notice: Undefined index: HTTPS in /forum/includes/functions.php on line 1517
Notice: Undefined index: HTTPS in /forum/includes/functions.php on line 1517
Notice: Undefined index: HTTPS in /forum/includes/functions.php on line 1517
Notice: Undefined index: HTTPS in /forum/includes/functions.php on line 1517
Notice: Undefined index: HTTPS in /forum/includes/functions.php on line 1517
Notice: Undefined index: HTTPS in /forum/includes/functions.php on line 1517
Notice: Undefined index: forumpermissions in /forum/includes/functions.php on line 3272
Notice: Undefined index: 1 in /forum/includes/functions.php on line 3281
Notice: Undefined index: 2 in /forum/includes/functions.php on line 3281
Notice: Undefined index: hasaccessmask in /forum/includes/functions.php on line 3286
success
Notice: Use of undefined constant VB_AREA - assumed 'VB_AREA' in /forum/includes/functions.php on line 4414
Notice: Use of undefined constant VB_AREA - assumed 'VB_AREA' in /forum/includes/functions.php on line 4414
Notice: Undefined index: badlocation in /forum/includes/functions.php on line 4421
Notice: Undefined index: badlocation in /forum/includes/functions.php on line 4446
Anyone has a fixed version that works fine on 3.54 ?
Reply With Quote
  #16  
Old 05-11-2006, 08:49 AM
Noodles24 Noodles24 is offline
 
Join Date: Jul 2005
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated to work with 3.5.4 and added user functions.
Reply With Quote
  #17  
Old 05-11-2006, 02:49 PM
[email protected] vbmenu_register("postmenu_972160", true);
Guest
 
Posts: n/a
Default

kewl, thanks
Reply With Quote
  #18  
Old 05-11-2006, 05:59 PM
ronoxQ's Avatar
ronoxQ ronoxQ is offline
 
Join Date: Aug 2005
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you use this to bridge to other programs?
Reply With Quote
  #19  
Old 05-11-2006, 07:20 PM
Noodles24 Noodles24 is offline
 
Join Date: Jul 2005
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ronoxQ
Can you use this to bridge to other programs?
Yes it can be used as a bridge. You could use it sync users between an app and vbulletin, or you can use vbulletin as the user source. What you can't do is use another app as the user source for vbulletin
Reply With Quote
  #20  
Old 05-12-2006, 08:24 PM
cristianmerz cristianmerz is offline
 
Join Date: Oct 2004
Location: Cordoba, Argentina
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How i can use this in a subdomain....example...my forum is in forum.xxx.com y the website is in www.xxx.com...
I can login form the www.xxx.com, and i see it in forum.xxx.com...but if i try to check the status from www.xxx.com, i can?t.
Reply With Quote
  #21  
Old 05-14-2006, 04:41 AM
Noodles24 Noodles24 is offline
 
Join Date: Jul 2005
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You just need to change your cookie settings in vbulletin to cover .xxx.com rather than forum.xxx.com
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 02:54 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.04566 seconds
  • Memory Usage 2,302KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)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
  • (3)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
  • (8)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