Home arrow Forum display username, not real name.
  Welcome, Guest. Please login or register.
Did you miss your activation email?
January 08, 2009, 12:45:42 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 1.0.x (Moderators: -Wolverine, kai920)
| | | |-+  display username, not real name.
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: display username, not real name.  (Read 2305 times)
ormuz
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


View Profile
display username, not real name.
« on: December 17, 2005, 02:22:40 AM »

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 Offline

Posts: 1


View Profile
Re: display username, not real name.
« Reply #1 on: December 18, 2005, 01:00:24 AM »

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
QA / Testers
Joomla Master
*****

Karma: +33/-18
Offline Offline

Posts: 105



View Profile WWW
Re: display username, not real name.
« Reply #2 on: December 18, 2005, 07:20:24 PM »

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:
Code:
('$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:
Code:
('$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 Offline

Posts: 3


View Profile
Re: display username, not real name.
« Reply #3 on: May 08, 2006, 04:09:44 PM »

I've tried the above and it doesn't work.

Logged
Noel
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
Re: display username, not real name.
« Reply #4 on: May 09, 2006, 01:32:32 AM »

I have tried this too, SMF continues to show real names not usernames, anyway to fix this.  Thanks

Noel
Logged
kirck
QA / Testers
Joomla Pro
*****

Karma: +7/-3
Offline Offline

Posts: 91


View Profile WWW
Re: display username, not real name.
« Reply #5 on: May 09, 2006, 06:12:41 AM »

there are two functions that must be modified.

File: functions.smf.php
Functions: syncMamboToSMF & syncToSMF

syncMamboToSMF
Code:
$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
Code:
$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 Offline

Posts: 3


View Profile
Re: display username, not real name.
« Reply #6 on: May 10, 2006, 06:10:51 AM »

wen i using this hack. I get an error message in the joomla.php and in the ssi.php
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Joomla Comment
Search Contact About Advertise Blogs Topsites Submit News Register Login