vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Connector API for vBulletin (https://vborg.vbsupport.ru/showthread.php?t=114338)

Noodles24 04-28-2006 10:00 PM

Connector API for vBulletin
 
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

Connector 04-29-2006 12:51 AM

what can i use this for ?

Noodles24 04-29-2006 01:13 AM

So far you can use it to log users in and out from your webpage, outside of vbulletin

I'm still expanding it to do more though

DeMiNe0 04-29-2006 04:55 AM

Could you post an example of how someone would do that with this hack?

Floris 04-29-2006 10:05 AM

yourstuff.php <-APIplugin-> vBulletin
(login)-------------^------(login)

^-- mental screenshot

Paul M 04-29-2006 10:32 AM

Quote:

Originally Posted by Floris
yourstuff.php <-APIplugin-> vBulletin
(login)-------------^------(login)

Huh ?

Snake 04-29-2006 12:08 PM

I'm not sure what's the use of this. :ermm:

Blaine0002 04-29-2006 12:48 PM

external login for your webpage that ISNT vbulletin.

Noodles24 04-29-2006 10:46 PM

Today I'm adding:

- edit user
- delete user
- add user

To come:
- list forums
- latest posts

Any requests?

akanevsky 04-29-2006 10:52 PM

PHP Code:

public function... 

This will only work with php5. I recommend you make it compatible w/ php4, else it won't prove useful to most users.


All times are GMT. The time now is 07:36 PM.

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.01178 seconds
  • Memory Usage 1,733KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete