Warning: The author of this contribution does not provide support for it anymore.

Board3 Portal

Portal as root, forum in subdirectory - Board3 Portal

Portal as root, forum in subdirectory

by patjk » Wed Dec 19, 2012 11:32 am

This seems to be a common question, but everyone just says "do the htaccess edits in the install file and it will fix it". This hasn't worked for me. So here is what I've done:
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!
patjk
Registered User
Posts: 64
Joined: Fri Dec 14, 2012 6:46 am
Contact:

Re: Portal as root, forum in subdirectory

by Mick » Wed Dec 19, 2012 12:35 pm

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 !
"The more connected we get the more alone we become" - Kyle Broflovski©
User avatar
Mick
Support Team Member
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

by patjk » Wed Dec 19, 2012 12:44 pm

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?
patjk
Registered User
Posts: 64
Joined: Fri Dec 14, 2012 6:46 am
Contact:

Re: Portal as root, forum in subdirectory

by patjk » Thu Dec 20, 2012 10:29 am

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:
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!
patjk
Registered User
Posts: 64
Joined: Fri Dec 14, 2012 6:46 am
Contact:

Re: Portal as root, forum in subdirectory

by Marc » Fri Dec 21, 2012 2:07 pm

This comma shouldn't exist:

Code: Select all

"portal.$phpEx"),
User avatar
Marc
Development Team Leader
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

by patjk » Sun Dec 23, 2012 11:04 am

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
patjk
Registered User
Posts: 64
Joined: Fri Dec 14, 2012 6:46 am
Contact:

Re: Portal as root, forum in subdirectory

by patjk » Thu Dec 27, 2012 3:57 pm

Bump. Any further help would be much appreciated. Thanks!
patjk
Registered User
Posts: 64
Joined: Fri Dec 14, 2012 6:46 am
Contact:

Re: Portal as root, forum in subdirectory

by Marc » Thu Dec 27, 2012 8:02 pm

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.
User avatar
Marc
Development Team Leader
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

by patjk » Fri Dec 28, 2012 11:45 am

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.
patjk
Registered User
Posts: 64
Joined: Fri Dec 14, 2012 6:46 am
Contact:

Re: Portal as root, forum in subdirectory

by Nick225 » Sat Nov 24, 2018 8:16 pm

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!
I installed this extension too: ../ext/board3/portal.
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';
But all I get is a blank page.
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.
Nick225
Registered User
Posts: 131
Joined: Sat Nov 24, 2018 7:48 pm
Contact: