MyBB Community Forums

Full Version: Portal Question [Solved]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to make the portal the index page for a site so when someone enters in site.com it goes to the portal without a redirect. I want it for my main site page, but I have to leave the forums in a different directory like below

index.html(portal.php)
-----forum
--------directories

I tried this and can get most of it to work but there is no colors, like the template or .css is missing. Any help, this software is gonna rule IPB
yeah, just change the names around (index to portal, and portal to index). That should work.
I don't think u followed along

/home/user/public_html/index.php <--- should be portal

/home/user/public_html/forum/index.php <--- should be forum

If I take the portal.php and rename it to index.html and move it to the public_html directory it displays but like I said it is missing the colors and format like the .css or template isn't being found. See Screenshot:
http://kjsservices.com/snapshot9.jpg

If I leave the portal in the original spot it works fine so right now I just have a redirect pointing to it, but I hate to do that.
ok, move portal to /home/user/public_html/ and rename it index. Open up index.php. Then change $forumdir = "./"; to $forumdir = "./forum/";

I think that might work. You might have to go other things like:

require "global.php";
require "./inc/functions_post.php";

into

require "forum/global.php";
require "forum/inc/functions_post.php";
Thanks for the help btw

I did all that and still get the same thing - it's like it just can't find the path to the .css or template, not sure which one it needs

http://kjsservices.com/index.php

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

// end editing

if(!chdir($forumdir))
{
	die("\$forumdir is invalid!");
}
require "tech/global.php";
require "tech/inc/functions_post.php";

tried the $forumdir = "./tech/"; also - no difference
<!-- start: headerinclude -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="general.js"></script>
<link rel="stylesheet" type="text/css" href="css.php?theme=2" />


<!-- end: headerinclude --><!-- start: headerinclude -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="general.js"></script>
<link rel="stylesheet" type="text/css" href="css.php?theme=2" />


<!-- end: headerinclude -->
I looked at the source code of the index page from the browser and noticed the above code.

href="css.php?theme=2" <--- thinking that needs to be different, not sure what file directs that path tho
In the headerinclude template, add $settings[bburl]/ before the css.php part and it should display it Wink
OMG thanks Chris - super job!
k776 Wrote:yeah, just change the names around (index to portal, and portal to index). That should work.

Allright..
After I do this, then how do I change the links on the site? Home still leads to portal.php and FOrum still leads to index.php Sad

Sorry.. I know nothing about php..
I assume your talking about the Top Links Go to - Admin Control Panel --> Under Templates - Modify Templates than Expand Default Templates than scroll down to
toplinks
toplinks_admin
toplinks_member

and change your links