Stat Box
#1
Posted 05 December 2006 - 12:41 PM
#2
Posted 05 December 2006 - 03:10 PM
http://img.geocaching.com/stats/img.aspx?t...a63693&bg=3
#3
Posted 05 December 2006 - 03:51 PM
alexrudd, on Dec 5 2006, 03:10 PM, said:
http://img.geocaching.com/stats/img.aspx?t...a63693&bg=3
Cool. I'd love to add a WSGA logo to mine.
D.
#4
Posted 05 December 2006 - 03:51 PM
In the sample URL above replace the digits that appear after "uid=" with your gc.com profile ID. Your UID is available by clicking on a cache log. Your UID will be in your browser's Address box.
You can add whatever text you desire after the "&txt=", but you must remember to replace spaces with the plus sign "+". See the sample above.
You can change the logo displayed by changing the number after the "&bg=" followed by a number from 1 to ? the image changes.
&bg=1 image is the geocaching.com logo
&bg=2 image is Signal the frog
Many Community organizations have a listed logo also, please check with your local organization to find out their number.
#5
Posted 05 December 2006 - 09:04 PM
D3C1B3L, on Dec 5 2006, 07:51 PM, said:
&bg=1 image is the geocaching.com logo
&bg=2 image is Signal the frog
Many Community organizations have a listed logo also, please check with your local organization to find out their number.
I take it that we won't be getting a list?
Also, is there a way to submit our local org's logo if we want one made?
#6
Posted 06 December 2006 - 05:27 AM
But what I'd really like to see is a way to customize it for each individual.
#7
Posted 06 December 2006 - 05:44 AM
#8
Posted 07 December 2006 - 01:32 PM
In fact, a cacher asked me yesterday about getting his organization's logo on the stat bar. I told him it was possible to do and designed something on one of my domains to provide him with that functionality. I also created code that makes it easy to add more images.
http://www.devfolio....caching/statbar
So, yes, that functionality among other things seem to be in demand by gc.com users. So is the JavaScript I use on my profile page. Heck, with a user's click, it's possible to bypass Groundspeak's security and load external JavaScript files (though I would prefer Scriptaculous and Rico be one of the standard includes). There are so many things end users can do to enhance gc.com. I'm just doing my part.
If you want to create the stat box yourself, here's my estimate of gc.com's program flow: Make a bitmap object, instantiate the graphic object off the bitmap, draw the logo on the right, format the cacher's name to include the apostrophe and evaluate the "s", query the finds and hides, do the query string for the user's text, draw all three strings on the graphic object at about x=50, draw four lines to serve as the box's border, and render to the output stream, changing the content type.
.Net is so fun! It's what I do for a living, anyway, so I'm proud to enjoy it.
The following is static because I didn't have time to find a way to get the reference to work in forum posts:
#9
Posted 07 December 2006 - 02:24 PM
This post has been edited by fishingdude720: 07 December 2006 - 02:24 PM
#10
Posted 07 December 2006 - 02:53 PM
fishingdude720, on Dec 7 2006, 02:24 PM, said:
Just send me the URL of whatever you want as you logo image, but try to make it a 46-48 pixel high JPEG if you can; it'll save a minute or two on editing. You'll receive an email when I'm finished. Same with everyone else.
I'll keep this up until Groundspeak builds this feature into gc.com or until they tell me to knock it off. To answer one other unasked question, I thought of creating an upload feature to allow others to upload icons, but I'd rather act as filter against anything that isn't rated "G".
#11
Posted 07 December 2006 - 06:30 PM
<img src="http://www.devfolio.com/geocaching/statbar/logo.aspx?group=tricities&uid=62f06459-05d3-43ff-b0bd-d93a70abf628&txt=View my profile">
This post has been edited by altosaxplayer: 07 December 2006 - 06:32 PM
#13
Posted 07 December 2006 - 06:49 PM
altosaxplayer, on Dec 7 2006, 06:32 PM, said:
The stat bar doesn't show up because it's a dynamic image and forbidden by the forum software. I was thinking of a way of circumventing it, but laziness overcame me. It's enough to discover a way around the "no JavaScript file references" in the gc.com profile page, though I'm still trying to find an onload event handler for that.
Anyway, I suspect that's why no one shows his/her gc.com stat bar in the forum, from what little I have seen.
And, yes, alto, I'll format what I have later, perhaps adding the same JavaScript I gave you. I was in a hurry to do the first one (as proof-of-concept) and simply used Anthem AJAX instead of rigging proper JavaScript. Laziness? Perhaps hurried. I have caches to log, other things to program, and people calling me up asking to do stuff or help them. Where's another FTF opportunity when you need it?
#15
Posted 08 December 2006 - 02:14 PM
#16
Posted 08 December 2006 - 02:26 PM
As for bandwidth, I have unlimited bandwidth on one of my other domains, but the web hosting company imposes many more restrictions on code operations. I'm trying to find a workaround. Why unlimited bandwidth? Old web hosting contract.
#17
Posted 10 December 2006 - 01:12 PM
Ranger Fox, on Dec 8 2006, 02:26 PM, said:
Yes, .htaccess is Apache. On IIS I think the easiest way would be to set the "error handler" on a given subdirectory (e.g. /stats/ ) to your .net app. Then when anything "lower" than that directory is requested, since it would normally 404, the webserver will run your error handler. It would then evaluate the requested URL and return the appropriate page or image.

Help
This topic is locked








