Skip to Content Skip to Menu

[CBPLUG] - Google - Maps - Coordinates - Finder

  • Draakje
  • Draakje
  • OFFLINE
  • Posts: 17
  • Thanks: 0
  • Karma: 0
17 years 9 months ago #29235 by Draakje
Ok thanks a lot, i have got it working. No i have to find a way to use the real names and not the nicknames in the google-map. I found some topics that wanted to get the opposit (guess thats the default setting nowadays) how to turn it back? :-)

But thanks again and these components and add-obs really make us look genious ;-)

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

  • Stiggi
  • Stiggi
  • OFFLINE
  • Posts: 41
  • Thanks: 0
  • Karma: 18
17 years 9 months ago #29236 by Stiggi
You can modify the layout of the "cloud" by editing the XSL (backend->components->googlemaps->configuration)

you have to use the fieldnames of the usertable with a '@' in front. I.e. use @name instead of @username to display the realname.

Here is the one I use on www.groupjive.org

[code:1]
<xsl:«»stylesheet version="1.0" xmlns:«»xsl=" www.w3.org/1999/XSL/Transform ">
<xsl:template match="/">
<div class="infoWindow" style="white-space:nowrap;width:175px;">
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match="info">
<div style="float:left">
<xsl:choose>
<xsl:when test="avatar">
<img>
<xsl:choose>
<xsl:when test="substring(avatar, 1, 4) = 'gall'">
<xsl:attribute name="src">images/comprofiler/
<xsl:value-of select="avatar"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="src">images/comprofiler/tn<xsl:value-of select="avatar"/></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</img>
</xsl:when>
<xsl:otherwise>
<img>
<xsl:attribute name="src">components/com_comprofiler/plugin/language/default_language/images/tnnophoto.jpg</xsl:attribute>
</img>
</xsl:otherwise>
</xsl:choose>
</div>
<div style="float:left;padding-left:10px;">
<b>User: <xsl:value-of select="@username"/></b>
<br /><br />
<a><xsl:attribute name="href">index.php?option=com_comprofiler&amp;task=userProfile&amp;user=<xsl:value-of select="@userid"/></xsl:attribute>visit profile</a>
</div>
</xsl:template>
</xsl:«»stylesheet>


[/code:1]

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

  • Draakje
  • Draakje
  • OFFLINE
  • Posts: 17
  • Thanks: 0
  • Karma: 0
17 years 9 months ago #29284 by Draakje
I found that file and also thought that changing username in name would do the trick, but it doesn't. Maybe its defined in the CB-plugins what username is....

Post edited by: Draakje, at: 2007/01/18 18:19

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

  • Stiggi
  • Stiggi
  • OFFLINE
  • Posts: 41
  • Thanks: 0
  • Karma: 18
17 years 9 months ago #29300 by Stiggi
did you checked backend -> GoogleMaps -> Configuration -> CB

There is an option "Hide Realnames" - set it to "no" and try again..

Ok, I checked my XML and the XSL.. You have to use

[code:1]<xsl:value-of select="name"/>[/code:1] instead of @name

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

  • Stiggi
  • Stiggi
  • OFFLINE
  • Posts: 41
  • Thanks: 0
  • Karma: 18
17 years 9 months ago #29303 by Stiggi
noch was: in den URLs in der XSL musst Du die & gegen &amp; austauschen

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

  • Draakje
  • Draakje
  • OFFLINE
  • Posts: 17
  • Thanks: 0
  • Karma: 0
17 years 9 months ago #29384 by Draakje
I found out it was a tricky thing that XSL. Sometimes it worked and another time i copied the exact same code and it didn't work...

For now i have it using the sef-url. That worked so i'm not touching it again :-)

That goes like this:
<a><xsl:attribute name="href">component/option,com_comprofiler/task,userProfile/user,<xsl:value-of select="@userid"/>/Itemid,7/</xsl:attribute>Go to profile</a>

If someone wants to use it....

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

Moderators: beatnantkrileon
Powered by Kunena Forum