Log in

View Full Version : Forum Integration


SilverDragonTears
05-10-2020, 11:20 PM
I'm running Mys 3.1.4 and myBB 1.8.22 and I'm getting the all too familiar failed to create forum account :(

SilverDragonTears
05-10-2020, 11:35 PM
Seems I have it working now with this new code

$query = "INSERT INTO {$mybbprefix}users (uid, username, password, salt, loginkey, email, postnum, threadnum, avatar, avatardimensions, avatartype, usergroup, additionalgroups, displaygroup, usertitle, regdate, lastactive, lastvisit, lastpost, website, icq, skype, google, birthday, birthdayprivacy, signature, allownotices, hideemail, subscriptionmethod, invisible, receivepms, receivefrombuddy, pmnotice, pmnotify, buddyrequestspm, buddyrequestsauto, threadmode, showimages, showvideos, showsigs, showavatars, showquickreply, showredirect, ppp, tpp, daysprune, dateformat, timeformat, timezone, dst, dstcorrection, buddylist, ignorelist, style, away, awaydate, returndate, awayreason, pmfolders, notepad, referrer, referrals, reputation, regip, lastip, language, timeonline, showcodebuttons, totalpms, unreadpms, warningpoints, moderateposts, moderationtime, suspendposting, suspensiontime, suspendsignature, suspendsigtime, coppauser, classicpostbit, loginattempts, usernotes, sourceeditor) VALUES ('', '$username', '$fpass','$salty','$loginkey', '$email', '1', '1', '$avatar', '', '0', '2', '', '0', '', 'time()', 'time()', 'time()', 'time()', '0', '', '', '', '$birthday', 'all', '', '1', '0', '0', '0', '1', '0', '1', '1', '1', '0', '', '1', '1', '1', '1', '1', '1', '0', '0', '0', '', '', '0', '0', '0', '', '', '0', '0', '0', '', '', '1**Inbox$%%$2**Sent Items$%%$3**Drafts$%%$4**Trash Can', '', '0', '0', '0', '$ip', '$ip', '', '0', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '', '0');";

But I'm getting these errors on my Dragon site right after registering.

Warning: Cannot modify header information - headers already sent by (output started at /home4/blackbirdie/public_html/functions/functions_forums.php:1) in /home4/blackbirdie/public_html/functions/functions_forums.php on line 85

Warning: Cannot modify header information - headers already sent by (output started at /home4/blackbirdie/public_html/functions/functions_forums.php:1) in /home4/blackbirdie/public_html/functions/functions_forums.php on line 85

Warning: Cannot modify header information - headers already sent by (output started at /home4/blackbirdie/public_html/functions/functions_forums.php:1) in /home4/blackbirdie/public_html/classes/class_cookies.php on line 85

Warning: Cannot modify header information - headers already sent by (output started at /home4/blackbirdie/public_html/functions/functions_forums.php:1) in /home4/blackbirdie/public_html/classes/class_cookies.php on line 88

Warning: Cannot modify header information - headers already sent by (output started at /home4/blackbirdie/public_html/functions/functions_forums.php:1) in /home4/blackbirdie/public_html/classes/class_cookies.php on line 90

Warning: Cannot modify header information - headers already sent by (output started at /home4/blackbirdie/public_html/functions/functions_forums.php:1) in /home4/blackbirdie/public_html/classes/class_cookies.php on line 92

Warning: Cannot modify header information - headers already sent by (output started at /home4/blackbirdie/public_html/functions/functions_forums.php:1) in /home4/blackbirdie/public_html/functions/functions_forums.php on line 85

Warning: Cannot modify header information - headers already sent by (output started at /home4/blackbirdie/public_html/functions/functions_forums.php:1) in /home4/blackbirdie/public_html/functions/functions_forums.php on line 85

SilverDragonTears
05-10-2020, 11:51 PM
Figured out that issue too. White spaces before and after the <php and ?> So here is the full code in case anyone finds it useful :)

****well I tried posting it and it wouldn't let me.