Page 1 of 1

Moving portal.php outside of your forums directory?

Posted: 16. November 2011 22:37
by victory1
I'm finally thinking of updating to the new version. I used the knowledge base to move my portal.php outside my forums directory the day I stall my portal. Will the instructions for this version be the same?

Re: Moving portal.php outside of your forums directory?

Posted: 29. January 2012 02:25
by alicia
I've been holding off upgrading to the newest version (even if it is a beta) since ATM it seems impossible to us the portal as a site index.
Any plans to implement this?

Re: Moving portal.php outside of your forums directory?

Posted: 4. February 2012 22:33
by victory1
Hello, instead of ignoring this valid question, could someone at least tell me if can be done? I have quite a few links in other websites with the portal.php outside of the forums. In of course with search engines such as Google. Thanks

Re: Moving portal.php outside of your forums directory?

Posted: 5. February 2012 20:42
by victory1
Never-mind. :) Thanks

Re: Moving portal.php outside of your forums directory?

Posted: 5. February 2012 21:09
by alicia
victory1 wrote:I figured it out. thanks
If you got it working would you mind sharing with the rest of us? :lol:

Re: Moving portal.php outside of your forums directory?

Posted: 6. February 2012 17:39
by alicia
alicia wrote:
victory1 wrote:I figured it out. thanks
If you got it working would you mind sharing with the rest of us? :lol:
Sorry Victory. They have me still as a newly registered user and cannot reply to your PMs. I did get it.

Re: Moving portal.php outside of your forums directory?

Posted: 8. March 2012 16:03
by Castiel
I'm very curious about the methods used to accomplish this as well. I currently have version 1.0.6 with the portal set up outside the forum directory. In order to upgrade to 2.0, this is something I'd definitely need to know. Any help would be vastly appreciated :)

Re: Moving portal.php outside of your forums directory?

Posted: 19. March 2012 08:25
by victory1
Here are the directions to move portal outside the forums directory. I decided to share it since I've had several PMs of people wanting me to share this.

Move

Code: Select all

/forums/portal.php to /portal.php.

Code: Select all

Open /forums/.htaccess
REMOVE :

Code: Select all

DirectoryIndex portal.php index.php index.html index.htm

Code: Select all

Open /portal.php
Find :

Code: Select all

$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
Replace with :

Code: Select all

$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forums/';
This change from the previous version:

Code: Select all

Open /forums/includes/functions.php
Find :

Code: Select all

'U_PORTAL'				=> (isset($config['board3_enable']) && $config['board3_enable'] && $auth->acl_get('u_view_portal')) ? append_sid("{$phpbb_root_path}portal.$phpEx") : '',
Replace with :

Code: Select all

'U_PORTAL'				=> (isset($config['board3_enable']) && $config['board3_enable'] && $auth->acl_get('u_view_portal')) ? append_sid("../portal.$phpEx") : '',
Open :

Code: Select all

/forum/portal/modules/announcements.php
/forum/portal/modules/news.php
/forum/portal/modules/stylechanger.php
/forum/portal/modules/calendar.php
/forum/portal/modules/poll.php
/forum/portal/modules/user_menu.php
Find :

Code: Select all

{$phpbb_root_path}portal.$phpEx
Replace with :

Code: Select all

portal.$phpEx
This is new to make work with 2.0.0 :
Open :

Code: Select all

/Forums/portal/includes/functions.php
Find :

Code: Select all

		include(PORTAL_ROOT_PATH . 'includes/trim_message/trim_message.' . $phpEx);
Replace with :

Code: Select all

		include($phpbb_root_path . 'includes/trim_message/trim_message.' . $phpEx);
Find :

Code: Select all

		include(PORTAL_ROOT_PATH . 'includes/trim_message/bbcodes.' . $phpEx);
Replace with :

Code: Select all

		include($phpbb_root_path . 'includes/trim_message/bbcodes.' . $phpEx);

Re: Moving portal.php outside of your forums directory?

Posted: 20. March 2012 11:20
by Mess
Thanks victory1