Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Dynamic BTC price for marketers

I'm pretty sure I've seen a black box that's updating the price in BTC.
It was a few months ago I saw it. I think it's a great suggestion thought!
I've been trying to work on this, making a MyCode code but it gives me problems.
hi there.
(Jun 14, 2014 03:47 PM)Dave Skylark Wrote:  I've been trying to work on this, making a MyCode code but it gives me problems.

You cannot create a MyCode yourself just FYI.
(Jun 14, 2014 03:56 PM)'Snorlax Wrote:  You cannot create a MyCode yourself just FYI.

What do you mean just for myself?
I have a mybb site on localhost where I can work on it, but I think I'll leave it as I have no idea about coding.
hi there.
(Jun 14, 2014 04:02 PM)Dave Skylark Wrote:  What do you mean just for myself?
I have a mybb site on localhost where I can work on it, but I think I'll leave it as I have no idea about coding.

Ah alright then. I'm sure Omniscient knows how to. He already created the [sp]-tag which works like the [spoiler]-tag.
Also the [btc]-, [ltc]- and so on tags.
I'll let him work on it as I can't figure out what I'm failing at.
Hope he works this out and we get it, we really need something like this.
hi there.
I think this would be really convenient for sellers and buyers, it's easier than going to Prev and checking.
MIT EECS Comp Sci grad with an MBA from Wharton. | Need help with OS X or Macs? Read this! | "Simplicity is the ultimate sophistication." - Leonardo da Vinci
[Image: POVfq7u.png]

I threw together a quick prototype, which allows you to insert an image of the current value of a cryptocurrency in one of your post.

If you want to insert it in one of your posts, it's a simple image:

Code
[img]http://crypto.deadbeef.me/<from>/<to>/<amount>/<size>[/img]
OR
[img]http://crypto.deadbeef.me/<from>/<to>/<amount>/<size>/<amount>[/img] to add a fixed amount
[img]http://crypto.deadbeef.me/<from>/<to>/<amount>/<size>/<percentage>p[/img] to add a percentage (note the p)

Here are a few examples:

Code
http://crypto.deadbeef.me/btc/usd/1/normal: Value of 1 BTC in USD.
http://crypto.deadbeef.me/btc/ltc/5/normal: Value of 5 BTC in LTC. Supports BTC/LTC/PPC/USD
http://crypto.deadbeef.me/usd/btc/50/large: Value of $50 in BTC, displayed in a large font (supports normal, normal-bold, large, large-bold, x-large, x-large-bold)
http://crypto.deadbeef.me/btc/usd/5/normal/50: Value of 5 BTC in USD, plus $50 (the fixed value's currency is always the currency the amount is converted to)
http://crypto.deadbeef.me/ltc/btc/50/normal/10p: Value of 50 LTC in BTC, plus 10% (the p replaces the percent symbol as it won't work in URLs)

It uses the internal Preev API and computes averages between the different exchanges. To convert between cryptocurrencies, their USD value is used. It seems that you have to ask Omni if you want to use it though, for a mysterious reason.

I do not guarantee the accuracy of the values displayed nor its permanent availability. If you have found a bug or want the source, PM me.
(Jun 15, 2014 07:00 AM)Deadbeef Wrote:  I threw together a quick prototype. Here is the current value of 1 BTC: [img]http://crypto.deadbeef.me/btc/normal[/img].

If you want to insert it in one of your posts, it's a simple image:

Code
[img]http://crypto.deadbeef.me/btc/normal[/img]

There is other variants:

Code
http://crypto.deadbeef.me/ltc/5/normal: Value of 5 LTC (supports BTC/LTC/PPC)
http://crypto.deadbeef.me/btc/0.01/large: Value of 0.01 BTC, displayed in a large font (supports normal, large, x-large)

It uses the internal Preev API and computes averages between the different exchanges.

I do not guarantee the accuracy of the values displayed nor its permanent availability. If you want the source or find a bug, PM me.

I wanted the opposite. How much 50 dollars is in BTC for instance.

Good job though. It can be used.
(Jun 15, 2014 07:00 AM)Deadbeef Wrote:  I threw together a quick prototype. Here is the current value of 1 BTC: [img]http://crypto.deadbeef.me/btc/normal[/img].

If you want to insert it in one of your posts, it's a simple image:

Code
[img]http://crypto.deadbeef.me/btc/normal[/img]

There is other variants:

Code
http://crypto.deadbeef.me/ltc/5/normal: Value of 5 LTC (supports BTC/LTC/PPC)
http://crypto.deadbeef.me/btc/0.01/large: Value of 0.01 BTC, displayed in a large font (supports normal, large, x-large)

It uses the internal Preev API and computes averages between the different exchanges.

I do not guarantee the accuracy of the values displayed nor its permanent availability. If you want the source or find a bug, PM me.

If that's a php script or dynamic image you'll need Omniscient's explicit permission before using it on HF I think.
(Jun 15, 2014 07:18 AM)Robust Wrote:  If that's a php script or dynamic image you'll need Omniscient's explicit permission before using it on HF I think.

Looks like it's an image. Not sure though, but I know what you mean.
(Jun 15, 2014 07:09 AM)'Snorlax Wrote:  I wanted the opposite. How much 50 dollars is in BTC for instance.

Good job though. It can be used.

I updated my post; now you can.

(Jun 15, 2014 07:18 AM)Robust Wrote:  If that's a php script or dynamic image you'll need Omniscient's explicit permission before using it on HF I think.

It's a web server generating the image on request. I personally do not keep logs, but I removed the image from my post to comply with the rules. If you want to use it, you will have to ask Omni before; I don't want to deal with this.
(Jun 15, 2014 07:43 AM)Deadbeef Wrote:  I updated my post; now you can.

It's a web server generating the image on request. I personally do not keep logs, but I removed the image from my post to comply with the rules. If you want to use it, you will have to ask Omni before; I don't want to deal with this.

Ah yeah that's not good. You have to actually store the image on your webserver as far as I know. You cannot make it show dynamically like that.
(Jun 15, 2014 07:51 AM)'Snorlax Wrote:  Ah yeah that's not good. You have to actually store the image on your webserver as far as I know. You cannot make it show dynamically like that.

There is no difference at all.     
(Jun 15, 2014 07:53 AM)Deadbeef Wrote:  There is no difference at all.     

https://hackforums.net/showthread.php?tid=1638851

That only applies to signatures and avatars. I am not sure if this would count, but my guess it that it won't.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by LanteMay 5, 2017 11:56 AM 21 880 May 5, 2017 11:56 AM
Last Post: Armada
by ParamoreMay 13, 2013 12:41 PM 1 189 May 13, 2013 12:41 PM
Last Post: Isidar