MyBB Community Forums

Full Version: Integrating MyBB into your website. (Login Form)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
try to change:

chdir('D:/xampp/htdocs/drupal/forum'); // path to MyBB
define("IN_MYBB", 1);
require './global.php';

into:

$tempdb = $db;
unset($db);
chdir('D:/xampp/htdocs/drupal/forum'); // path to MyBB
define("IN_MYBB", 1);
require './global.php';
$mybbdb = $db;
unset($db);
$db = $tempdb;
Hm no, still the same warning.

Quote:Fatal error: Call to a member function simple_select() on a non-object in D:\xampp\htdocs\drupal\forum\inc\class_datacache.php on line 79

Thanks
Why after i did all this work, into main site i am still logged out, but in forums i am logged in.
your forum is in an subdomain and/or your cookie settings are not working as you want
My cookie settings are right. Everything in forum works right. I have it in a subfolder.
But it doesn't seen me as logged in...
WOW, I have a lot to learn about this stuff.... Can anyone recomend a class that I can take to learn more about HTML and PHP??? I managed to get a webstie up but I still have a ton to learn.... even online tutorials could help... Thank you
(2009-06-17, 06:33 PM)Savoy Wrote: [ -> ]My cookie settings are right. Everything in forum works right. I have it in a subfolder.
But it doesn't seen me as logged in...

remove by the cookie settings the folder change it to /
(2009-05-28, 08:51 PM)FL4PJ4CK Wrote: [ -> ]Hm no, still the same warning.

Quote:Fatal error: Call to a member function simple_select() on a non-object in D:\xampp\htdocs\drupal\forum\inc\class_datacache.php on line 79

Thanks

i use mybb and drupal for my main portal too, and i'm just pulling the latest topics on forum from its rss with the 'aggregator' tool in drupal and getting the same problem when i try to run cron manually from drupal admin settings:

Fatal error: Call to a member function simple_select() on a non-object in /home/user/forums/inc/class_datacache.php on line 79

but cron seems to runs normally in background at this action, cos the feed are still getting updated.

of course, i'm getting this Fatal error too when i try to integrate the login as the original post suggested.

nor the login in drupal or mybb has been affected when this happens

any help would be appreciated
thanks in advance

edit: i'm updating from 1407 to 1408 right now
update: as expected, is the same with mybb-1408
I have a simple problem.
No matter if I'm logged in or out on the forum, it always seems to show the form. I've done everything perfectly as described.
I'm not a PHP noob and I have tried different approach and fixes to this problem, none seem to work. :s
Sorry, I don't understand, for what it is?
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48