Moving portal.php outside of your forums directory?
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.
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.
Moving portal.php outside of your forums directory?
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?
-
- 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?
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?
Any plans to implement this?
Re: Moving portal.php outside of your forums directory?
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?
Never-mind. Thanks
-
- 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?
If you got it working would you mind sharing with the rest of us?victory1 wrote:I figured it out. thanks
-
- 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?
Sorry Victory. They have me still as a newly registered user and cannot reply to your PMs. I did get it.alicia wrote:If you got it working would you mind sharing with the rest of us?victory1 wrote:I figured it out. thanks
Re: Moving portal.php outside of your forums directory?
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?
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
REMOVE :
Find :
Replace with :
This change from the previous version:
Find :
Replace with :
Open :
Find :
Replace with :
This is new to make work with 2.0.0 :
Open :
Find :
Replace with :
Find :
Replace with :
Move
Code: Select all
/forums/portal.php to /portal.php.
Code: Select all
Open /forums/.htaccess
Code: Select all
DirectoryIndex portal.php index.php index.html index.htm
Code: Select all
Open /portal.php
Code: Select all
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
Code: Select all
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forums/';
Code: Select all
Open /forums/includes/functions.php
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") : '',
Code: Select all
'U_PORTAL' => (isset($config['board3_enable']) && $config['board3_enable'] && $auth->acl_get('u_view_portal')) ? append_sid("../portal.$phpEx") : '',
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
Code: Select all
{$phpbb_root_path}portal.$phpEx
Code: Select all
portal.$phpEx
Open :
Code: Select all
/Forums/portal/includes/functions.php
Code: Select all
include(PORTAL_ROOT_PATH . 'includes/trim_message/trim_message.' . $phpEx);
Code: Select all
include($phpbb_root_path . 'includes/trim_message/trim_message.' . $phpEx);
Code: Select all
include(PORTAL_ROOT_PATH . 'includes/trim_message/bbcodes.' . $phpEx);
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.
Re: Moving portal.php outside of your forums directory?
Thanks victory1