Moving portal.php outside of your forums directory?

Current Version: 2.0.2
Released: 2013-10-27
Forum rules
Before creating a new support thread, please take a look at the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
victory1
Active Member
Posts: 40
Joined: 13. October 2010 07:48
Contact:

Moving portal.php outside of your forums directory?

Post 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?
User avatar

alicia
Active Member
Posts: 6
Joined: 27. January 2012 23:29
phpBB.com User: Alicia86
Location: Ohio
Contact:

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

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

Topic author
victory1
Active Member
Posts: 40
Joined: 13. October 2010 07:48
Contact:

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

Post 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

Topic author
victory1
Active Member
Posts: 40
Joined: 13. October 2010 07:48
Contact:

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

Post by victory1 »

Never-mind. :) Thanks
User avatar

alicia
Active Member
Posts: 6
Joined: 27. January 2012 23:29
phpBB.com User: Alicia86
Location: Ohio
Contact:

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

Post by alicia »

victory1 wrote:I figured it out. thanks
If you got it working would you mind sharing with the rest of us? :lol:
User avatar

alicia
Active Member
Posts: 6
Joined: 27. January 2012 23:29
phpBB.com User: Alicia86
Location: Ohio
Contact:

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

Post 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.
User avatar

Castiel
Active Member
Posts: 3
Joined: 15. December 2010 01:15
Contact:

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

Post 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 :)

Topic author
victory1
Active Member
Posts: 40
Joined: 13. October 2010 07:48
Contact:

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

Post 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);
Last edited by victory1 on 16. May 2012 12:05, edited 1 time in total.

Mess
Active Member
Posts: 32
Joined: 10. September 2009 15:08
phpBB.com User: Mess

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

Post by Mess »

Thanks victory1
Locked

Return to “Board3 Portal 2.0.x - English Support”