» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 62
0 members and 62 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on User-navbar on top in edit forumprofile? within the Purged Topics forums, part of the NM Staff category; Well, the subject says the most of what I want to add, I'm using the forumregistration and therefore, I ...


Go Back   Nukemods Forum » NM Staff » Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-17-2002, 09:49 AM
Junior Member
 
Join Date: Nov 2002
Location: Sweden
Posts: 85
Send a message via ICQ to zlaxzzor Send a message via MSN to zlaxzzor
User-navbar on top in edit forumprofile?
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-17-2002, 10:52 AM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
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
  #3 (permalink)  
Old 12-17-2002, 11:02 AM
Junior Member
 
Join Date: Nov 2002
Location: Sweden
Posts: 85
Send a message via ICQ to zlaxzzor Send a message via MSN to zlaxzzor
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-17-2002, 11:07 AM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
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
  #5 (permalink)  
Old 12-17-2002, 11:18 AM
Junior Member
 
Join Date: Nov 2002
Location: Sweden
Posts: 85
Send a message via ICQ to zlaxzzor Send a message via MSN to zlaxzzor
Well, I copied that code that you posted now, and that doesn't work either... That's strange...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 12-17-2002, 11:19 AM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
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
  #7 (permalink)  
Old 12-17-2002, 11:23 AM
Junior Member
 
Join Date: Nov 2002
Location: Sweden
Posts: 85
Send a message via ICQ to zlaxzzor Send a message via MSN to zlaxzzor
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 12-17-2002, 11:50 AM
Junior Member
 
Join Date: Nov 2002
Location: Sweden
Posts: 85
Send a message via ICQ to zlaxzzor Send a message via MSN to zlaxzzor
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 12-17-2002, 12:08 PM
Junior Member
 
Join Date: Nov 2002
Location: Sweden
Posts: 85
Send a message via ICQ to zlaxzzor Send a message via MSN to zlaxzzor
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
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


All times are GMT -5. The time now is 10:02 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.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