Author

Topic: *Free* Realtime simple text-to-image service (btc info in static pages & posts) (Read 3815 times)

legendary
Activity: 1199
Merit: 1012
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:




legendary
Activity: 1022
Merit: 1000
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
sr. member
Activity: 462
Merit: 250
It's all about the game, and how you play it
*blinks twice* totally missed that when i read the code, thank you
sr. member
Activity: 373
Merit: 250
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.

sr. member
Activity: 462
Merit: 250
It's all about the game, and how you play it
Is there a way to get one that just says collected instead of donated?
legendary
Activity: 1199
Merit: 1012
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=&c=&b=&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.
Jump to:
© 2020, Bitcointalksearch.org