Introducing STEEM / Steem Backed Dollar Price Display Plugin & Woocommerce Currencies!

in #steem8 years ago (edited)

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

The "STEEM/Steem Dollar/BTC Prices & Woocommerce Currencies" Wordpress plugin allows aspiring website owners to add STEEM as well as SBD (Steem Backed Dollars) as a currency to their woocommerce based web shops. As an added bonus I've also included 3 shortcodes that can be displayed on page which will show the current prices in Bitcoin for STEEM and SBD. Also included is a BTC / $USD price shortcode. Output of the shortcodes pictured below:

[steemprice]
[btcprice]
[sbdprice]


( 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?


You can grab v0.0.1 of this Wordpress plugin simply by clicking on the link below:

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

Thank you for your votes, the opportunity and support!

Sort:  

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.


This flag attack is because @klye likes to call people names, and you're on his follow list. Your blog will now be attacked daily until either: you are not on his follow list, or he apologizes to me for name calling. All comment/s and/or post/s are subject to flagging, ty. If you would like to flag back instead, I have 4 accounts in the negative already, flag away. They are expendable. The entire blockchain could flag them and I would not care. Cheers ~ Sincerely, @iLoveUpvotes ~


Help! did you see that nekkid streekin flagger fuck @klye run past here? D:


This flag attack is because @klye likes to call people names, and you're on his follow list. Your blog will now be attacked daily until either: you are not on his follow list, or he apologizes to me for name calling. All comment/s and/or post/s are subject to flagging, ty. If you would like to flag back instead, I have 4 accounts in the negative already, flag away. They are expendable. The entire blockchain could flag them and I would not care. Cheers ~ Sincerely, @iLoveUpvotes ~


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.

work mother fuckers, work!

Now that's irrational and out of order like a 5 year old. You get the difference yet you dense mother fucker.

you getting this convo you piece of faggot shit. I dont care what anything in the world thinks of me. I am immune to people in life and cold to all they are. You want attacks mother fucker, come get it with that dick sucker. Nothing you post, nothing you say, nothing any person in this life does sways me. I am my own cold ass mother fucker. I do not care of your flags, your talk, or your bots ho. Never will. I will only fucking taunt you like life has taunted me since birth you faggot. So my advice is, this better be the last fucking posts about my name unless you want to see me again. I will not stop, ever. That's a fucking promise boy. I care not what the world sees or thinks. Not even my own mother fucking mother. Get a hint and back up fuck boy. Have a good one right. And again, this better be the last fucking post about me.

quick, klye and bernie need help protecting flaggers and people that attack accounts, help! ...lol


This flag attack is because @klye likes to call people names, and you're on his follow list. Your blog will now be attacked daily until either: you are not on his follow list, or he apologizes to me for name calling. All comment/s and/or post/s are subject to flagging, ty. If you would like to flag back instead, I have 4 accounts in the negative already, flag away. They are expendable. The entire blockchain could flag them and I would not care. Cheers ~ Sincerely, @iLoveUpvotes ~


Help! did you see that nekkid streekin flagger fuck @klye run past here? D: Stranger danger!!!!!!! Screams like a girl and runs! @klye & @berniesanders are after me! ... .. ..lol

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.


This flag attack is because @klye likes to call people names, and you're on his follow list. Your blog will now be attacked daily until either: you are not on his follow list, or he apologizes to me for name calling. All comment/s and/or post/s are subject to flagging, ty. If you would like to flag back instead, I have 4 accounts in the negative already, flag away. They are expendable. The entire blockchain could flag them and I would not care. Cheers ~ Sincerely, @iLoveUpvotes ~


Holy shit, you actually did some reading and learned how to use your and you're...CONGRATULATIONS! (You're still a moronic twat)

On a brighter note, i learned a couple of things at band camp. Like...like, how to bully nerds. It was a good time. Very educational. When i grow up i want to be better than batman. My review of him is he is a bitch, why be cool at all. Just donkey stomp the mother fuckers and keep walking.

such an angry little girl you are bernie. Would you like a joint mother fucker? would that help relax your pee brain? blunt? bong? anything? I can throw that shit in a fireplace and you can stand on the roof over the chimney and just inhale. All kinds of fancy ideas.

your comments to me, are like..like..a kid kicking a can. Of no concern to me. If that is you trying to be mean, then go shove yourself back up your mothers twat, fall out again on your head, and try again.

Would you like to see the product of people like you. You simply have to meet me. You would adore me my friend. I will show you the cold empty product of what life makes when it takes at all points. You wannabee fake as little puke. You keep calling me a twat btw. I love twat being the dude that i am. and i do love myself, so i can see your point. A dude called me a tit one time too, dont think he knew just how much i adore a good pair tho.

you want to learn how to be mean in a cold world you soft little bitch then get back here you pathetic mother fucker and learn something.

did someone die in your family lately? a friend perhaps? Well, I don't care. Go fuck yourself. Shit happens. That's why your here. Shit floats, that's why your trying to remain on top. Pinches your little soulless cheeks. There is some cold and empty back at ya. Eats a cheeto*

Goddammit ethel, the boys done lost it!

i speel gud oll thu time bich. i gotz me a fukin edgeumukation. fuc yoo and thu horsee yoo rode in on.

I LEARNED PAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA! YAY! & Shiddlesticks?

where the fuck you at bitch face get back here.

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.

that all you got nigger face? lol

Come at be with more. Because that was pathetic going off of my baseline. Be original. lol

btw, i'm busy so stfu little bitch. Good bitch. Sit.

fact is none of your talk means shit to me. It might work on your girl mother fucker, maybe even you abusing your mother. But not me home slice. You better go get fucked up in life a few years and come back a real soldier peewie.

Or is the only woman in your life your mother. The last and only pussy you might ever see. I kinda feel bad for you at this point. I'll have to redirect my anger inflated by you 2 gay fucks towards more followers. I have no pillow. My heart is empty, my self....shallow. I bid you all well for the rest of the day as I annoy the server in your kind names.

@klye, i call them a faggot too because not one of them out of a million can stand up to my big ass and make me speak. they like it, you will learn also in time.

both you lame mother fuckers come at me lol, all of you. skinny ass little nerd mother fuckers lol. bernie bro, stfu before your mother takes your computer away xD ... klye, the gay binge happened in the 50's in my imagination son. Prohibition worked. And still stands in my fairy tale land. Well, only for you. Not the other kind gaywads i know.

@wormieflanders
do you have a woman that is not made of plastic and that does not require your hot air to bring to life only for a few seconds of fame with your imaginary friend? Just wondering over here.

@klye, your link returns error 404. File not found. Can you send the link? I need this plugin please.

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.

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

This is going to be fun lol

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.


This flag attack is because @klye likes to call people names, and you're on his follow list. Your blog will now be attacked daily until either: you are not on his follow list, or he apologizes to me for name calling. All comment/s and/or post/s are subject to flagging, ty. If you would like to flag back instead, I have 4 accounts in the negative already, flag away. They are expendable. The entire blockchain could flag them and I would not care. Cheers ~ Sincerely, @iLoveUpvotes ~


lol, u mad at peanut butter and jelly talkin shit then? xD


This flag attack is because @klye likes to call people names, and you're on his follow list. Your blog will now be attacked daily until either: you are not on his follow list, or he apologizes to me for name calling. All comment/s and/or post/s are subject to flagging, ty. If you would like to flag back instead, I have 4 accounts in the negative already, flag away. They are expendable. The entire blockchain could flag them and I would not care. Cheers ~ Sincerely, @iLoveUpvotes ~


come back there is more people to make feel little!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Help! did you see that gay nekkid streekin flagger fuck @klye run past here? D: Stranger danger!!!!!!! Screams like a girl and runs! @klye & @berniesanders are after me! ... .. ..lol

This is a live attack on my accounts @iloveupvotes right now by @berniesanders

This Could Happen To You.


Sincerely, @iloveupvotes ~


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.

You control nothing. I will keep them, and make more. And will continue to compile proof of your abuse in the worksheet for everyone to see. Let the world flag that post, it will still stand seen from 100 accounts. It's the new permanent here on the blockchain. I never give up. This is about moral and equality. As long as I'm attacked, I compile and grow more expendable everyday.

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. :/

"This is about moral and equality"

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.

I got an idea. Why don't all of you talking shit from the assholes in the middle of your faces go fuck yourself. You control nothing. Come at me. In every way. Every...way. Come control me fuck boys. C'mon. lol

No threat either boy, it's a fact. I knock shit out that talks like that in my face. FACT. Do I look anything other than rebel to you dopey?

"This is about moral and equality"
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.


Re to this shit. It's been a month. Times up for debating and solutions. You all want a pissed off person you got it. Now watch me go.

Help! did you see that gay nekkid streekin flagger fuck @klye run past here? D: Stranger danger!!!!!!! Screams like a girl and runs! @klye & @berniesanders are after me! ... .. ..lol

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?

Because even if that one disappears like magic, which seems more possible everyday, I'll repost twice for every erase until it too grows out of control. It's about being prepared and smarter than not.

You simply like to talk shit. Fact is, in real...you wouldn't be talking. You would be on the floor tough talker.

where you at faggot face. I'm tired of waiting for the next entertaining comment. Get your pathetic ass out here.

In short, your protecting your own truth with every flag, every attack. You embed it more into a more expendable and perm. account able to be flagged by the entire blockchain and still seen by an account immune to flags. Besides, I keep an extra text copy with every modification. It's forever here. I simply want equality.

Help! did you see that gay nekkid streekin flagger fuck @klye run past here? D: Stranger danger!!!!!!! Screams like a girl and runs! @klye & @berniesanders are after me! ... .. ..lol

not bad for a fucking negative ey!

really klye. this dude is a real monster, a real bad guy. you want me to rationalize with an undomesticated person bro...really...

would be no spam if i had a voice. period.

where's the rest of the fucking talkers?

Well damn that sob has over 100 fukin sp.

Time for talking is over. There will be no more debates, no more talks. No more rationalizing with anyone. That chance is over. You like flags, you got it. I got that shit all day. And going to add more fuckin sp.

Coin Marketplace

STEEM 0.16
TRX 0.16
JST 0.028
BTC 60732.06
ETH 2345.63
USDT 1.00
SBD 2.46