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
open your ftp to you home dir (where the homepage is) from there you find the dir with the forum files that step must be in the chdir part

set your cookie pad to .homesite.??? not to .forums.homesite.???
This makes no sense.... could you explain a little more...
your subdomain links to a map on the server you need to vind this map on my site the www.sencweb.nl/forum is the same as forum.sencweb.nl so chdir("forum")
i get the following error:

Parse error: syntax error, unexpected T_ECHO in /home2/jessica/public_html/index.php on line 19
give your full code or we can't help you if we don't know what line 19 and line 18 is
echo "Hey, $mybbuser[username].<br>

that is my line 19
try
echo "Hey, ".$mybbuser[username]."<br>";
^ thanks for the help!
Very good tutorial
Thankyou
Hi,

I've tried this now for several hours but still didn't get it to work.
I wanna integrate it in my Drupal-site (on XAMPP at the moment), but I always get this 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

Line 79 in class_datacache.php shows this:

$query = $db->simple_select("datacache", "title,cache");

One of the codes I tried was for example this one:

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


Is it possible, that the variable $db causes the problem? I think Drupal uses a variable named $db, too. I'm not that well informed in PHP, but I think this might be the problem.
If yes, is there a way to change the variable's name?

Thanks a lot (and sorry for my bad English Wink ),

Nico
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