biddly1
Newbie   Posts: 9 Registered: 10/10/2004 Status: Offline
|
posted on 6/1/2006 at 05:47 PM |
I am using Postnuke .762 and Autotheme .87. I would like to change the
Welcome field to display a user's realname, not username. Is there a way I
can do this?
I know in my theme is says [user-welcome] where the Welcome field should be
and that user is defined in atCommands.php as .$username. I just don't know
what I would change it to, to see the "realname" that is entered when I
register the members.
The reason why I need to do this, is because I have a "country club" site
where only members of the country club can register (which I as the admin
do for each member). I use their country club member number as their
username, since it is unique to each, but I don't want the members to see
"Welcome 4335". I'd rather it say "Welcome John"...something more
personal.
Can that be done?
Thank you in advance for any help you can give me.
Sue |
| |
| |
biddly1
Newbie   Posts: 9 Registered: 10/10/2004 Status: Offline
|
posted on 6/6/2006 at 06:09 AM |
I got it to work, although I don't know if this is the right place to make
changes:
In modules/AutoTheme/includes/postnuke/atApi.php on line 95, the original
code was:
code: function
atGetUserName()
{
if (!atIsLoggedIn()) {
if (defined('_AT_GUEST')) {
$username = _AT_GUEST;
}
else {
$username = "";
}
}
else {
$username = pnUserGetVar('uname');
}
return $username;
I changed the 'uname' at line 106 to 'name':
<?$username = pnUserGetVar('name');?>
It worked and so far haven't had any adverse effects from it. I'll post
back if I notice any problems.
Sue |
| |
|
|
|
|
Page created in 0.104372 Seconds
|