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
^ hello pavemen
Thank you so much.. Now i can see the location if someone browsing the forum index (forum.php) in online list.

Have a nice day.
If i change portal.php to index.php then what will happen to portal templates in the AdminCP?
Do i have to edit anything there to edit portal template codes or it shall work as it is?
(2010-04-15, 06:18 AM)zas Wrote: [ -> ]If i change portal.php to index.php then what will happen to portal templates in the AdminCP?
Do i have to edit anything there to edit portal template codes or it shall work as it is?

1. There wont be any changes in the templates.
2. It should work as is.
WOW! It's working great!
Thank you Beatrix for this great post.
Here is my site http://www.bdplay.com
But my site has game section and after renaming the portal, no game scores can be saved, it redirects to portal...
(2010-04-18, 11:46 AM)zas Wrote: [ -> ]WOW! It's working great!
Thank you Beatrix for this great post.
Here is my site http://www.bdplay.com
But my site has game section and after renaming the portal, no game scores can be saved, it redirects to portal...
Actually it works fine for me, I was able to save a game score of mine.
Is this something your users are having a problem with?

What browser are you using?
Actually game section has an option to support ibp arcade games.
And most of the games in my site are ibparcade games.

These games send score to this address:
index.php?act=Arcade&do=newscore

So if i rename portal.php to index.php, this can not handle the game score.

Well I found the solution in gamesection.org community. The solution provided by Paretje, the creator of game section plugin.

According to his solution,

1. First Open inc/plugins/games.php

2. Then find:
$plugins->add_hook("index_start", "games_index");

3. Replace with:
$plugins->add_hook("portal_start", "games_index");

Problem SOLVED! and Thanks Beatrix for visiting my site. Smile
From post # 1,

Quote: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!

Where do I need to go to make the changes?
(2010-05-02, 11:39 PM)Sunsettommy Wrote: [ -> ]From post # 1,

Quote: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!

Where do I need to go to make the changes?
Did you return the first post fully?
???

I fail to understand what you are referring to.

I have not yet done anything about your first post method to make the Portal the front page on the forum.

The problem is that I am the one who is computer illiterate and thus need help for me to get it.

Sorry for being dense.

Undecided
(2009-01-20, 05:22 AM)Beatrix Kiddo Wrote: [ -> ]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.4.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 1.6 and 2.0 are released, if need be I will update this tutorial!

I guess that I go to the ACP and look around to find where I can make the changes as described in the above?

My forum has been running since last summer,thus it is not new.It was Converted from SMF by someone else.Thus I have no idea where to go to make the changes as shown by Beatrix.

I do wonder why there is so much difficulty in getting the myBB portal attached as the front page of the forum.In SMF it is EASY,as the path is already built in.

I downloaded the SMF tinyPortal and then from the ACP of the portal clicked on the homepage button and there it was.

Do not worry,I like myBB far better than SMF and phpBB2 and 3 I have been administrator of.

Smile
I think I now understand what this is about.

Quote: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!

I go to the cPANEL> to Legacy File manager> to Forums> click on index.php. then rename the file to forums.php.

Then I go to portal.php click on it and then rename the file to index.php.

After that I go to the NEW index.php (was portal.php) file to make the next changes as shown below:

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

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

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

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

Did I get it correctly?
Pages: 1 2 3 4 5 6 7 8 9 10 11