Posts by OriginalEXE

1520 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

The reason why AJAX is used instead of node.js for example is that you lose a great share of the market.

Not everyone is hosting their sites on a dedicated server/vps they have control over, + like you said, not everyone wants to bother with setting up something like node.js

Of course node.js solution is the right solution for real-time applications, the only problem is you are building it for others, not for yourself.

1520 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

Check their FAQ: https://wordpress.org/plugins/wp-super-cache/faq/ “How do I make certain parts of the page stay dynamic?”

1520 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

I’ve had DK2 for quite some time now, it’s awesome :)

I’d definitely recommend you try Minecraft with it, somehow it was the best experience for me.

There are a bunch of cool demos on Oculus Share, definitely try a bunch of those too.

1520 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says
1520 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

Note that it requires at least PHP 5.3.3, while WordPress works on 5.2

In a perfect world, that would not be a problem, but with many bad hosting companies around, you never know how many issues that will cause you.

1520 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

First way worked for us in our themes, it will certainly get approved.

1520 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

Yes, there is a better way:

1.) Move anything but the very url to your external css, like this:
.entry-header {
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
}

and only declare image url inline

2.) or use wp_add_inline_style

1520 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

Just to be sure, how is the video integrated in your site? The only time I get the black bars is when video is previewed directly (via direct link in for example Google Chrome).

Video is hosted on your server right?

1520 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

Hi, why exactly do you need to calculate this? Could you give an example of the usage, as in, what are you trying to achieve with that information.

1520 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE
says

This should do it:

// Validate item purchase code
        $result = array();

        if( !empty($posted['purchasecode']) && !empty($posted['username']) ) {
           [name and ID removed]
            $purchase_code = urlencode($posted['purchasecode']);
            $request_headers  = array( 'http' => array( 'user_agent' => 'Envato API' ) );
            $request_context  = stream_context_create( $request_headers );
            $result_from_json = file_get_contents('http://marketplace.envato.com/api/edge/'.$username.'/'.$api_key.'/verify-purchase:'.$purchase_code.'.json', false, $request_context);
            $result = json_decode($result_from_json, true);
        }

        if( $result['verify-purchase']['item_name'] && !empty($posted['username']) ) {

            if( strcmp( $result['verify-purchase']['buyer'] , $posted['username'] ) !== 0 )
                $errors->add('required-purchasecode', __('That username is not valid for this item purchase code. Please make sure you entered the correct username.', 'woothemes') );

        } elseif ( !empty($posted['purchasecode']) ) {

            if ( !empty($posted['username']) ) $errors->add('required-purchasecode', __('That is not a valid item purchase code.', 'woothemes') );

        }

Have not tested it so needs checking.

by
by
by
by
by
by