ok i understand what your saying but it just dont work i have added the bellow code to who is where.php and view on line.php
you see the first one is contact.php (thats in root) and works perfect the dm_eds and modcp are both in folders and dont work as he image shows
- Code: Select all
case 'contact':
$location = $user->lang['VIEWING_CONTACT'];
$location_url = append_sid("{$phpbb_root_path}contact.$phpEx");
break;
case 'dm_eds/index':
$location = $user->lang['VIEWING_DM_EDS'];
$location_url = append_sid("{$phpbb_root_path}dm_eds/index.$phpEx");
break;
case 'modcp/index':
$location = $user->lang['VIEWING_MODCP'];
$location_url = append_sid("{$phpbb_root_path}modcp/index.$phpEx");
break;
in short if the file.php is in root its perfect but it the file.php is in a folder it wont
strange that this works as it's what i'm doing
case 'adm/index':
$location = $user->lang['ACP'];
$location_url = append_sid("{$phpbb_root_path}index.$phpEx");
break;