Moving portal.php from /forum to root

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
Brogan
Active Member
Posts: 26
Joined: 27. September 2008 17:50

Moving portal.php from /forum to root

Post by Brogan »

Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Basic Knowledge

What have you done before the problem was there?
Installed the portal.

What have you already tryed to solve the problem?
Nothing yet.

Description and Message
I have just installed the Board3 portal according to the instruction.

The phpBB forum is installed at e.g. www.mysite.com/forum/index.php
The portal is currently installed at e.g. www.mysite.com/forum/portal.php

How easy is it to move the portal.php page up 1 level to the domain root so it is e.g. www.mysite.com/portal.php ?

Thanks in advance.

Topic author
Brogan
Active Member
Posts: 26
Joined: 27. September 2008 17:50

Re: Moving portal.php from /forum to root

Post by Brogan »

It's OK, I've sorted it with a simple edit of portal.php and the overall_header & footer.
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: Moving portal.php from /forum to root

Post by Kevin »

~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Topic author
Brogan
Active Member
Posts: 26
Joined: 27. September 2008 17:50

Re: Moving portal.php from /forum to root

Post by Brogan »

Thanks.

I did a search but it didn't find that thread.

Topic author
Brogan
Active Member
Posts: 26
Joined: 27. September 2008 17:50

Re: Moving portal.php from /forum to root

Post by Brogan »

Well I've tried the steps in that thread but it didn't solve everything.

In the overall_header.html file, {U_PORTAL} is referenced and it still points to /forum/portal.php

Where is U_PORTAL defined?

Thanks.

Topic author
Brogan
Active Member
Posts: 26
Joined: 27. September 2008 17:50

Re: Moving portal.php from /forum to root

Post by Brogan »

Anyone?

I don't really want to have to edit overall_header with the actual path to the portal.php file in the domain root.

I would much rather edit the U_PORTAL variable and do it properly.
User avatar

Ice
Former Team Member
Posts: 359
Joined: 20. January 2008 23:43
Location: England, United Kingdom

Re: Moving portal.php from /forum to root

Post by Ice »

It's one of the edits you do to functions.php I believe.
Board3 Portal Dev & English Tech Support

Topic author
Brogan
Active Member
Posts: 26
Joined: 27. September 2008 17:50

Re: Moving portal.php from /forum to root

Post by Brogan »

Well as this is an important issue, are any of the designers available to comment?

I need to ensure I capture all of the required edits.
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: Moving portal.php from /forum to root

Post by Kevin »

Ice gave already the answer.
In functions.php:

Code: Select all

        'U_PORTAL'                => append_sid("{$phpbb_root_path}portal.$phpEx"), 
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Topic author
Brogan
Active Member
Posts: 26
Joined: 27. September 2008 17:50

Re: Moving portal.php from /forum to root

Post by Brogan »

Thanks for the confirmation.
So in summary then, I need to do the following:

Move portal.php to root
Rename it to home.php (this is what I plan to do)

Edit home.php
From: $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
To: $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forum/';

Edit functions.php
From: 'U_PORTAL' => append_sid("{$phpbb_root_path}portal.$phpEx"),
To: 'U_PORTAL' => append_sid("home.$phpEx"),

Edit portal/block/login_box.php
From: 'U_PORTAL' => append_sid("{$phpbb_root_path}portal.$phpEx")
To: 'U_PORTAL' => append_sid("home.$phpEx")

Update index.html file to point to new path
From: <meta http-equiv="refresh" content="0;url=forum/portal.php">
To: <meta http-equiv="refresh" content="0;url=home.php">

Is that it?
Do I need to make any other edits?

Thanks in advance.

Topic author
Brogan
Active Member
Posts: 26
Joined: 27. September 2008 17:50

Re: Moving portal.php from /forum to root

Post by Brogan »

Well those edits above aren't enough.

The portal path in overall header is still pointing to /forum/home.php

In addition, after logging in the page is redirected to /forum/home.php


So it would seem there is still a definition for {U_PORTAL} somewhere that needs to be changed.
Can any of the designers confirm where this is?

Topic author
Brogan
Active Member
Posts: 26
Joined: 27. September 2008 17:50

Re: Moving portal.php from /forum to root

Post by Brogan »

This has now been solved.

The U_PORTAL definition in functions include needs to be: 'U_PORTAL' => append_sid("../home.$phpEx"),
Locked

Return to “board3 Portal 1.0.x - English Support”