Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 79
7 members and 72 guests
hypye4notherape, laszxsvegaschib, pilgrlowlf7spea, ral4yqkeighqtx5, res3sawumewotg4, robaaerteqjc6xs, ven8qqloeejg3in
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > PHP-Nuke 6.5 to 6.9 > Nuke 6.5 to 6.9 - Themes

Reply
 
LinkBack Thread Tools Display Modes
Changing nickname to name
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 1
Join Date: Jul 2003
Changing nickname to name - 07-17-2003, 03:24 PM

I am using the 'fisubsilver' on my site. Our people have numbers as nicks, but their names are put in also (in the name field in their profile). I would like to change the "Welcome, xxx" at the top from using the nickname to the name in the profile.

How can this be done?

Thanks in advance.

P.S. I am an incredible 'newbie' so any detailed instructions would be appreciated.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Moderator
 
Status: Offline
Posts: 338
Join Date: Jan 2003
07-17-2003, 03:57 PM

Try this:
Open your theme's theme.php file and find in function themeheader:
Code:
    if ($username == "Anonymous") {
	$theuser = "<a href=\"modules.php?name=Your_Account&op=new_user\">Create an account";
    } else {
	$theuser = "Welcome $username!";
    }
Change to:
Code:
    if ($username == "Anonymous") {
	$theuser = "<a href=\"modules.php?name=Your_Account&op=new_user\">Create an account";
    } else {
       $sql4 = "SELECT name FROM ".$prefix."_users WHERE username='$username'"; 
       $result4 = $db->sql_query($sql4); 
       $row4 = $db->sql_fetchrow($result4); 
       $r_name = $row4[name];
	$theuser = "Welcome $r_name!";
    }
   
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
Logo changing jcacci Theme packs 0 06-19-2005 08:09 AM
changing Languages stokerpoons Nuke 7.x - General 0 08-03-2004 06:18 PM
"Error: Nickname already taken" during new user cr jwrobbs Nuke 7.x - General 3 07-25-2004 02:48 PM
Changing Width Juggernaut Theme packs 0 08-01-2003 03:12 PM
Spaces in the Nickname? liquify Purged Topics 1 12-11-2002 05:39 PM




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