MyBB Community Forums

Full Version: Portal.php as index?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok,
I already saw the thread on making portal.php into index.php
My issue is a little different.
I installed another board ( have a few free hosts incase I need a backup ) into the root.So what I want to do is have www.mysite.com bring up www.mysite.com/portal.php but not list it as that. Make sense?
See, I cant do what was said in the one thread because I already have an index.php there which is for the forum, so cant do a redirect thing.

Is there any way to have portal.php be the first thing you see when going to www.mysite.com ?

Sorry if this is in the wrong area Sad
This is what you could do.

Connect to your ftp client.
rename "index.php" to "index2.php"
rename "portal.php" to "index.php"
(in that order)

Edit all three "toplinks" templates
change "$settings[bburl]/index.php" to "$settings[bburl]/index1.php

I used that method on mine to test it out
http://harmor.zeeblo.com/mybb/
I will try that, thank you!
Also open global.php

Find
$navbits[0]['url'] = "$settings[bburl]/index.php";

Replace with
$navbits[0]['url'] = "$settings[bburl]/index1.php";

save and upload

This is for the nav bar. It changes the link on the far left to "index1.php"
Got it working, thanks!
I'm Glad you got it working.

If you're having any conflicts then ask and I'll try to find a solution
Thanks for the offer.Im finding this software easy to mess with after a few tuts.Very nice to be able to edit so much to add to your likings.
I agree smr.

I find that coding for MyBB is very easy.
There's no complicated functions or classes like IPB
harmor Wrote:I agree smr.

I find that coding for MyBB is very easy.
There's no complicated functions or classes like IPB

That might be different in MyBB 1.0 Smile
Actually, harmor, over time you will come to appreciate functions and classes. If you need any help with those, just post a message at these forums and I'm sure someone will be able to give you a hand.