» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 56
0 members and 56 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 Changing nickname to name within the Nuke 6.5 to 6.9 - Themes forums, part of the PHP-Nuke 6.5 to 6.9 category; I am using the 'fisubsilver' on my site. Our people have numbers as nicks, but their names are put in ...


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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-17-2003, 03:24 PM
Junior Member
 
Join Date: Jul 2003
Posts: 1
Changing nickname to name
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
  #2 (permalink)  
Old 07-17-2003, 03:57 PM
Moderator
 
Join Date: Jan 2003
Posts: 338
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


All times are GMT -5. The time now is 07:03 PM.


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