491 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Won a Competition
  • Referred between 1000 and 1999 users
  • Author had a Free File of the Month
  • Author had a File in an Envato Bundle
  • Bought between 10 and 49 items
+3 more
pixelentity says

either purchase from a different account or ask a buyer to create a temporary api key for you.

75 posts Vibe
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
VibeThemes says

So what happens if user enters a wrong api key ? I am asking the user to enter their api/username details in the theme options panel. Do I need to validate whether its an API key or some gibberish? what is the error that user would get?

491 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Won a Competition
  • Referred between 1000 and 1999 users
  • Author had a Free File of the Month
  • Author had a File in an Envato Bundle
  • Bought between 10 and 49 items
+3 more
pixelentity says

So what happens if user enters a wrong api key ?
envato api call would return no available updates.
1317 posts
  • Elite Author
  • Has been a member for 5-6 years
  • Sold between 250 000 and 1 000 000 dollars
  • Author had a Free File of the Month
  • Referred between 200 and 499 users
  • Bought between 10 and 49 items
  • Europe
  • Exclusive Author
+1 more
fuelthemes says

Hi pixelentity, your code didnot work for me.

What I have done is, included your class with require_once, and then called it using

PixelentityThemeUpdate::init(buyername,buyerapikey,’turkhitbox’);

I changed theme version to a lower number on purpose so that it will think themeforest has the updated version.

PS: Do we need to upload a zip version of our theme to our items for this to work?

491 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Won a Competition
  • Referred between 1000 and 1999 users
  • Author had a Free File of the Month
  • Author had a File in an Envato Bundle
  • Bought between 10 and 49 items
+3 more
pixelentity says

PS: Do we need to upload a zip version of our theme to our items for this to work?
No, that’s not needed. There’s a line which you need to uncomment to test the class, remember to comment again before the upload.
1317 posts
  • Elite Author
  • Has been a member for 5-6 years
  • Sold between 250 000 and 1 000 000 dollars
  • Author had a Free File of the Month
  • Referred between 200 and 499 users
  • Bought between 10 and 49 items
  • Europe
  • Exclusive Author
+1 more
fuelthemes says

Thanks for the reply, just out of curiosity, how do you or Envato understand the latest version inside zip folder?

491 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Won a Competition
  • Referred between 1000 and 1999 users
  • Author had a Free File of the Month
  • Author had a File in an Envato Bundle
  • Bought between 10 and 49 items
+3 more
pixelentity says

Thanks for the reply, just out of curiosity, how do you or Envato understand the latest version inside zip folder?
well we don’t, i guess they (envato) just check style.css version in theme zip
52 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Referred between 100 and 199 users
  • Slovenia
  • Bought between 50 and 99 items
  • Has been a member for 1-2 years
ProteusThemes says

@pixelentity, that class is exactly what I was looking for to implement in my themes now. However, have you updated it recently? I was just wondering that it would be awesome if you could create a public github fork from the Envato Toolkit library, so it can stay up to date? I saw that https://github.com/envato/envato-wordpress-toolkit-library was updated 4 months ago last time.

With your permission, I would love to create this new repo as well, so I can include it in my theme as the git submodule and auto-update when needed. What do you think about this?

52 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Referred between 100 and 199 users
  • Slovenia
  • Bought between 50 and 99 items
  • Has been a member for 1-2 years
ProteusThemes says

I created the github repo anyway, with all the credits to @pixelentity and Envato: https://github.com/primozcigler/Envato-WordPress-Theme-Updater

Updated the code a bit (so the style matches the WP Codex), added some inline documentation etc.

It is forked from Envato official repo for the protected API, so staying up to date is just the git pull <remote name> away.

491 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Won a Competition
  • Referred between 1000 and 1999 users
  • Author had a Free File of the Month
  • Author had a File in an Envato Bundle
  • Bought between 10 and 49 items
+3 more
pixelentity says

Hey,

i just read your post, no problems with the fork, we released that code for every author to use it ;)

However, the problem with theme bundled class approach is that it won’t work with a network install, to solve the above we created a plugin instead:

https://github.com/bitfade/themeforest-themes-update

Once installed, it will update any TF theme via Envato API.
by
by
by
by
by
by