MyBB Community Forums

Full Version: REQUEST - MyBB SDK
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Could anybody make a MyBB Site Development Kit? Something like IPB SDK? IPB SDK is a library of functions that lets a webmaster easily integrate his/her main website with his/her forums. Functions that fetch threads, forums, user data, session data, and alot more are included in IPB SDK, probably its possible with MyBB too? I mean, the thing that's holdin me back from MyBB is the lack of site integration tools... Until now, I use my IPB 2.0 Trial (which I got legally, BTW) in some of my websites only because it has IPB SDK, which really gives me ease to integrate my forums with my website...

Hope somebody's up to it Smile

To get more info on IPB SDK, see http://ipbsdk.sourceforge.net/
http://community.mybboard.net/showthread...76#pid2976

Might give you the answer you need.
Would it work in MyBB 1.0?
CraKteR Wrote:http://community.mybboard.net/showthread...76#pid2976

Might give you the answer you need.

That post is a year and a half old.
Yeah, it's still for MyBB RC3
Means not necessary that it wont work.
Just trying would be the best way to find it out Smile
I've tried it, and it doesn't work, and I don't think the fault is in my part, I put SDK.PHP in the right place (inc folder) and I edited it a little to get CLASS_DATACACHE.PHP instead of just DATACACHE.PHP... I'm not a good coder, so I don't really know how to fix it... it says:

Quote:Notice: Undefined property: MyBB::$config in H:\wwwroot\PR2.0.1\inc\class_datacache.php on line 19

Fatal error: Call to a member function query() on a non-object in H:\wwwroot\PR2.0.1\inc\class_datacache.php on line 33


To the moderators Smile
I think it would be better to merge this with
http://community.mybboard.net/showthread...6#pid44006
Try the attached file. Its the original SDK file, but modified so that its called MyBBSDK as the new core files use $MyBB. I use it and it works fine with version 1.04.

To use it:
$mybbSDK = new MyBBSDK;
$mybbSDK->connect();
//etc
Thankyou, but there are still flaws Sad

Quote:Notice: Trying to get property of non-object in H:\wwwroot\mybb1\inc\class_datacache.php on line 19

Notice: Trying to get property of non-object in H:\wwwroot\mybb1\inc\db_mysql.php on line 55

Notice: Undefined variable: mybb in H:\wwwroot\mybb1\inc\class_sdk.php on line 49

Notice: Undefined index: debug in H:\wwwroot\mybb1\inc\class_core.php on line 64

Notice: Undefined variable: mybb in H:\wwwroot\mybb1\inc\class_sdk.php on line 50

Notice: Undefined variable: config in H:\wwwroot\mybb1\inc\class_sdk.php on line 23

Warning: MyBBSDK::connect(db_.php) [function.connect]: failed to open stream: No such file or directory in H:\wwwroot\mybb1\inc\class_sdk.php on line 23

Fatal error: MyBBSDK::connect() [function.require]: Failed opening required 'db_.php' (include_path='.;C:\php5\pear') in H:\wwwroot\mybb1\inc\class_sdk.php on line 23