Posts by CodeFusion

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

and here it is my nomination for “Master Troll of the Year Award”
+1 ;)
And to ensure your vote again next year: 24bit animated parrot in 75 hues in 60 seconds – be sure to use FF or Opera or you will see the bird in its natural yellow/green color.
5MB Image too large to post here without bogging down the rest of the page for peeps with slow net.
296 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+3 more
CodeFusion says

oh man, there is a chicken in the twitter feed
I totally missed that

i wonder if they validate, ;)

I bet the W3C validator just returns “Have you thought about a career at McDonalds … ” ;)

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

Correct link: http://revaxarts-themes.com/documenter/

As for what you need to include in the documentation, you need to explain to the buyer how to setup your theme; eg: How to change the logo, set the favicon, use shortcodes, etc.

In other words, you need to write instructions – in a way that, basically, you can give them to your grandmother and she can follow them. Your buyers will have different levels of experience – some professionals, some who have never used installed a theme before.

Most TF authors link to a generic “How do I install a theme on WordPerss” (youtube) instructions – then write specific instructions pertaining to their unique theme.

Generally, the better your instructions / documentation, the less support requests you will have to deal with.

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

Sounds difficult. Do you have that script where you talked about?

It’s pretty easy if you are familiar with PHP. You can have a good read about PHP and the API here: http://net.tutsplus.com/tutorials/php/display-anything-you-want-from-the-envato-api-using-php/

I quickly punched this together for you – it looks more complicated than it is.
<?php

//settings
$author_api_key = "Your-API-Key";
$author_username = "Your-Envato-Username";
$buyer_purchase_code = 'Your-Buyers-Purchase-Code';

//NOT required, but helpful!
$buyer_envato_name = 'Test';

//the api call
//create the url
$request_url = 'http://marketplace.envato.com/api/edge/'.$author_username.'/'.$author_api_key.'/verify-purchase:'.$buyer_purchase_code.'.json'; 

//make the call //could also use cURL - but for brevity:
$json_return = file_get_contents($request_url);  

//make sure return is not empty
if(empty($json_return)) die('Error connecting to the API system');

//decode json string into PHP Array
$json_data = json_decode($json_return, true);  

//if error isset - die showing error
if (isset($json_data['error'])) die($json_data['error']);

//still alive = no error
//if verify purchase is empty - die showing error
if (empty($json_data['verify-purchase'])) die('Invalid Purchase Code');

//verify buyers name - optional
//if you have your buyers Envato Username uncomment the next line
//if (strtolower($buyer_envato_name) !== strtolower($json_data['verify-purchase']['buyer'])) die('Envato Username Invalid');

//still alive = valid purchase

//do your custom stuff below -----------------------------------------

//show json decoded array - so you can see what is available to you.
print_r($json_data);

//available info:
//$json_data['verify-purchase']['item_name']
//$json_data['verify-purchase']['item_id']
//$json_data['verify-purchase']['created_at']
//$json_data['verify-purchase']['buyer']
//$json_data['verify-purchase']['licence']

//examples how to access specific info:
echo '<hr />';

//Show buyer name
echo 'Buyer: '.$json_data['verify-purchase']['buyer'].'<br />';

//Show license type
echo 'License Type: '.$json_data['verify-purchase']['licence'].'<br />';

//Show purchase date
echo 'Purchased: '.$json_data['verify-purchase']['created_at'].'<br />';

//other example:
echo '<hr />';
echo    'Hey '.$json_data['verify-purchase']['buyer'].', 
        I appreciate you buying a '.$json_data['verify-purchase']['licence'].' 
        to my '.$json_data['verify-purchase']['item_name'].' on 
        '.$json_data['verify-purchase']['created_at'];

You will want to “error out” more gracefully than what I did in my example, but it should get you started in the right direction.

I have not written a windows application since 36.6k dialup modems were top of the line – and we didn’t generally connect apps to the net back then – so I have no idea how to help in that regard.

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

And how can I test if my license check does work?

You will need a valid purchase code:

You can ask one of your buyers for their purchase code.

Another way, is to create another Envato account and purchase your own item – however this goes against Envato’s TOS. They “unofficially” look the other way if you only do this once, but “officially” you can get banned for abusing the TOS.

Don’t hold me too it, but I think you may be able to get a purchase code if you ask for one via the support system – or maybe that was just an author request I read … I don’t remember for sure.

Purchasing my own item was the route I went when I first started messing with the API – but shhhhh don’t tell anyone ;) .

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

So the best thing is to let my application check if there is an error (API username/password invalid, and if it doesn’t match my item)? Or am I wrong?

Sort of. The returned error string is only given when your username or API key are invalid. If your info is valid, then you will want to check to see if verify-purchase is empty or not.

I don’t advise embedding your username and/or API inside of your application. It’d be best to have your app send the users Purchase Code to your web server, then let your web server validate the Purchase Code. If someone where to crack your app and get a hold of your user/api, they will be able to see api protected things like your account balance, sales, etc. See “User (protected w/ an API key) Sets” in the api doc

Just a tip: When my scripts ask for the Purchase Code, I also require the Envato username – then compare the given username with the json returned username to make sure they match – helps cut down on people sharing their purchase code.

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

It returns a json string. You can drop the url directly into your browser and it will show you the results right there on your screen.

If the purchase code is valid for your item:
{"verify-purchase":{"item_name":"[Your-Item-Name]","item_id":"[Your-Item-ID]","created_at":"Fri Dec 21 00:00:01 +1000 2012","buyer":"[Buyers-Name]","licence":"Regular License"}}
Yes; the word “License” is spelled in its euro form on the API – rather irritating! ...

If the purchase code does NOT match your item: (or refunded)
{"verify-purchase":{}}
If there is an API/formatting error:
{"error":"Username and/or API Key invalid.","code":"not_authenticated"}
296 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+3 more
CodeFusion says

I do have access to comments via nWallet. Reply is not possible, though

Is that part of the API? I don’t remember seeing it.

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

The paw, nicknamed invsible because of its color :)

That explains sooo much! I went to bed with a black paw; next day my paw badge was gone! I just thought I was so darned good I didn’t need a paw anymore! But the lag time for the Japanese Power Hut badge to show up is terrible – been waiting forever!! ;)

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

Your UI need some love. Your buttons do no “flow” together – they have no “common theme” or look or feel.

As for features, I’d suggest looking at a number of other watermarking software to see what features they offer.

by
by
by
by
by
by