MyBB Community Forums
Using your portal as your site home page. - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: Tutorials (https://community.mybb.com/forum-38.html)
+--- Thread: Using your portal as your site home page. (/thread-43811.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11


Using your portal as your site home page. - Claire - 2009-01-20

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!


RE: Using your portal as your site home page. - Lee Merriman - 2009-01-22

I LOVE YOU. I mean, uh


Thanks, haven't tried it yet, but .. Smile


RE: Using your portal as your site home page. - faviouz - 2009-01-22

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.


RE: Using your portal as your site home page. - x_Stricken_x - 2009-01-22

Nice tutorialSmile


RE: Using your portal as your site home page. - Claire - 2009-01-23

(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


RE: Using your portal as your site home page. - x_Stricken_x - 2009-01-23

No problem. Glad someone did it so I don't have to:p


RE: Using your portal as your site home page. - Lee Merriman - 2009-01-23

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.


RE: Using your portal as your site home page. - faviouz - 2009-02-03

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


RE: Using your portal as your site home page. - bombo - 2009-02-03

(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?


RE: Using your portal as your site home page. - Claire - 2009-02-03

(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.