Minor fix needed to our GC link. [closed]

Discussion about the Geocaching Australia web site
Post Reply
president & 1st lady
1250 or more geocaches found
1250 or more geocaches found
Posts: 482
Joined: 17 March 05 9:29 pm
Location: Dubbo, NSW

Minor fix needed to our GC link. [closed]

Post by president & 1st lady » 21 January 06 2:28 pm

Hi guys

When you get a spare moment, could you please have a look at the link to our GC profile from our GCA cacher page http://geocaching.com.au/cacher/president+%26+1st+lady . Currently it links to a cacher known as president, instead it should be here http://www.geocaching.com/profile/?guid ... 3782d964e9

We appreciate you hard work. :D
Thanx
1st Lady

User avatar
J_&_J
Posts: 1264
Joined: 12 May 05 7:58 pm
Facebook: https://www.facebook.com/profile.php?id=100000016368307
Location: Morphett Vale
Contact:

Post by J_&_J » 21 January 06 4:59 pm

The same thing happens to us, I think it's got to do with the "&" character. It isn't a problem for me though, I guess it just annoys others who want to want to view our profile on the other site.

User avatar
caughtatwork
Posts: 17025
Joined: 17 May 04 12:11 pm
Location: Melbourne
Contact:

Post by caughtatwork » 21 January 06 5:21 pm

Yep.
The & needs to be translated to %26
I'm sure ideology will get to this. Be patient.

president & 1st lady
1250 or more geocaches found
1250 or more geocaches found
Posts: 482
Joined: 17 March 05 9:29 pm
Location: Dubbo, NSW

Post by president & 1st lady » 21 January 06 7:39 pm

Cool, there's no rush. Thanx.

1st lady

User avatar
ideology
Posts: 2763
Joined: 28 March 03 4:01 pm
Location: Sydney
Contact:

Post by ideology » 24 January 06 7:16 am

we had a look at it and it's bizarre - we are using %26 but perhaps javascript is converting it back. more thought required

User avatar
caughtatwork
Posts: 17025
Joined: 17 May 04 12:11 pm
Location: Melbourne
Contact:

Post by caughtatwork » 24 January 06 9:55 am

How bizzare.
Apparently you need to escape the variable before you call the page.

Change the gc_cacher function from this:

Code: Select all

	function gc_cacher(cacher) {
		document.location="http://www.geo" + "caching.com/profile/?u=" + cacher;
to this:

Code: Select all

	function gc_cacher(cacher) {
      cacher=escape(cacher); 
		document.location="http://www.geo" + "caching.com/profile/?u=" + cacher;
A test shows this should work.

User avatar
ideology
Posts: 2763
Joined: 28 March 03 4:01 pm
Location: Sydney
Contact:

Post by ideology » 24 January 06 10:47 am

w00t thanks!

User avatar
J_&_J
Posts: 1264
Joined: 12 May 05 7:58 pm
Facebook: https://www.facebook.com/profile.php?id=100000016368307
Location: Morphett Vale
Contact:

Post by J_&_J » 24 January 06 5:14 pm

Not sure if this affects things or not, but when I have to log in to the GCA site, I must spell my username J_&_J
That is what is displayed at the top right of the page as well. Too bizarre for me, but I live with it. :wink:

User avatar
J_&_J
Posts: 1264
Joined: 12 May 05 7:58 pm
Facebook: https://www.facebook.com/profile.php?id=100000016368307
Location: Morphett Vale
Contact:

Post by J_&_J » 24 January 06 5:17 pm

Ooops! That didn't come out right. Between the & symbol and the second underscore, I have to type "amp" followed by a ";"

president & 1st lady
1250 or more geocaches found
1250 or more geocaches found
Posts: 482
Joined: 17 March 05 9:29 pm
Location: Dubbo, NSW

Post by president & 1st lady » 24 January 06 5:45 pm

Thanx i! & C@W, you may log a find against our cacher profile!

1st lady
:D :D :D :D :D :D :D :D :D :D :D

Post Reply