Skip to Content Skip to Menu

Link to profile in Google Maps?

  • richm
  • richm
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 2
17 years 1 month ago #45054 by richm
Replied by richm on topic Re:Link to profile in Google Maps?
Hmmm, this is not working for me. I do not have SEF turned on, so my code is:

<xsl:copy-of select="misc" />
<br /><a href="index.php?option=com_comprofiler&Itemid={@userid}">User Profile</a>

I get the following error:

XML Parsing Error: not well-formed Location: www.site.com/components/com_google_maps/minipage.xsl Line Number 71, Column 55:
User Profile
^

I also tried this format, found in another thread, but I still got a parsing error:

<xsl:copy-of select="misc" />
<br /><a><xsl:attribute name="href">index.php?option=com_comprofiler&Itemid<xsl:value-of select="@userid"/></xsl:attribute>Go to profile</a>

I tried this with and without the @sign, without and without curly parentheses, and I tried to put userid into a standard XML field, and I tried putting it in the main body of the code instead of in "misc," but nothing worked, so I am officially stuck. If anyone figures this out, please document your code for me.

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

  • maddunr
  • maddunr
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 0
17 years 1 month ago #45074 by maddunr
Replied by maddunr on topic Re:Link to profile in Google Maps?
Hi,

I don't think non-sef urls will work without url encoding . Even with url encoding, I've had little luck :(

Try encoding your index.php?option=com_comprofiler.... url in the encoder provided with that link.

Good luck :)
- V

Post edited by: maddunr, at: 2007/09/06 17:55

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

  • asmo
  • asmo
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
16 years 9 months ago #54724 by asmo
Replied by asmo on topic Re:Link to profile in Google Maps?
any other idea ?

i have in xsl :

<br /><a><xsl:attribute name="href">index.php?option=com_comprofiler%26task=userProfile%26user<xsl:value-of select="@userid"/></xsl:attribute>Go to profile</a>

it's ok
but when i press on this link i have in browser

index.php?option=com_comprofiler%26task=userProfile%26user=99

wher in joomla i can set decode thi url to:

index.php?option=com_comprofiler%&task=userProfile&user=99

??

Post edited by: asmo, at: 2008/01/20 22:24

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

  • albowers
  • albowers
  • OFFLINE
  • Posts: 3
  • Thanks: 1
  • Karma: 0
16 years 7 months ago #57995 by albowers
Replied by albowers on topic Re:Link to profile in Google Maps?
Hey, not sure if anyone is still wondering about this but I figured it out:

[code:1]<xsl:copy-of select="misc" /><br /><a href=" www.yoursite.com/index.php?option=com_comprofiler&task=userProfile&user={@userid }">View Profile for
[/code:1]

You have to make sure that the ampersands use the extended encoding:
[code:1]&amp;[/code:1]

Otherwise you'll get the parsing errors.

Also, every time you edit your config you'll need to add the amp; to the ampersands in the url again. They revert to the incorrect version when they are opened in the config section.

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

Moderators: beatnantkrileon
Powered by Kunena Forum