MyBB Community Forums

Full Version: Bitcoin Price Plugin - MyBB - In Dev
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
BTC Price for MyBB

A relatively small plugin that will currently display BTC price wherever you use the below variable in any template :-
$btcprice

Just added a repository related to BTCPrice for MyBB
https://github.com/WallBB/BTCPrice-MyBB

Current plan is -
[] To show price of bitcoin without manual addition of variable
[] To add more crypto currency in the list

Once the plugin is complete, I will submit it to MyBB mods.
I will be working on this in my free time, feel free to contribute or suggest any further edits. Smile

Regards
WallBB
Would it be possible to add more Currencies?
Thanks.
(2018-03-13, 06:50 PM)jrdev Wrote: [ -> ]Would it be possible to add more Currencies?
Thanks.

It looks like it's on his list to-do, and yes it's possible to add more I've made a plugin displaying many coins using the coinmarketcap API for a friends forum.
I added some ideas to your Github to improve this.

https://github.com/WallBB/BTCPrice-MyBB/issues/1

And a note on the settings comments...if you really want a setting do something for currency like USD or something for the API for those who have different regions.
(2018-03-13, 06:50 PM)jrdev Wrote: [ -> ]Would it be possible to add more Currencies?
Thanks.

(2018-03-13, 07:47 PM)0xB9 Wrote: [ -> ]
(2018-03-13, 06:50 PM)jrdev Wrote: [ -> ]Would it be possible to add more Currencies?
Thanks.

It looks like it's on his list to-do, and yes it's possible to add more I've made a plugin displaying many coins using the coinmarketcap API for a friends forum.

(2018-03-13, 08:24 PM)labrocca Wrote: [ -> ]I added some ideas to your Github to improve this.

https://github.com/WallBB/BTCPrice-MyBB/issues/1

And a note on the settings comments...if you really want a setting do something for currency like USD or something for the API for those who have different regions.

Yes to all answers, it is in dev stages and just initial draft.
This will be improved Smile
have you finished your project yet?
This is what I have through the customized plugin that I have on my website.

[Image: 37d7fba2f0edd0f7a9f4a6f3beef695c.png]
Nasyr has developed this plugin into a much more beautiful plugin, please use this now
https://github.com/Admixing/CryptoPrice-MyBB
This is a bad plugin to use.

https://github.com/Admixing/CryptoPrice-...oprice.php

1. No cache of the prices.
2. Does a file_get_contents on EVERY SINGLE PAGE LOAD because it hooks into global_start.
3. It should use fetch_remote_file(), a default MyBB function, instead of file_get_contents().

That plugin should NOT be used. A good plugin will have a setting to put the prices into $cache from a task in set intervals which might be 1 minute or maybe 5-10 minutes. What this plugin does is load every single time any page loads. Very bad.
(2018-12-17, 05:40 PM)labrocca Wrote: [ -> ]This is a bad plugin to use.

https://github.com/Admixing/CryptoPrice-...oprice.php

1. No cache of the prices.
2. Does a file_get_contents on EVERY SINGLE PAGE LOAD because it hooks into global_start.
3. It should use fetch_remote_file(), a default MyBB function, instead of file_get_contents().

That plugin should NOT be used. A good plugin will have a setting to put the prices into $cache from a task in set intervals which might be 1 minute or maybe 5-10 minutes. What this plugin does is load every single time any page loads. Very bad.
@Nasyr, is taking care of this plugin.
I will let him know about this.
Pages: 1 2