Is it possible to use the real name in Chat, rather than a nickname? Thanks!
Is it possible to use the real name in Chat, rather than a nickname? Thanks! |
...and also in Blog posts...? |
...and also in Blog posts...? ask it from Rayz here PS: If possible do not write me personally, please try to ask on the forum first |
I've sent him a message, I'll report back if there's a positive result for other members wishing to modify these areas. |
He replied but wanted cPanel access, admin access and $10. AntonLV wrote a more security conscious reply detailing the following simple change (without the need for full access to our server!): |
He replied but wanted cPanel access, admin access and $10. AntonLV wrote a more security conscious reply detailing the following simple change (without the need for full access to our server!): Cool! PS: If possible do not write me personally, please try to ask on the forum first |
Th only problem with this modification is that it also changes the "View Profile" URL in Chat... so instead of sending the enquirer to "yoursite.com/username" it sends them to "yoursite.com/FirstName%20LastName ... which of course shows an invalid profile. Can you think of a way to modify the view profile links to preserve the nickname in the link but the real name as the text? |
Th only problem with this modification is that it also changes the "View Profile" URL in Chat... so instead of sending the enquirer to "yoursite.com/username" it sends them to "yoursite.com/FirstName%20LastName ... which of course shows an invalid profile. Can you think of a way to modify the view profile links to preserve the nickname in the link but the real name as the text? You can use this link: http://my_site.com/profile.php?ID=1 PS: If possible do not write me personally, please try to ask on the forum first |
I think the line to insert that would be the following - can you edit it appropriately... thanks! |
I think the line to insert that would be the following - can you edit it appropriately... thanks! You are welcome PS: If possible do not write me personally, please try to ask on the forum first |
...we're almost there... can you show me where to insert the URL text you suggested? |
File to edit in D7.0.4 - /flash/modules/global/inc/customFunctions.inc.php In addtion to $sNick = $aUser['FirstName'] . ' ' . $aUser['LastName']; I changed $sProfile = getParam('enable_modrewrite') == "on" ? $sRootURL . $sNick : $sProfileUrl . "?ID=" . $sId; to $sProfile = getParam('enable_modrewrite') == "on" ? $sRootURL . $aUser['NickName'] : $sProfileUrl . "?ID=" . $sId; And that seemed to work fine in browsers other than IE for some reason it won't let me get to any profile in IE. I can see first name and last name and click to get to user's profile in Firefox. BTW it doesn't seem to work in IE to click the profile name and get a profile without this mod either....just noticed this.
Augustus Augustus - Learnin' Like the Rest of Us |