Shopify App oAuth Error FIX, “Invalid Request! Request or redirect did not come from Shopify” PHP

I spent about 3 hours this morning trying to figure out what happened to my Shopify App. It is June 1st, 2016, which is sugnificant because now that I know what happened, apparently Shopify has changed how they want you to authenticate your App. They have dropped the SIGNATURE parameter and want you to authenticate using a hashed HMAC.

Here is how I fixed the problem… (This is in PHP by the way, not Ruby) Continue reading “Shopify App oAuth Error FIX, “Invalid Request! Request or redirect did not come from Shopify” PHP”

Adding line breaks within a string in PHP

This is something that has been on my “unsure” list for a long time. Partly because I haven’t really done my research on it and because, well, I just don’t require this very often. Finally, today I had a situation come up when I needed to ensure that the notes I am adding into the database are broken up with a line break between each note.

I know that there are these “\n” and “\r” or something like that but any time I’ve tried using them in the past it never worked consistently.

So today I decided to, once and for all, get to the bottom of this. Continue reading “Adding line breaks within a string in PHP”

Monarch Plugin Custom Shortcode for WordPress

I am a web designer so naturally I do not follow standard website layouts… I love the Monarch social sharing plugin for WordPress, but I needed a way to add the inline sharing buttons to a custom sidebar that I’ve made. I searched high and low to find a way to do this using their settings but there is just no way to do it.

They have a shortcode for adding the Follow buttons anywhere you want but not the sharing buttons. I went ahead and added this capability by adding a few lines of code to their plugin. Here is how you do it.

1. Find the function named “display_inline” in monarch.php file and right after this function closes, add this function:


/**
* Adds monarch wherever you put the shortcode.
*/
function display_custom() {
$monarch_options = $this->monarch_options;

return $this->generate_inline_icons( 'et_social_inline_top' );;
}

Now go up to around line 119 and find this line:

add_shortcode( 'et_social_follow', array( $this, 'display_shortcode' ) );

Right below it add this:

add_shortcode( 'et_social_share', array( $this, 'display_custom' ) );

That’s it.

Now you can add your sharing buttons anywhere you want using the [et_social_share] shortcode.

To add it in your PHP, you can do this:

echo do_shortcode('[et_social_share]');

Enjoy!

Best Email Confirmation Page Message

This must be the best email confirmation page message that I have ever seen. It’s not the regular one I am used to seeing, this one actually got me to read the info on it. Very clever. This and the Error 404 pages, when designed in a clever way and actually treated as a useful tool can produce a lot more results and may even capture more sales as a result.

Take a look at this screen capture, this is what I got today after filling out a form on a landing page. I am not used to seeing this and because it was so unusual, I actually read it. Had this message have had an up-sell or some other important information other than to tell me to confirm my email, it would definitely get through. Continue reading “Best Email Confirmation Page Message”

Create A Quick Dashed Line In Photoshop

Every time I need a dashed line I have to create one from scratch and it really makes me mad, every time, that there is not a quick way to do this in Photoshop. Today, I found a way! Here is how to get a quick perfect dashed line every time you need it. Continue reading “Create A Quick Dashed Line In Photoshop”

Hand-Drawn Lines with Transparent Background PSD & PNG

While working on one of my projects I had to create a set of hand-drawn lines, scan and then isolate them so I can use them in my design. If you know me, you know that I don’t like to let a useful design go to waste by only using it once. This is why I put it up on the blog for others to use. This is a set of various width hand-drawn lines with transparent background so you can use them for anything. The original file is also in 300 dpi so this can be used in print projects. Download them below (under the image). Enjoy! Continue reading “Hand-Drawn Lines with Transparent Background PSD & PNG”

Huge 492 Quality Graphics Kit You Need

As I work on things I create various graphics. Why let all that goodness go to waste? I took some of those designs and expanded on them making them better, adding variations and different colors. This kit of 492 graphics contains a ton of price tag graphics, a couple of price tables, step lines, buttons and all kinds of other eye candy! Continue reading “Huge 492 Quality Graphics Kit You Need”

Steve Jobs is gone, but will never be forgotten

As we have moved into the year 2012, we must stop for a moment to think and to consider what we have lost in 2011. It was a year with huge stories full of drama, happiness, revolutions and change, but 2011 also brought us its fair share of tragedy and deaths as well. The most notable losses among them were of Steve Jobs, who revolutionized our modern lives and changed the way we look at technology and business. He died after a long and tiresome battle with pancreatic cancer.

Steve Jobs; a visionary transformer

Steve Jobs single-handedly transformed Apple into a multi-billion dollar revenue generating machine with his blunt and straightforward business ethics while completely changing how an average person listens to his music, uses his cell phone, and works on his computer. He made a long-lasting impact on the global consumer electronic products market with a series of top notch successful products starting with the iPod, the iPhone and finally the iPad. In just about a decade’s time, he dragged Apple from the clutches of total bankruptcy to the world’s # 1 consumer electronic company. Steve’s intelligence, brilliance and passion cannot be replaced anytime soon because the world lost an innovator and a visionary.

Reactions of employees and fans

From Apple’s highly sophisticated headquarters in Silicon Valley to its high tech retail stores (over 357 as of October 2011), employees and fans alike were all greatly taken back by the sad demise of the man they loved. He was lovingly called as just ‘Steve’ by his followers.

Few days after the death of Steve Jobs, the realization started to sink in the hearts of Apple’s sixty thousand plus workforce that he was no longer there with them. Some employees have publicly announced that they will be working extra hours with increased dedication in honor of Steve Jobs because he personified the work ethics and how success can be achieved through complete dedication.

One inventor’s opinion of the other

Even, his long time rival and partner, Bill Gates had nothing, but praise for the man. Bill Gates recently said that Steve’s loss will have a considerable impact on how creativity and inventions are pursued and its impact will be felt for generations to come in the world of technology. He was quoted, “For those of us lucky enough to get to work with him, it’s been an insanely great honor. I will miss Steve immensely…”

Steve Jobs, A role model for many

Similarly, his large legion of fans spread across the globe, considered Steve Jobs as a hero and a larger than life character. His fans were intrigued by his casual personality and lifestyle decisions. There was something really unique about the man, his thinking and the way he presented himself before the public. He was considered as some one with a touch of craziness inside him.

Steve Jobs was an inspiration for many particularly the young generation. In August 2009, Jobs was chosen as the most admired entrepreneur among teenagers. It doesn’t really come as a surprise because he represented energy, passion and the will to take absolutely crazy risks.

How Steve Jobs had an impact on an ordinary person’s life?

In the wake of his death, many of his loyal followers and fans are of the opinion that Steve Jobs should be awarded the Nobel Prize for his efforts and be officially recognized for his success in the world of technology. Steve Jobs did not just change the lives of normal healthy people; he also created all his products with the problems and issues of the disabled in mind. Many of his fans belong from families that have a disabled person with them. It shows how user friendly Apple’s (Steve’s inventions) products were.

Steve’s impact on the IT world

Every new product that Steve Jobs created was an invention by itself and not just an upgrade of a previous model or design. His inventions appealed to the mass market and the public at large. People were dumb founded how for example the iPhone revolutionized the cell phone design. Job’s products are worthy of being placed in a museum not because of it’s age, but rather the ground-breaking effect it had on the technology industry and on the daily lives of people.

Steve Jobs is no longer among us, but his legacy will live on forever. He’s already being called the greatest personality of our modern age and is being compared to inventors like Albert Einstein, Henry Ford and Thomas Edison.

Written by Frederic, freelance  writer, web blogger and data recovery software consultant.

BACKUP, CLONE & Restore WordPress With 1 Click!

If you use WordPress to blog, here is an awesome WordPress BackUp tool a friend showed me. This thing backs up everything… Posts, pages, images, plugins, all the settings, all of it!

I’ve been blogging for over 7 years and have always had this scary thought in the back of my mind, “What is it crashes, I don’t have any back ups”. I have looked into backing it up but nothing is convenient enough to stick to. The plugins out there are half-decent but not worth investing in.

When I got an email from a friend of mine that blogs a lot, to say the least, and he told me about this plugin, I was shocked at how awesome it is. So I am tellign everybody about it today. If you run WordPress, you need this plugin. At least do your self a favor and take a look at it. I am sure you will love it and will probably thank me.

Go there now, Backup Creator: http://bit.ly/xWDtfm

Yes, that’s my affiliate link. I will get a cut if you buy it. No reason to lose out on free money while helping people out. :)

~ Valik

S.O.P.A. Internet Blackout Strike

It’s been talked about a lot and the time has come to act. January 18th, 2012 marks the largest Internet protest ever, to stop the Internet censorship bills SOPA and PIPA. Raise awareness about these bills by blacking out your website for a day and redirect your visitors to the SOPA Strike web page where they can tell Congress to stop these bills on January 24th when it goes for a vote.

If this bill passes, the Internet as we know it will no longer exist. The blackout is in a way a taste of what the Internet will be like if SOPA passes and they start cracking down and shutting down websites they don’t like.

Join the protest very easily. Add the code below into your website before the tag and it will do the rest. It will enable the protest on the 18th and go back to normal on the 19th. Then you can just remove this code.


<script type="text/javascript">

var a=new Date,b=a.getHours()+a.getTimezoneOffset()/60;
if(18==a.getDate()&&0==a.getMonth()&&2012==a.getFullYear()&&13<=b&&24>=b) { 
  window.location="http://sopastrike.com/strike";
}

</script>

If you have a WordPress blog, just add this code to your header.php file right above the tag.

Visit http://sopastrike.com/strike for more information.