Bitcoin Forum
December 02, 2016, 10:21:03 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Realtime Pricing $ to BTC BBCode Image Service by BitcoinMint.US  (Read 3122 times)
BitcoinMint.US
Sr. Member
****
Offline Offline

Activity: 267



View Profile
February 20, 2012, 03:35:59 PM
 #1



www.BitcoinMint.US is now offering use of our BBCode pricing script to help sellers on this forum accurately price their goods in BTC.
Feel free to inquire with any questions and don't forget to let us know what you think of our service.


Code:
[img]http://www.bitcoinmint.us/cgi-bin/btcval?usd=12.5[/img]


Code Variables (add "&" and then the code to use):
usd  = the US dollar amount
size = the size of the font
fg   = the color of the font
bg   = the color of the background

Code:
[img]http://www.bitcoinmint.us/cgi-bin/btcval?usd=12.5&size=15.5&fg=ff0088&bg=0000ff[/img]



Donations for this service in BTC can be sent to: 123HoqWtvujHtAP3kywFyj6TnVEmEADVme
1480717263
Hero Member
*
Offline Offline

Posts: 1480717263

View Profile Personal Message (Offline)

Ignore
1480717263
Reply with quote  #2

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

Posts: 1480717263

View Profile Personal Message (Offline)

Ignore
1480717263
Reply with quote  #2

1480717263
Report to moderator
1480717263
Hero Member
*
Offline Offline

Posts: 1480717263

View Profile Personal Message (Offline)

Ignore
1480717263
Reply with quote  #2

1480717263
Report to moderator
1480717263
Hero Member
*
Offline Offline

Posts: 1480717263

View Profile Personal Message (Offline)

Ignore
1480717263
Reply with quote  #2

1480717263
Report to moderator
BitcoinMint.US
Sr. Member
****
Offline Offline

Activity: 267



View Profile
February 20, 2012, 03:52:32 PM
 #2

Reserved for future post.
alkhdaniel
Member
**
Offline Offline

Activity: 114


View Profile
February 20, 2012, 06:49:11 PM
 #3

Source for similar script if you want to host it yourself, requires php gd & json.
Code:
<?php
$opts 
= array(
  
'http'=> array(
    
'method'=>   "GET",
    
'user_agent'=>    "MozillaXYZ/1.0"));
$context stream_context_create($opts);
$json file_get_contents('https://mtgox.com/code/data/ticker.php'false$context);
$jdec json_decode($json);
$ppbtc round($_GET["usd"]/$jdec->{'ticker'}->{'sell'}, 2);
$length strlen($ppbtc);
//add [$length += 3;] if you want "BTC" at the end:
$im imagecreatetruecolor(($length*8), 13);
$bg imagecolorallocate($im000);
$black imagecolorallocate($im100);
imagecolortransparent($im$bg);
imagestring($im400$ppbtc ."BTC"$black);
header('Content-type: image/png');
imagepng($im);
imagedestroy($im);
?>


Code:
[img]http://74.63.229.70/convert.php?usd=10[/img]
BitcoinMint.US
Sr. Member
****
Offline Offline

Activity: 267



View Profile
February 20, 2012, 07:24:29 PM
 #4

Source for similar script if you want to host it yourself, requires php gd & json.

Cool.  Thanks for posting.  They should assimilate your script into the forum software.
CryptoGolfer
Newbie
*
Offline Offline

Activity: 12



View Profile WWW
April 29, 2012, 11:32:52 PM
 #5

Can this feature/code be made into a wordpress plugin, if it hasn't already??
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!