Home Forum
display username, not real name.
Pages: [1 ]
Author
Topic: display username, not real name. (Read 2305 times)
ormuz
Joomla Newbie
Karma: +0/-0
Offline
Posts: 1
I want display the username in the whole forum site (where this display like posts, online users etc) not the real name, that is possible? Tks
Logged
Michael litz
Joomla Newbie
Karma: +0/-0
Offline
Posts: 1
Same here. I have it set to sync the logins, but it displays the real name, and I need it to display thier user name.
Logged
Kevin8020
I had the same issue. Here is a solution.
Open up /administrator/com_smf/functions.smf.php
On line 817 (give or take), you should see something similar to this:
('$row->name','$row->username','$row->email','".sha1(strtolower($row->username) . $password)."',UNIX_TIMESTAMP('".$row->registerDate."'), '$hideemail', ".($row->block ? 0 : 1).",'$row->activation')
Replace that with this:
('$row->username','$row->username','$row->email','".sha1(strtolower($row->username) . $password)."',UNIX_TIMESTAMP('".$row->registerDate."'), '$hideemail', ".($row->block ? 0 : 1).",'$row->activation')
That should make a
new user's SMF display name match their Joomla/Mambo username.
« Last Edit: December 18, 2005, 07:24:29 PM by Kevin »
Logged
tldagent
Joomla Newbie
Karma: +0/-0
Offline
Posts: 3
I've tried the above and it doesn't work.
Logged
Noel
Joomla Newbie
Karma: +0/-0
Offline
Posts: 4
I have tried this too, SMF continues to show real names not usernames, anyway to fix this. Thanks Noel
Logged
kirck
there are two functions that must be modified.
File: functions.smf.php
Functions: syncMamboToSMF & syncToSMF
syncMamboToSMF
$query = "" ." INSERT INTO {$smf_prefix}members (realName, memberName, emailAddress, passwd, dateRegistered, hideEmail, is_activated, validation_code)" ." VALUES ('$row->username','$row->username','$row->email','$row->password',UNIX_TIMESTAMP('".$row->registerDate."'), '$hideemail', ".($row->block ? 0 : 1).", '$row->activation')";
syncToSMF
$query = " INSERT INTO {$smf_prefix}members (realName, memberName, emailAddress, passwd, dateRegistered, hideEmail, is_activated, validation_code) VALUES ('$row->username','$row->username','$row->email','".sha1(strtolower($row->username) . $password)."',UNIX_TIMESTAMP('".$row->registerDate."'), '$hideemail', ".($row->block ? 0 : 1).",'$row->activation') ";
Logged
posto
Joomla Newbie
Karma: +0/-0
Offline
Posts: 3
wen i using this hack. I get an error message in the joomla.php and in the ssi.php
Logged
Pages: [1 ]