Page 1 of 1

show portal in viewonline.php if it has different path

Posted: 7. May 2010 19:38
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

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

Posted: 7. May 2010 20:57
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; 

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

Posted: 7. May 2010 21:24
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.

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

Posted: 8. May 2010 03:34
by eman80