My First Plugin - All Currency Ever Created

Plugin Support Discussion
Post Reply
User avatar
joanofarc
Posts: 131
Joined: Sat Sep 08, 2012 8:09 am

My First Plugin - All Currency Ever Created

Post by joanofarc »

I am not sure what to call it yet, but my first attempt at the plugins will be to create something similar to the chart on the main website, but basically show every unit of currency ever created. I am curious to how much is in circulation and how much is being or has been created. Will be a good exercise in plugins for me. :mrgreen: :mrgreen: :mrgreen:
User avatar
joanofarc
Posts: 131
Joined: Sat Sep 08, 2012 8:09 am

Re: My First Plugin - All Currency Ever Created

Post by joanofarc »

My first stab at plugins, borrowed a lot of code from timekoin to make it work.

Very simple plugin, install, click button, wait a while, get answer. :D

Took me about 2 minutes to get an answer, there are 2,062,526 timekoins in circulation right now!

Let me know what you think about it. :mrgreen:
Attachments
joanofarc.php.txt
Download, remove .txt form the end of it so that is is just joanofarc.php
(3.85 KiB) Downloaded 195 times
User avatar
KnightMB
Site Admin
Posts: 1019
Joined: Thu Feb 23, 2012 5:03 pm

Re: My First Plugin - All Currency Ever Created

Post by KnightMB »

Worked for me, I was surprised to see the total as well. :o I should probably put some type of updating counter on the main website, perhaps at the top of the page because it is an impressive number.
User avatar
bucket
Posts: 32
Joined: Thu May 16, 2013 8:30 pm

Re: My First Plugin - All Currency Ever Created

Post by bucket »

Where do you install these in the client version?
User avatar
joanofarc
Posts: 131
Joined: Sat Sep 08, 2012 8:09 am

Re: My First Plugin - All Currency Ever Created

Post by joanofarc »

You can't..... yet? Ask knightmb :)
I am not sure if it would work on a client because it has to load the entire database and decrypt all the generation transactions to add up the values. I don't think the clients have that kind of access to server api out there?
User avatar
koinmaster
Posts: 357
Joined: Mon Jun 18, 2012 8:07 pm

Re: My First Plugin - All Currency Ever Created

Post by koinmaster »

I do not see this being a client plugin if you need to load the entire database to tally up the amounts client would not be able to do this remotely I am sure.

Besides that, great first plugin! I am sure you can tweak it up and put the upgrades here for us to play with. :mrgreen:
User avatar
joanofarc
Posts: 131
Joined: Sat Sep 08, 2012 8:09 am

Re: My First Plugin - All Currency Ever Created

Post by joanofarc »

Bells and whistles should be added? :mrgreen:
User avatar
koinmaster
Posts: 357
Joined: Mon Jun 18, 2012 8:07 pm

Re: My First Plugin - All Currency Ever Created

Post by koinmaster »

No, do not! It works fine. I mean it takes forever to go over a million transactions but it works on mine. :o
User avatar
joanofarc
Posts: 131
Joined: Sat Sep 08, 2012 8:09 am

Re: My First Plugin - All Currency Ever Created

Post by joanofarc »

Thanks everyone, glad it works for you all. :mrgreen:
User avatar
Smarty
Posts: 43
Joined: Mon Aug 19, 2013 5:40 pm

Re: My First Plugin - All Currency Ever Created

Post by Smarty »

Worked fine for me, thanks for making it. Glad to see I can confirm what the website says.
Post Reply