2004-10-09, 02:39 AM
Hey i have been checking this software and it looks great (better than ipb <_< ) but i was wondering before i decided to install this software is if there was forum integration software for the forum. Thanks
require_once "./path/to/inc/sdk.php";
$mybb = new MyBB;
$mybb->connect();
$user = $mybb->getProfile(1);
print_r($user);
Quote:hmm, seems to work out except that it is all bunched together but I guess that is to be worked on. Keep up tgwhttp://php.net/print_r
Quote:Edit: In test validPassword, getBirthdays, and getForum all display errors.And the errors are...?
Quote:Other than that and a few minor graphical changes major needed, this look really awesome.Its not meant to be graphical in any way, shape or form. It returns MyBB data for processing in other scripts. How the data is to be presented is to be decided by the other scripts.
Chris Boulton Wrote:How come it doesn't show like the sample output then?? Its all bunched togetherQuote:hmm, seems to work out except that it is all bunched together but I guess that is to be worked on. Keep up tgwhttp://php.net/print_r
print_r prints out directly the contents of an array. getProfile returns an array of the fields.
Quote:Array ( [uid] => 1 [username] => Kieran [password] => 384606f16ddf09d4ff650c0bb94b1561 [email] => [postnum] => 0 [avatar] => images/avatars/athlon.gif [usergroup] => 4 [usertitle] => [regdate] => 1097093925 [lastactive] => 1097292124 [lastvisit] => 1097290859 [lastpost] => 1097290453 [website] => [icq] => [aim] => [yahoo] => [msn] => [birthday] => [signature] => [allownotices] => [hideemail] => [emailnotify] => [invisible] => [receivepms] => [pmpopup] => [remember] => [threadmode] => [showsigs] => [showavatars] => [showquickreply] => [ppp] => 0 [tpp] => 0 [daysprune] => 0 [dateformat] => [timeformat] => [timezone] => [dst] => [buddylist] => [ignorelist] => [style] => 0 [away] => no [awaydate] => 0 [returndate] => [awayreason] => [pmfolders] => 1**Inbox$%%$2**Sent Items$%%$3**Drafts$%%$4**Trash Can [notepad] => [rating] => [referrer] => 0 [reputation] => 0 [regip] => [language] => [timeonline] => 6972 [showcodebuttons] => 1 [ufid] => 1 [fid1] => New Zealand [fid2] => [fid3] => Undisclosed [fid4] => Athlon Rulz ) 1
Quote:getForumQuote:Edit: In test validPassword, getBirthdays, and getForum all display errors.And the errors are...?
Quote:Ah ok then.Quote:Other than that and a few minor graphical changes major needed, this look really awesome.Its not meant to be graphical in any way, shape or form. It returns MyBB data for processing in other scripts. How the data is to be presented is to be decided by the other scripts.
Quote:How come it doesn't show like the sample output then?? Its all bunched togetherView the page source. It does this because print_r inserts new lines, not <br />'s in HTML.
Quote:validPasswordThats an error on your behalf. You called it wrong..
Warning: Missing argument 3 for validpassword() in C:\wampp2\htdocs\Forum\inc\sdk.php on line 66