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
(2010-05-04, 10:40 PM)Sunsettommy Wrote: [ -> ]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?

Yes, that is how it's done, I would have replied sooner but I work a lot and have morning classes over here.

You can't make those changes in your ACP Toungue

But yes, your second try was correct.

when people visit your site your portal should show up as your home page.
Beatrix,

I was able to make it work,many thanks for your help!

Big Grin

Now I will have to figure out how to upload Proportal to make it more usable.

Cheers,

SST
.htaccess with this in there somewhere:
DirectoryIndex portal.php

That's how I did it.
ok the question is, I want the portal to be named Home so do I change the Portal to Home in the link and then change the code in .htacess from DirectoryIndex portal.php to DirectoryIndex Home.php

Im also using Proportal if you needed to know...

From now on when people come to site they will see there at Home and not Portal page!

also im using many plugins like Seo and stuff so I dont want to screw around too much if you know what I mean
Let me make this a little clear: I do not support proportal, just this simple mybb hack!

And you don't need .htacess for this trick. You can name it home.php instead of index if you wish.
I need help, i get this errors;

The following warnings occurred:
Warning [2] Cannot modify header information - headers already sent by (output started at /home/movieman/public_html/index.php:1) - Line: 1548 - File: inc/functions.php PHP 5.2.13 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/functions.php 1548 header
/inc/class_session.php 365 my_setcookie
/inc/class_session.php 98 session->load_guest
/global.php 56 session->init
/index.php 37 require_once
(2010-07-20, 05:18 PM)Byakuya_007 Wrote: [ -> ]I need help, i get this errors;

The following warnings occurred:
Warning [2] Cannot modify header information - headers already sent by (output started at /home/movieman/public_html/index.php:1) - Line: 1548 - File: inc/functions.php PHP 5.2.13 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/functions.php 1548 header
/inc/class_session.php 365 my_setcookie
/inc/class_session.php 98 session->load_guest
/global.php 56 session->init
/index.php 37 require_once

Did you rename your files? And did you have this problem upon initial installation?
Yes i edited;
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!

??what? i edited the index.php and i got this errors in portal page.
www.moviemania-pt.com
When I go to forums.php I get a white page.
Did you rename your old index.php to forums.php?

And instead of using the HTML urls, use the .php extention?
Sorry, i got a white page to, if i am not log in, since i see this post.
In www.moviemania-pt.com you can see the portal page right? and she shows that errors..

rename old? i rename my defualt index.php to forums.php

Quote:And instead of using the HTML urls, use the .php extention?
I, dont know how to do that, do you want to check it? i can give ftp acess.

Ps - How can i solve the "white page problem"?
Pages: 1 2 3 4 5 6 7 8 9 10 11