42 posts
  • Exclusive Author
  • Has been a member for 1-2 years
  • Referred between 10 and 49 users
  • Bought between 1 and 9 items
  • Sold between 10 000 and 50 000 dollars
phppoet says

Great work man …... really appreciate it .

3189 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 4-5 years
  • Exclusive Author
organicbee says

But what if the same person purchased a few of your items, how would this script manage it? Will the user be forced to register again, or he/she can actually just add more purchase codes under the same account? Good work by the way!

the purchase codes are stored in user_meta so adding it array shouldn’t be too hard to add extra, and Ill look into adding it

Most support forums Ive seen don’t block users on a per forum(theme) basis and I didnt plan on doing it to mine….

so everyone knows here my little “roadmap”

  1. rewrite the marketplace class, theres nothing wrong with it but Im going to convert it to be more WordPress http://codex.wordpress.org/HTTP_API
  2. function(or shortcode) to display which theme the user purchased, right now the purchase code is just stored in the db)
  3. add a redirect option for the shortcode after a user has registered

you can follow development on Github though dont use the version on github for a live site.

also have anyone ran into any errors? someone left a bad review because of an error and I cannot duplicate it for the life of me. Thank you all

3189 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 4-5 years
  • Exclusive Author
organicbee says

Great work man :)
Please correct the typo on the WorPress plugin page description: “A plugin to validate purcahses using the Envato API”

oops fixed and thank you

326 posts
  • Sold between 10 000 and 50 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Referred between 100 and 199 users
  • Bought between 50 and 99 items
  • Has been a member for 3-4 years
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Portugal
vtimbuc says

Awesome man, I’m really looking forward for the new features you’re working on. It would be great if we could limit forum access depending on the item that user purchased. Thanks

3189 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 4-5 years
  • Exclusive Author
organicbee says

Awesome man, I’m really looking forward for the new features you’re working on. It would be great if we could limit forum access depending on the item that user purchased. Thanks

Thanks, I think Ill have time to dig into bbpress to see what it takes to limit forum access on per purchase basis this weekend

submitted it to http://extras.envato.com

3189 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 4-5 years
  • Exclusive Author
organicbee says

updated to, 0.2 when a user registers from now on it pull all the data from the api and stores it as a n array

<?php 

$userinfo = get_user_meta( $user_id, '_cw_purchase_code', true );

print($userinfo['purchase_code']);
print($userinfo['item_name']);
print($userinfo['item_id']);
print($userinfo['created_at']);
print($userinfo['buyer']);
print($userinfo['licence']);

?>

obviously youd have to set the user id still

611 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
ChapterThemes says

This is awesome! Very nice @OrganicBeeMedia

707 posts
  • Sold between 10 000 and 50 000 dollars
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
  • Exclusive Author
  • Envato Studio (Microlancer) Beta Tester
ChillThemes says

Nice little plugin, I’m currently using it here for those who want a real world demo. http://perusethemes.com/forums

3189 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 4-5 years
  • Exclusive Author
organicbee says

Nice little plugin, I’m currently using it here for those who want a real world demo. http://perusethemes.com/forums

nice! are you using do_shortcode? I noticed that the thick box isn’t loading


add_action('wp_enqueue_scripts', 'prefix_load_scripts');

function prefix_load_scripts(){

    if( is_bbpress()){

        wp_enqueue_script('jquery');

        wp_enqueue_script('thickbox', null,  array('jquery'));

        wp_enqueue_style('thickbox.css', '/'.WPINC.'/js/thickbox/thickbox.css', null, '1.0');
    }

}

That should fix it, though Im presuming you’re using bbpress and the register is only present on bbpress pages

also noticed your header/footer cut off on the iPad ;-)

707 posts
  • Sold between 10 000 and 50 000 dollars
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
  • Exclusive Author
  • Envato Studio (Microlancer) Beta Tester
ChillThemes says


Nice little plugin, I’m currently using it here for those who want a real world demo. http://perusethemes.com/forums
nice! are you using do_shortcode? I noticed that the thick box isn’t loading also noticed your header/footer cut off on the iPad ;-)

No I’m not using the shortcode, just the forms provided by bbPress. Thanks for the snippet, saved me some time. :)

Yeah, I’m aware of the mobile display issues and will be working on a fix shortly, thanks for the heads up.

by
by
by
by
by
by