ThemeForest

Alternative Purchase verifier script

967 posts
  • United Kingdom
  • Community Superstar
  • Attended a Community Meetup
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 5 000 and 10 000 dollars
  • Has been a member for 2-3 years
  • Microlancer Beta Tester
  • Bought between 100 and 499 items
  • Referred between 10 and 49 users
+1 more
aaranmcguire says

hey,

Its known that verifying purchases inside a script can be annoying, the user needs to find the item download a text file find the key, enter it in and finally done.. now to people reading this, it might be easy, but for clients it can be difficult.

I have made this script (watch video first) that takes the licence download link and puts it in to the info you need.

Video: http://www.screenr.com/oUes

Demo: http://hm.vc/alternative_verifier.php

Code: http://cl.ly/DM97

I could add styling to it but i want it to be simple to find out whats needed and whats not. It only took a few minutes to make after i found the username and the purchase code in the url but let me know what you think about it, good? bad?

Thanks for taking your time to read. hope you like it! :)

3560 posts
  • Author had a File in an Envato Bundle
  • Grew a moustache for the Envato Movember competition
  • Community Moderator
  • Referred more than 2000 users
  • Has been a member for 4-5 years
  • United Kingdom
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Blog Post
+4 more
quickandeasy moderator says

Nice work, although I think you should style it up ;)

967 posts
  • United Kingdom
  • Community Superstar
  • Attended a Community Meetup
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 5 000 and 10 000 dollars
  • Has been a member for 2-3 years
  • Microlancer Beta Tester
  • Bought between 100 and 499 items
  • Referred between 10 and 49 users
+1 more
aaranmcguire says

Nice work, although I think you should style it up ;)

Thanks, i will look in to doing one soon.

201 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
  • United Kingdom
phpdude says

I like the idea of making it less work for the client, but….. I think perhaps it can be taken a further step to make it super easy:

Make a bookmarklet, scan the page for license URLs , create an array of license URLs, then parse these over to your own PHP script, check each license via the API to see if it’s your product and then you have a list of items that person has purchased from you, which have been confirmed as purchased.

Then you can store in a database etc etc etc.

201 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
  • United Kingdom
phpdude says

Also, this does exactly the same job, just fewer lines and IMO easier to read:

if(isset($_POST['url'])) {
    list(,,$username,,$purchase) = explode('/',parse_url($_POST['url'],PHP_URL_PATH));
    echo 'Username: ' . $username . '<br />Purchase Code: ' . $purchase;
}

:)

967 posts
  • United Kingdom
  • Community Superstar
  • Attended a Community Meetup
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 5 000 and 10 000 dollars
  • Has been a member for 2-3 years
  • Microlancer Beta Tester
  • Bought between 100 and 499 items
  • Referred between 10 and 49 users
+1 more
aaranmcguire says
||+519187|phpdude said-|| Also, this does exactly the same job, just fewer lines and IMO easier to read:
if(isset($_POST['url'])) {
    list(,,$username,,$purchase) = explode('/',parse_url($_POST['url'],PHP_URL_PATH));
    echo 'Username: ' . $username . '<br />Purchase Code: ' . $purchase;
}
:)

yh, thats also good, never really used list but that works…

the bookmarklet idea is to much of a fuss, a extension might be good if you could hover over the licence url and it displays ‘copy licence code’

by
by
by
by
by