I guess it was bound to happen sooner or later. I finally dug up some old code and made a sig image system for use by anyone. Obviously your Team & User Name have to be tracked in these stats, otherwise it will just give you an error.
Currently there are 3 basic styles to choose from, but you can customize the colors to your heart's content.
Here's a basic example of how to use the sig images:
First - You can use the UserID from the EOC Stats (preferred):
Second - You can use your User Name + Team ID:
Third - You can use your Team ID only (this will obviously only show the team stats):
Alternate Method - If the site doesn't allow query strings or requires a file with an image extension, you can use a directory structure in place of the ? and & tags
Note: Any of the tags for the query string will work in the directory scheme. If your name doesn't work with the un tag then lookup your actual userid here and use the u tag instead.
If you get it working correctly, you should have something that looks like this:
Adding Your Stats To A Forum Signature - Most forums use standard BBCode, which doesn't use HTML for safety reasons. An example of the string you would insert would be as follows.
- With hyperlink to your stats:
- Without a hyperlink to your stats (plain image only):
You can change various colors by using standard hex codes. Simply append them to the URL string. You don't have to use all of them, the default colors are used for any variables that are omitted.
- c1 = Default Text Color
- c2 = Background Body Color
- c3 = Background Header Color
- c4 = Border Color
- c5 = Override Text Rank Colors
Would end up looking like this:
Note: If you define a 'c5' color, you loose the auto-color rankings for the individual / team. I added it because some people might want a color scheme that conflicts with one or more of the colors used in the scale.
You can choose alternate styles by adding a bg=# in the URL string (where # is a number between 0 & 2 currently). If you set only a TeamID then you don't need to set the bg=2 flag as that is redudant. Technically you could set your UserID only and the bg=2 to show the team info, but I don't know why someone would want to do that.
- 0 = Default (Technically you don't need to add it if you want the default bg.)
- 1 = User Stats Only (Essentially half the default image)
- 2 = Team Stats Only (You really don't need to set this, it's here for completeness)
Background 0 (Default)
Background 1 (User Info Only)
Background 2 (Team Info Only)
The data actually changes *slightly*, if your team rank goes up/down within the past 7 days, it will display that info (with the up/down arrow) instead of Work Units. Also the User / Team color corresponds to the stats colors.
For team only images, if your team's users are not being processed then it doesn't show the user field, it just moves the WUs up one row.
The code does cache the images to files, and clears out the cache after each stats update. Also I put header info for last-updated & expires to help with image caching there too. Not sure how well the headers will work out, worst-case I can remove them.
- v0.4.1 (02-04-2010)
- v0.4.0 (07-27-2006)
- Added ability to use a directory structure
- Added team only stats
- v0.3.1 (08-22-2005)
- All images are output as gif (slightly smaller file sizes)
- Team ID is properly color-coded for BG #1
- v0.3.0 (08-19-2005)
- Added a couple more styles
- v0.2.0 (08-16-2005)
- Changed Display To Show Points "Today" instead of the last "Update"
- Added ability to change various colors
- Fixed a couple small bugs
- Modified image caching code
- v0.1.0 (08-12-2005)