Bitcoin Forum
May 09, 2024, 06:15:58 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: *Free* Realtime simple text-to-image service (btc info in static pages & posts)  (Read 3813 times)
arsenische (OP)
Legendary
*
Offline Offline

Activity: 1199
Merit: 1012


View Profile
September 07, 2011, 06:27:17 AM
Last edit: September 07, 2011, 12:13:08 PM by arsenische
 #1

I developed simple string-to-png service (inspired by Realtime BTC to $ service). You can use it to:
  • show amount of bitcoins received by specified address
  • show external text data (such as blockexplorer stats) in forum posts, signatures or static site pages
  • obscure email address from spam bots

Usage:
Code:
[img]http://ansrv.com/png?s=<string or url>&c=<font color>&b=<background color>&size=<font size>[/img]

Where
  • s - string to be displayed, or url of string to be displayed (up to 200 chars)
  • c - font color, 6 hex chars
  • b - background color, 6 hex chars
  • size - font size (1-5)

All arguments except s are optional. See also: http://ansrv.com/png?help

Example:
Code:
[img]http://ansrv.com/png?s=http://blockexplorer.com/q/getreceivedbyaddress/19uryzRmxaCRZDoGNk9ykKsqQyZBm1u1o7/1&c=ff[/img][img]http://ansrv.com/png?s= btc donated[/img]
shows: (amount of bitcoins donated to my bitcoin address: 19uryzRmxaCRZDoGNk9ykKsqQyZBm1u1o7)

If you find this service useful, please let me know. In that case I would keep it running, refine & polish the source code, publish it to github and maybe add some new features.

BitcoinCleanup.com: Learn why Bitcoin isn't bad for the environment
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
deslok
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


It's all about the game, and how you play it


View Profile
September 13, 2011, 10:05:19 PM
 #2

Is there a way to get one that just says collected instead of donated?

"If we don't hang together, by Heavens we shall hang separately." - Benjamin Franklin

If you found that funny or something i said useful i always appreciate spare change
1PczDQHfEj3dJgp6wN3CXPft1bGB23TzTM
Ricochet
Sr. Member
****
Offline Offline

Activity: 373
Merit: 250



View Profile
September 13, 2011, 10:18:02 PM
 #3

Is there a way to get one that just says collected instead of donated?

I would imagine it's as simple as changing the last word in the code up above.  Yup.

deslok
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


It's all about the game, and how you play it


View Profile
September 13, 2011, 10:20:51 PM
 #4

*blinks twice* totally missed that when i read the code, thank you

"If we don't hang together, by Heavens we shall hang separately." - Benjamin Franklin

If you found that funny or something i said useful i always appreciate spare change
1PczDQHfEj3dJgp6wN3CXPft1bGB23TzTM
Spekulatius
Legendary
*
Offline Offline

Activity: 1022
Merit: 1000



View Profile
November 01, 2013, 02:16:11 AM
 #5

How can I display the current balance of my address?

If I try to implement this as a widget in wordpress it doesnt work:(

I can insert the URL as an image into text of any page in wordpress though. Any ideas?
Thx
arsenische (OP)
Legendary
*
Offline Offline

Activity: 1199
Merit: 1012


View Profile
November 01, 2013, 02:46:19 AM
 #6

How can I display the current balance of my address?

If I try to implement this as a widget in wordpress it doesnt work:(

I can insert the URL as an image into text of any page in wordpress though. Any ideas?
Thx

Sorry, I don't quite understand your problem. Never made wordpress widgets though. There is a help page with HTML example: http://ansrv.com/png/?help

Here is the example itself:

Code:
<img src='http://ansrv.com/png?s=Donated%20'/><img src='http://ansrv.com/png?s=http://blockexplorer.com/q/getreceivedbyaddress/19uryzRmxaCRZDoGNk9ykKsqQyZBm1u1o7/1'/><img src='http://ansrv.com/png?s= btc'/>




Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!