View Single Post
Old
  (#3 (permalink))
zlaxzzor
Junior Member
 
Status: Offline
Posts: 85
Join Date: Nov 2002
Location: Sweden
12-17-2002, 10:02 AM

Thanks Mikem, I'm glad for your answer...

Though, it didn't actually work for me

Now my code in the beginning of the profile.php looks like this:

Code:
if (!eregi("modules.php", $PHP_SELF)) {
    die ("You can't access this file directly...");
}
$module_name = basename(dirname(__FILE__));
require("modules/".$module_name."/nukebb.php");

// This code added below adds the navbar when you are editing your profile
    if (is_user($user)) {
   include("modules/Your_Account/navbar.php");
   OpenTable();
   nav();
   CloseTable();
   echo "
";
    }
else {
    $phpbb_root_path = 'modules/Forums/';
    $nuke_file_path = 'modules.php?name=Forums&file=';
}
// End of new code

define('IN_PHPBB', true);
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start session management
....
The navbar doesn't appear though.
 Send a message via ICQ to zlaxzzor Send a message via MSN to zlaxzzor  
Reply With Quote