Who is online: shows PORTAL page as Index page. How to display right?

Discussion forum for MOD Writers regarding MOD Development.
Car2013
Registered User
Posts: 87
Joined: Fri Nov 22, 2013 5:18 am

Re: Who is online: shows PORTAL page as Index page. How to display right?

Post by Car2013 »

Yeah... actually, that was exactly what I payed attention... as I noticed was 'created' this text part for the mod mchat, for example.
But than I changed some parts, and didnt work at the first time.

However, I kept trying... and noticed I needed to creat some line on lang file... 'common.php'

Code: Select all

$lang = array_merge($lang, array(
So...FINALLY... it worked.

Thanks, man..for the 'light'. :)
Car2013
Registered User
Posts: 87
Joined: Fri Nov 22, 2013 5:18 am

Re: Who is online: shows PORTAL page as Index page. How to display right?

Post by Car2013 »

But..ah...just checked one more thing.
When the portal is not like this "www.myforum.com/portal.php", but "www.myforum.com/portal2/index.php"... it doesnt work when I put there like this:

Code: Select all

case 'portal2':
			$location = $user->lang['PORTAL_2'];
			$location_url = append_sid("{$phpbb_root_path}portal2/index.$phpEx");
		break;	
Any suggestion?
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53565
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: Who is online: shows PORTAL page as Index page. How to display right?

Post by Brf »

If your portal is in a different folder-structure than your phpBB, it would not be as easy.
You might have to check $on_page[0] to see what is in there...
Car2013
Registered User
Posts: 87
Joined: Fri Nov 22, 2013 5:18 am

Re: Who is online: shows PORTAL page as Index page. How to display right?

Post by Car2013 »

where is this?

Return to “[3.0.x] MOD Writers Discussion”