It wasn't long ago that I'd developed some code for my own WP based STEEM projects and implemented it with great satisfaction. However as sweet as this code was I'd written it really wasn't "ready" to be shared or implemented on other sites excluding my own... Until now!
Functionality & Usage
( Screencap taken from streemit.online/price which is currently being developed by @KLYE )
What this does is grabs the current prices from the popular crypto exchange poloniex.com for STEEM / SBD and Bitcoin and allows you to easily display them on your WP website!
One other really cool feature of this plugin is that now instead of having to hack STEEM or SBD into your site's functions.php all you have to do is activate the plugin, go to your Woocommerce setting page and select STEEM or SBD as your primary currency.
The plugin has been tested with the latest version of Wordpress (4.7.2). This plugin offering comes "as is" and while it is functional I would highly suggest you look into the code yourself and see how I've done it and modify the plugin to suit your exact needs. Some classes have been set to help web developers style the output of the shortcodes a bit nicer but I'll leave that mostly up to the developers implementing the plugin to figure out.
This is only version 0.0.1 of this plugin. It may be buggy so please keep that in mind before putting it onto your production sites untested. I will release more plugins and an updated version of this plugin if the STEEM community shows interest in this sort of thing.
Where to Download This Plugin?
steem-sbd-woocommerce.zip
Once you have it downloaded it installs just like any other WP plugin and you'll have the shortcode functionality as well as the woocommerce STEEM / SBD currencies available to you as soon as you activate the plugin! Have a good day and happy website building everyone!
How Do I Make The Shortcodes Refresh?!
I use Scripts n Styles WP plugin to pass the following jquery to the classes linked to the shortcodes forcing them to refresh every 15 seconds, place this code in the "head" element:
jQuery(document).ready(function() {
if (jQuery('#steempricediv').length){
setInterval(function() {
jQuery('#steempricediv').fadeOut();
jQuery('#steempricediv').load(' #steempricediv');
jQuery('#steempricediv').fadeIn();
console.log( 'Fetching STEEM Price...' );
}, 15000); //Delay here = 15 seconds
}
});
jQuery(document).ready(function(){
if (jQuery('#btcpricediv').length){
setInterval(function() {
jQuery('#btcpricediv').fadeOut();
jQuery('#btcpricediv').load(' #btcpricediv');
jQuery('#btcpricediv').fadeIn();
console.log( 'Fetching BTC Price...' );
}, 15000); //Delay here = 15 seconds
}
});
jQuery(document).ready(function(){
if (jQuery('#sbdpricediv').length){
setInterval(function() {
jQuery('#sbdpricediv').fadeOut();
jQuery('#sbdpricediv').load(" #sbdpricediv");
jQuery(' #sbdpricediv').fadeIn();
console.log( 'Fetching SBD Price...' );
}, 15000); //Delay here = 15 seconds
}
});
Will You Ever Charge For These Plugins?
Short answer: Never!! Long answer: I don't develop these tools with the thought of riches and fame in mind. These are tools I've written for my own web based STEEM projects that I am sharing with the community to help strengthen it as a whole. If you feel inclined to pay for using anything I create and share go ahead and send a donation to @klye with mention of donation in the memo somewhere. STEEM is my full time job and I hope to be able to continue to create awesome things for our network and our awesome users! <3 KLYE
If you want to help me continue developing STEEM stuff please consider giving me a witness vote. It only takes a few moments to vote @klye as witness and it means the world to me. :)
Big thanks to @personz for their donation! It's not the amount but the though. Thank you!
Vote @klye for Witness!
https://steemit.com/~witnesses
A Proud STEEMbassador of Canada
This is so cool @klye
Your knowledge and creativity are admirable. :) I almost wish I had WooCommerce on my site! LOL As it is I have to blow the dust off my site and do something with it.
Thanks Merej99! Appreciate the feedback.
I'm truly a jack of all trades as some would put it and I enjoy sharing my wealth of skills with the STEEM community. This is a very basic example of some of the code I deploy on some of my WP based sites.
In the future I will share more plugins to help others build their sites up.
Pepe!
?! I don't understand...
Is pepe that meme frog?
That look good. I feel like its a start to something very promising. Awesome work!
It's some functionality I had built for my own site and shared with the community!
Will be more coming in time.
This post has been ranked within the top 25 most undervalued posts in the first half of Feb 14. We estimate that this post is undervalued by $11.82 as compared to a scenario in which every voter had an equal say.
See the full rankings and details in The Daily Tribune: Feb 14 - Part I. You can also read about some of our methodology, data analysis and technical details in our initial post.
If you are the author and would prefer not to receive these comments, simply reply "Stop" to this comment.
Holy shit, you actually did some reading and learned how to use your and you're...CONGRATULATIONS! (You're still a moronic twat)
Look at you having a conversation with yourself. How fucking pathetic are you that you have nothing better to do than sit on your computer talking to yourself all day? You should take some of your own advice and maybe see a specialist. You should find a way to improve your life quality, you're obviously a sad, pathetic fuck with no friends and no life outside the internet. I really do feel for you. Now, go back to talking to yourself and fantasizing about fucking your sister you inbred hillbilly.
Good attitude 😄 👍 💯 Live long and prosper!
Appreciate the feedback.
If I was looking to make money on these things I'd have some pay to play model in place. Frankly it's not worth it for me to set that up and the more code I can share with everyone the better imho. Just doing what I enjoy and sharing it with others. Feels far greater than any software sale I could ever make. :)
Thank you for the tip btw! Very much appreciated!
🙂 My pleasure! In my experience, this kind of thing has a way of coming back to you very positively, in the very least from the process of creating and actually releasing fully publicly, open to scrutiny, etc., and often with hook ups for greater things 😉
Part of my witness campaign for STEEM is to develop and share things with the community. I had this plugin sitting on streemit.online for a while now but it only donned on me today that someone may actually want to use this on their own WP sites. :P
HAHAHAHAHA. NOBODY CAN SEE YOUR COMMENTS YOU STUPID FUCKING TROLL!!!!! It's also too bad you're such a poor troll you can't afford to even increase your SP to make your flags effective. Poor twat.
If I can interject a bit here man.
Perhaps instead of furthering the problem (i.e. Spamming your situation on a post that has NOTHING to do with this) you sit down and talk to @berniesanders. Generally I'd flag people coming onto my posts and trying to derail them but I can feel that you are hurting and I do not want to add to that.
@berniesanders despite popular belief can be reasoned with and isn't that bad of a guy once you get to know / talk to him a bit. We all have good and bad days.. Hopefully we can get you a better day going soon @livehonest.
@livehonest, I would suggest abandoning these accounts you've trashed and starting over with a new one where you don't act like a raging asshat. That's the easiest solution at this point and would allow you to potentially have a decent reputation if you can handle being civil.
Thank you for weighing in @berniesanders! Much appreciated!
Or instead of acting like a pissed of 5 year old just make a new account and try and be civilized man.. Christ.
I get you are upset about your accounts being nullified but what you are doing now with the bullshit posturing and threats isn't going to fly. While I believe in second chances for everyone when you are given one and decide to take it as a chance to speak once again like some butthurt school kid even my patience starts to wane.
Please, if you've any damn want to be part of this community and decency within you stop the way you are doing things, take a step back and come try again when you have cooled off a bit. :/
Is it? Anyone reading your past few weeks blurbs would likely not have been able to come to that conclusion. Well written posts solve things around here.. Not having a frickin' tantrum.
Good luck to you. I'm curious why it needs to be recorded in a spreadsheet if it's "permanent here on the blockchain", can you explain that one? Haven't you noticed that you're getting not getting the attention desire from this hissy fit?