MyBB Community Forums

Full Version: Using your portal as your site home page.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11
Before starting this tutorial please keep in mind two things:
-1. This tutorial does not work for SEO friendly urls.
-2. I do not give support to pro-portal users as I am NOT the plugin developer.

Some of you may ask why I am writing this, well. Merely because this is what I want to do with my forum/site so I will have less work, and more time to work on a few things. Toungue

And I thought I would write it, so others could do it to!

you install your copy or MyBB 1.6.x+(+ = higher) be sure to NOT upload its contents to a "forums, Board, bb" folder.
Just upload it! It might show your forums as the index of your whole site, well we can change that!

This part can be a bit tricky for newbies!
Rename your index.php to forums.php or something else you might like!
Now rename portal.php to index.php and leave it as is!

But what about the login box? WHY doesn't it work?
Well, I found a way to change that!

Open your new index.php file and find
add_breadcrumb($lang->nav_portal, "portal.php");

and replace it with
add_breadcrumb($lang->nav_portal, "index.php");

Next find
redirect("portal.php", $lang->redirect_loggedin);

And replace it with
redirect("index.php", $lang->redirect_loggedin);

And your done! Viola! You can now make full use of the portal!
About the navbar though, I need to find a way to make it go to forums.php
Til I find a fix, I hope you like this tutorial.

EDIT/UPDATE /04/28/09:
Once MyBB 2.0 is released, if need be I will update this tutorial!
I LOVE YOU. I mean, uh


Thanks, haven't tried it yet, but .. Smile
Pretty usefull. Some template edits and we have a nice homepage, but the navigation bar like here in MyBB would be great. And however, it may be easier to install MKPortal.
Nice tutorial anyway.
Nice tutorialSmile
(2009-01-22, 09:11 PM)Lee Merriman Wrote: [ -> ]I LOVE YOU. I mean, uh


Thanks, haven't tried it yet, but .. Smile
>_> Love you too!
(2009-01-22, 10:02 PM)Icy Wrote: [ -> ]Pretty usefull. Some template edits and we have a nice homepage, but the navigation bar like here in MyBB would be great. And however, it may be easier to install MKPortal.
Nice tutorial anyway.
Toungue MKportal just gives you options for plugins that havent been made for MyBB. Toungue
And its not compatible with MyBB 1.4.x, yet.
(2009-01-22, 10:05 PM)TomL Wrote: [ -> ]Nice tutorialSmile
Thank you. Smile
No problem. Glad someone did it so I don't have to:p
Heh, really, I DO think it'll be really good, I just have to upload the files and install it Toungue Anyway, at the time I clicked 'Post Reply' down here, it's got 140 files left.
I want portal.php to be http://www.mysite.domain (and NOT http://www.mysite.domain/portal.php), and leave the forums in http://www.mysite.domain/forum. Is it possible?

Best regards,
Icy
(2009-01-20, 05:22 AM)Beatrix Kiddo Wrote: [ -> ]And your done! Viola! You can now make full use of the portal!
About the navbar though, I need to find a way to make it go to forums.php
Til I find a fix, I hope you like this tutorial.

in global.php
find:
// Add our main parts to the navigation
$navbits = array();
$navbits[0]['name'] = $mybb->settings['bbname_orig'];
$navbits[0]['url'] = $mybb->settings['bburl']."/index.php";
and replace it with:
// Add our main parts to the navigation
$navbits = array();
$navbits[0]['name'] = $mybb->settings['bbname_orig'];
$navbits[0]['url'] = $mybb->settings['bburl']."/forums.php";
is this what you need?
(2009-02-03, 06:24 PM)Icy Wrote: [ -> ]I want portal.php to be http://www.mysite.domain (and NOT http://www.mysite.domain/portal.php), and leave the forums in http://www.mysite.domain/forum. Is it possible?

Best regards,
Icy

It wont be yoursite.domani/portal.php it will be he index.php page of your forums. I made this tutorial so others could use it as a home page.
Pages: 1 2 3 4 5 6 7 8 9 10 11