show portal in viewonline.php if it has different path

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

Topic author
eman80
Active Member
Posts: 4
Joined: 7. May 2010 19:11
phpBB.com User: eman80
Location: Saudi Arabia

show portal in viewonline.php if it has different path

Post by eman80 »

Your Portal Version: 1.0.5
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Beginner
Boardlink: http://arabic-ebook.com

PHP Version: 3.0.7PL1

What have you done before the problem was there?


What have you already tryed to solve the problem?


Description and Message
Hello everybody :)

Thanks so much for this great portal.

I moved my portal page to different path from my forums to make it the main page for my site

I followed this guide Moving portal.php outside of your forums directory

but now I have a problem ..

I can't see who is in portal page in the viewonline.php

help please to solve this?

thanks in advance
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: show portal in viewonline.php if it has different path

Post by Marc »

Open viewonline.php and find this:

Code: Select all

        case 'portal':
            $user->add_lang('mods/lang_portal');
            $location = $user->lang['VIEWING_PORTAL'];
            $location_url = append_sid("{$phpbb_root_path}portal.$phpEx");
        break; 
And change it to this:

Code: Select all

        case 'portal':
            $user->add_lang('mods/lang_portal');
            $location = $user->lang['VIEWING_PORTAL'];
            $location_url = append_sid("../portal.$phpEx");
        break; 
User avatar

Topic author
eman80
Active Member
Posts: 4
Joined: 7. May 2010 19:11
phpBB.com User: eman80
Location: Saudi Arabia

Re: show portal in viewonline.php if it has different path

Post by eman80 »

Hi Marc

I just tried this code but when someone be in portal page, when I browse viewonline.php I see him in index page instead of viewing portal page.
User avatar

Topic author
eman80
Active Member
Posts: 4
Joined: 7. May 2010 19:11
phpBB.com User: eman80
Location: Saudi Arabia

Re: show portal in viewonline.php if it has different path

Post by eman80 »

Locked

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