MyBB Tutorials

Homepage using portal.php

Submitted by Aforic, , Thread ID: 28303

Thread Closed
Aforic
Novice
Level:
0
Reputation:
0
Posts:
28
Likes:
0
Credits:
0
22-01-2017, 01:14 PM
#1
I've seen a lot of tutorials and I've came up with doing this...


Open yourportal.phpand find this.

PHP Code:
Code:
//setthepathtoyourforumsdirectoryhere(withouttrailingslash)
$forumdir="./";


change it to this...

PHP Code:
Code:
//setthepathtoyourforumsdirectoryhere(withouttrailingslash)
$forumdir="./forum";


or change it to whatever you want it to be...

Move everything but the portal.php to a subfolder of your choosing. After doing that, make sure the settings in your MyBB adminCP is correct before saving everything there. Should look like this.

[Image: 687474703a2f2f696d6167652e70726e74736372...642e706e67]

and

[Image: 687474703a2f2f696d6167652e70726e74736372...342e706e67]

After saving it.

You should be able to use yourportal.phpas the homepage now with it being on the root directory, then you can change it toindex.php

Users browsing this thread: 1 Guest(s)