Skip to Content Skip to Menu

Google Maps - show username instead of name

  • en_shua
  • en_shua
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
17 years 9 months ago #27761 by en_shua
I'm trying this with Joomla 1.0.12, CB 1.0.2, Google Maps 2.6. I took a look at
/administrator/components/com_google_maps/google_maps.class.php
and $query5 look like it is already getting the username.[code:1]$query5 = 'SELECT b.name, b.username, a.* FROM #__users AS b'[/code:1]

So, I just changed
[code:1]$info .= ($row->name) ? "<name>".str_replace($badChars,$goodChars,$row->name)."</name>" : '<name />';[/code:1]

to read like so:
[code:1]$info .= ($row->username) ? "<name>".str_replace($badChars,$goodChars,$row->username)."</name>" : '<name />';[/code:1]

After I did this, I regenerated the XML file, and the username is displaying instead of Real Name. Give that a whirl.

Post edited by: en_shua, at: 2006/12/28 00:43

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum