You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 301 guest(s) and 13 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
One User Profile for the whole site.
PHP-NukeMesum writes "Tired of seeing 2 profiles of ONE user of your website? Forums profile edit is not what you want your users to use? Tired of seeing 2 links to edit/register at your website? (one Forums and one in Your Account)

Well I have made some changes to eliminate one profile/registeration system/profile edit system from your PHP-Nuke powered websites.

Read more to find out how...

2 files needed to be edit.
includes/page_header.php

modules/Forums/profile.php


1: Open includes/page_header.php and look for these 2 lines (Around line 400 and 401):

'U_REGISTER' => append_sid('profile.'.$phpEx.'?mode=register'),
'U_PROFILE' => append_sid('profile.'.$phpEx.'?mode=editprofile'),

And change them to:

'U_REGISTER' => append_sid('modules.php?name=Your_Account&op=new_user'),
'U_PROFILE' => append_sid('modules.php?name=Your_Account&op=edituser'),



2: Open modules/Forums/profile.php (around line 92), look for this code:

if ( $mode == 'viewprofile' )
{
include("includes/usercp_viewprofile.php");
exit;
}

Change it to:

if ( $mode == 'viewprofile' )
{
$profiledata = get_userdata(intval($HTTP_GET_VARS[POST_USERS_URL]));
header("Location: modules.php?name=Your_Account&op=userinfo=$profiledata[username]");
exit;
}


That's it!

You can see it working at Nuke Gangsta"
Posted on Monday, August 16 @ 05:27:45 CEST by VinDSL
 
Related Links
· More about PHP-Nuke
· News by VinDSL


Most read story about PHP-Nuke:
PHP-Nuke new development direction (part 2)

Article Rating
Average Score: 0
Votes: 0

Please take a second and vote for this article:

Excellent
Very Good
Good
Regular
Bad


Options

 Printer Friendly Page  Printer Friendly Page

 Send to a Friend  Send to a Friend

Threshold
The comments are owned by the poster. We aren't responsible for their content.

No Comments Allowed for Anonymous, please register
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.290 Seconds - 587 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::