|
» 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
|
|
|
|
|
|
|
|
|
|
|
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.
|
|
|
|
|
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 ... |
|
 |
 |
|
 |

12-17-2002, 09:49 AM
|
|
Junior Member
|
|
Join Date: Nov 2002
Location: Sweden
Posts: 85
|
|
|
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
|

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
|

12-17-2002, 11:02 AM
|
|
Junior Member
|
|
Join Date: Nov 2002
Location: Sweden
Posts: 85
|
|
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.
|

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
|

12-17-2002, 11:18 AM
|
|
Junior Member
|
|
Join Date: Nov 2002
Location: Sweden
Posts: 85
|
|
|
Well, I copied that code that you posted now, and that doesn't work either... That's strange...
|

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
|

12-17-2002, 11:23 AM
|
|
Junior Member
|
|
Join Date: Nov 2002
Location: Sweden
Posts: 85
|
|
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 
|

12-17-2002, 11:50 AM
|
|
Junior Member
|
|
Join Date: Nov 2002
Location: Sweden
Posts: 85
|
|
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 
|

12-17-2002, 12:08 PM
|
|
Junior Member
|
|
Join Date: Nov 2002
Location: Sweden
Posts: 85
|
|
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 
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|