MyBB Community Forums

Full Version: [Tutorial] Basic Site-Forum Integration
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
Can anyone help?
I have in root my portal (which i want to integrate with mybb) and in /forums/ i have mybb.

I put the
define("IN_MYBB", 1);
// set the path to your forums directory here (without trailing slash)
$forumdir = "/forums";

// end editing

$change_dir = "/forums";

if(!@chdir($forumdir) && !empty($forumdir))
{
	if(@is_dir($forumdir))
	{
		$change_dir = $forumdir;
	}
	else
	{
		die("\$forumdir is invalid!");
	}
}

require_once $change_dir."/global.php";
but when i print the $mybb->user i take:
Array ( [usergroup] => 1 [username] => [uid] => 0 [displaygroup] => 1 [lastvisit] => 1220098510 [ismoderator] => ) 

and of course nothing is working.
is this also possible whit a forum in a http://forum.mysite.com url?
can someone confirm if this works with 1.4? Smile Thanks!
Can someone help me put newest member Today's top poster and Most popular forum into the stats bit,

so making

$user_result = mysql_query("SELECT COUNT(*) as count FROM ".$prfx."users");
$user_count = mysql_fetch_array($user_result);
$user_count = $user_count["count"];

for each one, im not sure how as im new to the mysql query stuff =[
*BUMP*

And other question,

should the login form one you press the login button change to list the change email, avatar ect?

Mine isnt doing this ;[
it just logs the user in and goes straight to the forum
is there a way to make this work with 1.6?

i'm tryin to get it to pull the latests posts.

it doesnt pull the data or render. all i get is "by" x5 .
http://www.mjgz.com/test.php

The database info is correct or else i'd get an error instead. anyone know how to get this to work? Pretty super please?
thanks
GREAT! now somebody makes a tutorial on integrating.

NY insurance agency
Can anyone help me please? it wont render or create the text.
I realize that this is an old thread, but I am new to MyBB, so I have to ask: is this tutorial relevant for MyBB 1.6.8?
Pages: 1 2 3 4 5 6 7