MyBB Community Forums

Full Version: Need to edit portal.php for this to work?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hey all, I saw a theme that used the portal as the index page.
They renamed portal.php to index.php and the old index.php was named forums.php
And the login box worked too!

I tried in the past to edit the HTML, so I don't think its that.
Although they said thats how it was done, and it was the 1.2 series.
Im asking because I want to convert a JFB theme I made to MyBB.
What exactly are you trying to change/modify here?:s
Ok, lets say I upload MyBB to a sever.
And there is no forum folder, just the contents.

Now I named index.php to forums.php
And I rename portal.php to index.php

I want the portal to act as the site homepage, but the login box will not take them back to the newly made index page, or forums.
I'll have to look into this and get back to you..
(2009-01-18, 06:35 AM)TomL Wrote: [ -> ]I'll have to look into this and get back to you..

Alright! I really hope this works too!
(2009-01-18, 06:34 AM)Clair Wrote: [ -> ]Ok, lets say I upload MyBB to a sever.
And there is no forum folder, just the contents.

Now I named index.php to forums.php
And I rename portal.php to index.php

I want the portal to act as the site homepage, but the login box will not take them back to the newly made index page, or forums.

I use my portal exactly this way Smile

You need to modify
"inc/init.php"

define('INDEX_URL', "index.php");
change to
define('INDEX_URL', "forums.php");

it appears twice, edit both

I didn´t find the old thread with this tip...

Hmm, I´ve read your post again... this will redirect to forums.php, I don´t know if works with a different/folder file if you want that way
Would also like to know if there's an official guide on how to do this.
(2009-01-19, 11:49 PM)Benely Wrote: [ -> ]Would also like to know if there's an official guide on how to do this.
As far as I know, there's not.
(2009-01-19, 11:51 PM)TomL Wrote: [ -> ]
(2009-01-19, 11:49 PM)Benely Wrote: [ -> ]Would also like to know if there's an official guide on how to do this.
As far as I know, there's not.

There ought to be. I mean, I don't know how many people actually use the portal.
But to me, it would make a great home page! I mean, you wouldn't need to integrate a longin box, or news box as extra work, and you can add custom blocks to it, so maybe it should be a tutorial?
Did what DennisTT post work for you? If so, I'll make a tutorial for it.
Pages: 1 2