Portal as root, forum in subdirectory - Board3 Portal
Portal as root, forum in subdirectory
1) Install the portal exactly as shown in the instructions.
2) In the server settings, modify to /forum
3) move all files to /forum
I then moved portal.php to the root (/), and then modified portal.php and functions.php as described here:
https://www.phpbb.com/customise/db/mod/ ... _-t_101492
This gave me all kinds of errors, so I undid that. Right now domain.com displaying nothing, and /forum works. How can I make domain.com show the portal and domain.com/forum display the forum? Do I need to move the .htaccess from /forum to the root? I don't see any instructions saying so.
Thanks in advance!
-
- Registered User
- Posts: 64
- Joined: Fri Dec 14, 2012 6:46 am
- Contact:
Re: Portal as root, forum in subdirectory
Martin Truckenbrodt wrote:Do the .htaccess edit for the .htaccess file in ./ and not for the file in ./cgi/phpBB3 !
- Mick
- Support Team Member
- Posts: 22955
- Joined: Fri Aug 29, 2008 9:49 am
- Location: Watching cricket probably.
- Contact:
Re: Portal as root, forum in subdirectory
Mick wrote:Did you do the .htaccess edits for the one in the root?Martin Truckenbrodt wrote:Do the .htaccess edit for the .htaccess file in ./ and not for the file in ./cgi/phpBB3 !
There is no .htaccess in the root. All files were moved to /forum. Should I move the .htaccess from /forum to the root?
-
- Registered User
- Posts: 64
- Joined: Fri Dec 14, 2012 6:46 am
- Contact:
Re: Portal as root, forum in subdirectory
So I've played with this a bit. Basically I copied the .htaccess to the root, and did the edit to the one in the root. Moved portal.php and then modded it to direct to the /forum/ directory. When I did the edit below:
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("{$config['server_protocol']}"."{$config['server_name']}"."/"."portal.$phpEx"), : '',
It then gave me this error:
Parse error: syntax error, unexpected ',' in /home/name/public_html/domain/forum/includes/functions.php on line 4593
So I undid that edit. So right now, domain.com works, but domain.com/forum still redirects to the protal, while domain.com/forum/index.php direct to the forum. How do I fix that? Is the edit I just quoted above in this post necessary? If so, why is it giving me that error when I do it?
Thanks!
-
- Registered User
- Posts: 64
- Joined: Fri Dec 14, 2012 6:46 am
- Contact:
Re: Portal as root, forum in subdirectory
Code: Select all
"portal.$phpEx"),
- Marc
- Development Team Leader
- Posts: 5484
- Joined: Tue Oct 30, 2007 10:57 pm
- Location: Munich, Germany
- Name: Marc
- Contact:
Re: Portal as root, forum in subdirectory
Marc wrote:This comma shouldn't exist:Code: Select all
"portal.$phpEx"),
That fixed the error, but I don't notice any change. What is the purpose of that second edit?
So right now, domain.com works (goes to the portal), but domain.com/forum still redirects to the portal, while domain.com/forum/index.php direct to the forum. How do I fix that? Thanks
-
- Registered User
- Posts: 64
- Joined: Fri Dec 14, 2012 6:46 am
- Contact:
Re: Portal as root, forum in subdirectory
-
- Registered User
- Posts: 64
- Joined: Fri Dec 14, 2012 6:46 am
- Contact:
Re: Portal as root, forum in subdirectory
- Marc
- Development Team Leader
- Posts: 5484
- Joined: Tue Oct 30, 2007 10:57 pm
- Location: Munich, Germany
- Name: Marc
- Contact:
Re: Portal as root, forum in subdirectory
Marc wrote:You probably still have the edit to the .htaccess file that redirects users to portal.php in domain.com/forum. Take a look at the install instructions and undo that edit in domain.com/forum.
I have. The .htaccess in the /forum hasn't been modified. The .htaccess in the root was modifed with the edit given. So I have 2 .htaccess files: 1 is in the /forum and wasn't modified, 1 in the root and was modified. Is this correct?
Many thanks for your time.
-
- Registered User
- Posts: 64
- Joined: Fri Dec 14, 2012 6:46 am
- Contact:
Re: Portal as root, forum in subdirectory
I installed this extension too: ../ext/board3/portal.patjk wrote:Edit: Update below
So I've played with this a bit. Basically I copied the .htaccess to the root, and did the edit to the one in the root. Moved portal.php and then modded it to direct to the /forum/ directory. When I did the edit below.... :
.... ....
Thanks!
It Installed successfully and it displays fine in forum folder.
But like you, I want it in the parent directory of the forum folder. I have tried the whole day, read all the suggestions about .htaccess... Tried all but nothing works.
I don't see a file called portal.php ... I see app.php in the forum folder.
So copied app.php to the parent folder. I changed the phpbb_root_path to reflect the new reality:
Code: Select all
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forum';
How does this wor?k... I wish the Mod Authors who are doing such a great job would just add an option for those who wants it in parent directory of the forum. Can someone help?
Thanks.
-
- Registered User
- Posts: 131
- Joined: Sat Nov 24, 2018 7:48 pm
- Contact: