Bitcoin Forum
May 04, 2024, 10:51:16 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Realtime Pricing $ to BTC BBCode Image Service by BitcoinMint.US  (Read 3337 times)
BitcoinMint.US (OP)
Sr. Member
****
Offline Offline

Activity: 284
Merit: 251



View Profile
February 20, 2012, 03:35:59 PM
Last edit: February 20, 2012, 07:22:13 PM by BitcoinMint.US
 #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
1714863076
Hero Member
*
Offline Offline

Posts: 1714863076

View Profile Personal Message (Offline)

Ignore
1714863076
Reply with quote  #2

1714863076
Report to moderator
1714863076
Hero Member
*
Offline Offline

Posts: 1714863076

View Profile Personal Message (Offline)

Ignore
1714863076
Reply with quote  #2

1714863076
Report to moderator
1714863076
Hero Member
*
Offline Offline

Posts: 1714863076

View Profile Personal Message (Offline)

Ignore
1714863076
Reply with quote  #2

1714863076
Report to moderator
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714863076
Hero Member
*
Offline Offline

Posts: 1714863076

View Profile Personal Message (Offline)

Ignore
1714863076
Reply with quote  #2

1714863076
Report to moderator
1714863076
Hero Member
*
Offline Offline

Posts: 1714863076

View Profile Personal Message (Offline)

Ignore
1714863076
Reply with quote  #2

1714863076
Report to moderator
1714863076
Hero Member
*
Offline Offline

Posts: 1714863076

View Profile Personal Message (Offline)

Ignore
1714863076
Reply with quote  #2

1714863076
Report to moderator
BitcoinMint.US (OP)
Sr. Member
****
Offline Offline

Activity: 284
Merit: 251



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

Reserved for future post.
alkhdaniel
Member
**
Offline Offline

Activity: 114
Merit: 10


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 (OP)
Sr. Member
****
Offline Offline

Activity: 284
Merit: 251



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
Merit: 0



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:  

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