Bitcoin Forum
September 23, 2017, 09:35:21 AM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: *Free* Realtime simple text-to-image service (btc info in static pages & posts)  (Read 3713 times)
arsenische
Legendary
*
Offline Offline

Activity: 1153


View Profile
September 07, 2011, 06:27:17 AM
 #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.

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1506159321
Hero Member
*
Offline Offline

Posts: 1506159321

View Profile Personal Message (Offline)

Ignore
1506159321
Reply with quote  #2

1506159321
Report to moderator
1506159321
Hero Member
*
Offline Offline

Posts: 1506159321

View Profile Personal Message (Offline)

Ignore
1506159321
Reply with quote  #2

1506159321
Report to moderator
deslok
Sr. Member
****
Offline Offline

Activity: 462


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



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


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



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
Legendary
*
Offline Offline

Activity: 1153


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!