Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > NM Staff > Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
User-navbar on top in edit forumprofile?
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 85
Join Date: Nov 2002
Location: Sweden
User-navbar on top in edit forumprofile? - 12-17-2002, 09:49 AM

Well, the subject says the most of what I want to add, I'm using the forumregistration and therefore, I would like to make so that the user-navbar (the one where you can select themes, log out etc.) should be shown at the page where you edit your profile.

Thanks in advance!

Best Regards,
David Nilsson
 Send a message via ICQ to zlaxzzor Send a message via MSN to zlaxzzor  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
12-17-2002, 10:52 AM

Add this

Code:
    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=';
}
right below this
Code:
    require("modules/Forums/nukebb.php");
in your modules/Forums/profile.php file
That will force the Navbar to appear when you edit your profile via the Forum.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 85
Join Date: Nov 2002
Location: Sweden
12-17-2002, 11: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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
12-17-2002, 11:07 AM

Yeah? And mine looks exactly liek this and it works perfectly.

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");
    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=';
}   
define('IN_PHPBB', true);
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
    
//
// Start session management
//
HOWEVER, it DOES NTO WORK if I add the little code helper lines before and after the code I told you to add as you did. Try taking those lines out.


HAH..ok wait a minute. Make sure you are logged in...hehe
mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 85
Join Date: Nov 2002
Location: Sweden
12-17-2002, 11:18 AM

Well, I copied that code that you posted now, and that doesn't work either... That's strange...
 Send a message via ICQ to zlaxzzor Send a message via MSN to zlaxzzor  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
12-17-2002, 11:19 AM

Quote:
Originally Posted by zlaxzzor
Well, I copied that code that you posted now, and that doesn't work either... That's strange...
make sure you are logged in. I was being showed as logged in my Forums, but not Nuke. Logout and then back in again..Maybe that issue with changing your pass etc. creeped up on you...

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Junior Member
 
Status: Offline
Posts: 85
Join Date: Nov 2002
Location: Sweden
12-17-2002, 11:23 AM

Hmm... So, I logged out and then in again, but it's the same result... No navbar, really strange...

About that other topic with the forumregistration, I edited my last post in that topic, so I need more help in there now also
 Send a message via ICQ to zlaxzzor Send a message via MSN to zlaxzzor  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Junior Member
 
Status: Offline
Posts: 85
Join Date: Nov 2002
Location: Sweden
12-17-2002, 11:50 AM

Oh my god, LOL!

You can't imagine how stupid I feel now, I found out that I edited the wrong files, that was actually in a copy of the one that I'm using... Not so strange that it didn't work . I haven't tested it with the correct files, but I guess it will

EDIT: Tested it now again, and it works... Thanks mikem
 Send a message via ICQ to zlaxzzor Send a message via MSN to zlaxzzor  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#9 (permalink))
Junior Member
 
Status: Offline
Posts: 85
Join Date: Nov 2002
Location: Sweden
12-17-2002, 12:08 PM

Well, I know I'm a pain in the ass now, but actually it didn't work exactly as I wanted it to... I wanted the menu just to be there when you edited your own profile, now it's there when you are viewing others also, though I'm pretty happy with this also, but if you know how to change it so it only appears when you're editing your own, that would be even better...

Sorry for beeing a pain in the ass now
 Send a message via ICQ to zlaxzzor Send a message via MSN to zlaxzzor  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Karate Theme in PHP-Nuke v6.5 header/navbar issue... B-truE Nuke 6.5 to 6.9 - Themes 3 09-05-2008 04:05 PM
new page on the Navbar/site menu hellraizer Site design 7 03-06-2007 08:53 AM
Edit new user registration form jokerjk Nuke 7.x - General 2 11-07-2004 03:37 PM
Blank White Page when submitting from Edit Admin or Edit Use Elite-Fusion Site design 0 04-25-2003 02:33 AM
Edit ManMenu? Elorion Purged Topics 1 02-28-2003 09:10 AM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31