MyBB Community Forums

Full Version: off site portal.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to get a a portal to show in a directory out side of the portal, but I can't figure out how to do this. I want the portal in site.com/dir/ while the forum would be in site.com/forum/. Anyone know how to do this?
You can't unless you move your forum to your main directory and rename it to index, editing the file where it says portal.php to index.php then doing the same with the forums, rename it to forums.php and so forth.
I've done this. My whole site is a mybb forum with plugins, works great!
Well, ive modified my main portal to work with the forum in its own directory, but ive never tried working with making a modified portal in a separate directory. The main reason I want to figure out how to do this is to get the forum theme on a wiki I coded. The main part that needs editing to get it to work is this part:
// set the path to your forums directory here (without trailing slash)
$forumdir = MYBB_ROOT."forum/";

// end editing

$change_dir = MYBB_ROOT."forum/";
Well, thats what ive tried so far.
To have the code in a separate forum, it's an edit inside portal.php

// set the path to your forums directory here (without trailing slash)
$forumdir = "./";

// end editing

$change_dir = "./";

Change the $forumdir to the relative path to the forum from where this portal.php file is.
No that didnt work. Again, what im tring to do is get a portal in a different directory than the forums. Such as www.xxxx.com/portal/index.php.
So, I need to change the forum directory variable to point at www.xxxxxxxx.com/forum/
And that's exactly what what I said to do does. I did it as a test. It enables you to use the portal outside of the main forum directory.
But how would I point it to the forum? By doing that, im simply getting a blank screen.
Then you might not be doing it right. What's the actual URL of where your forums are and where you want the portal.php to go??
I just turned on erro reporting and got this:

Warning: require_once(http://lunadb.co.cc/forum/global.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/vol8/byethost33.com/b33_3176976/lunadb.co.cc/htdocs/Guilds/index.php on line 39

Fatal error: require_once() [function.require]: Failed opening required 'http://lunadb.co.cc/forum/global.php' (include_path='.') in /home/vol8/byethost33.com/b33_3176976/lunadb.co.cc/htdocs/Guilds/index.php on line 39

Hovere, the global.php file does exist.
Probably due to the wrong setting in portal.php. I take it you want the portal file just in the root, so http://lunadb.co.cc/portal.php ?? If so, put portal.php there, and set the path to ./forum