Today I present you with another wordpress plugin GK Steemit Info that allows wordpress powered sites to easily display steemit related info via widgets and/or shortcodes
Purpose of the plugin
The plugin serves as a means to add, into your current wordpress installation, one or more widgets/shortcodes that allow displaying steemit related info.
At the moment, we created the functionality to fetch and display the number of total users on steemit at current moment in time, auto-refreshing every few seconds. By default it refreshes every 5 seconds, with the capacity to make the refresh rate slower on a user defined value. This can be edited on a widget or shortcode level.
This serves as potentially useful info for you, your site visitor, and more importantly can be a good marketing tool to steemit as well to capture more signups.
Coding the plugin
As a standard wordpress plugin, we utilized PHP as back end language, but also jquery, CSS+HTML for front end display and processing. We also relied on steemjs library for fetching the steemit API info.
steemjs is available for connectivity via CDN link: https://cdn.steemjs.com/lib/latest/steem.min.js
Utilizing the plugin
After setting up the plugin and successfully activating it, you would have new widget available called Steemit Info Widget, which can be easily dragged and dropped into any widget section you would like to add it into. The widget allows configuring the title but also the refresh rate of the ticket.
Alternatively, you could also use the shortcode version to place the info anywhere in your code or on any page using the following shortcode format:
[steemit_user_count refresh_frequency=5000]
Downloading the plugin
The plugin is available on the official GitHub repository.
The most recent commit is accessible via this link
Feel free to check it out and use it. Let me know should you have any questions :)
Thank you
Posted on Utopian.io - Rewarding Open Source Contributors