WordPress bitcoin ticker plugin, anyone?

wordpress logoA few days ago, I decided that a blog about cryptocurrencies needed a bitcoin ticker. So I went looking for a WordPress bitcoin ticker plugin widget. To my great surprise, entering “bitcoin ticker” into the WordPress plugin repository search box returned zero results. Almost 25,000 plugins and nobody has released a simple bitcoin ticker yet?

So I wrote one myself. It’s been running for several days in the right sidebar without causing any issues, so I published it to the WordPress plugin repository this morning. You can download it here, if you’ve got a blog that could make use of such a thing (or simply install it via your WordPress installation’s plugin administration area by searching for “cryptocurrency ticker”).

It’s quick and dirty, but it does cache quotes for a time that you specify, and allow you to toggle each currency on or off—just in case you’re a litecoin hater =). If it looks like people are using it, I’ll go back at some point and re-write it to fetch quotes asynchronously on cache misses (and perhaps support some other altcoins, as well).

Update 2/13/2014: The ticker has been updated to version 1.1 and now supports displaying quote prices in Euros. In addition, BTC quotes are now fetched from Coinbase, due to the ongoing problems at Mt. Gox.

You can leave a response, or trackback from your own site.

11 Responses to “WordPress bitcoin ticker plugin, anyone?”

  1. sadmin says:

    I just wanted to say Thank You for the blog, I have found it to be a clear and great resource when getting started into mining. Im rather late to the game but still interested in the potential opportunities. Keep it up!

  2. Blarry says:

    Sweet! I was just watching Plan B (http://www.jupiterbroadcasting.com/36156/flight-of-the-butterfly-plan-b-3/) and liked the ticker they have during the broadcast, google brought me here. downloading it now!

  3. saigo says:

    Hi CB,

    Trying to get your ticker working on my wordpress site. As far as I can see i’ve installed as required, but all I see on my page is the word “ticker”, and nothing else. Scratching my head as to what the problem could be, maybe something with the CSS ? Any suggestions of what to check / try appreciated. ( plugin is currently deactivated ).

    Thanks,

    Saigo

    • CryptoBadger says:

      Make sure that you check the plugin options (go to appearance -> widgets, then click on the ticker plugin in your WordPress administration area). Check that at least one currency is enabled. If that looks good, clear the plugin cache by selecting the “delete cache” option and pressing “save”.

      If you’re running another WordPress cache plugin (W3 Total Cache, etc), clear that cache after clearing my plugin’s cache. You’re probably looking at a cached version of the ticker plugin’s output with no currencies enabled.

      • Aaronjw says:

        I tried this for my bitcoin store which is a woocommerce plugin on a wordrpess site. It causes my WordPress Admin bar to disappear when enabled and it messes up my main sidebar and overwrites my css if placed there. If placed in my footer it doesnt seem to mess with the css of the other elements, but the first problem with the admin sidebar and it messing with my background persist. I’m disabling it for now. If it matters, Im using 2012 theme with Black background.

        • CryptoBadger says:

          That’s strange – it almost sounds like one of my CSS elements is colliding with something that you already have on your page, but I prefaced all of my elements with “crypto-ticker-” to ensure that wouldn’t happen.

          Are you sure that there isn’t an unclosed div or table html tag somewhere on your page? You can run a page on your site through the W3C Validator to check for potential issues.

  4. Bigboi says:

    Having same problem here 🙁

    Have the widget setup correctly in a sidebar!

    I get

    BTC = (via MTGOX)
    LTC = $0.00 (via BTC-e)

    Toggled and played with things, deleted cache e.t.c!

    Funny one….using within a Theme not sure if that could be the problem?

    But Great Plugin when/if i get it working lol

    • CryptoBadger says:

      If the price is missing or zero, that means that my plugin was unable to get a response from Mt Gox and/or BTC-e. That can happen once in awhile if the sites goes down, etc – but if it’s always happening, it’s possible that the problem is on your website’s end.

      Check your firewall rules to make sure that the plugin isn’t being prevented from contacting Mt Gox & BTC-e. The plugin makes HTTP calls on port 80 to both websites – make sure your firewall is allowing it.

      Edit: Just remembered that the API call to BTC-e is secure, so you’ll also need to make sure that port 443 is open for outbound HTTPS traffic.

      • Bigboi says:

        Wow…Thanks for quick reply!

        Its on a live server and i have tried it on a couple of live sites now to see if it was theme specfic?

        Unless its a hosting issue? but i have various bits that call and retrive data working already im at a loss?

        Any suggestions?

        Based in UK….Namesco hosting if it helps?

        But thanks for prompt response either way!

        Cheers

        • CryptoBadger says:

          Hmmm… if it’s not a firewall issue then I’m not sure what it could be. Perhaps something else is caching the result for a much longer time than the plugin itself, so you’re not seeing it update? Try disabling any caching plugins that you have, or exclude my plugin from being cached if you can (and then delete my plugin’s cache, and try to view it again).

          If that doesn’t do it, I unfortunately don’t know what the issue could be. =(

Leave a Reply