ThemeForest

Simple theme update class using Envato API

404 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Won a Competition
  • Referred between 500 and 999 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.

15 posts
  • Exclusive Author
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
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?

404 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Won a Competition
  • Referred between 500 and 999 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.
1115 posts
  • Elite Author
  • Has been a member for 4-5 years
  • Author had a Free File of the Month
  • Sold between 100 000 and 250 000 dollars
  • Bought between 10 and 49 items
  • Europe
  • Exclusive Author
  • Referred between 200 and 499 users
+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?

404 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Won a Competition
  • Referred between 500 and 999 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.
1115 posts
  • Elite Author
  • Has been a member for 4-5 years
  • Author had a Free File of the Month
  • Sold between 100 000 and 250 000 dollars
  • Bought between 10 and 49 items
  • Europe
  • Exclusive Author
  • Referred between 200 and 499 users
+1 more
fuelthemes says

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

404 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Won a Competition
  • Referred between 500 and 999 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
by
by
by
by
by