Posts by dtbaker

5410 posts
  • Has sold $750,000+ on Envato Market
  • Helps us moderate the forums
  • Won a competition
  • Has been part of the Envato Community for over 6 years
+20 more
dtbaker
Moderator
says

Hey check the first post again. I’ve updated the code a bit, added a new individual layout and added more caching (it’ll only generate the image once every 30 seconds, not every request) :)

5410 posts
  • Has sold $750,000+ on Envato Market
  • Helps us moderate the forums
  • Won a competition
  • Has been part of the Envato Community for over 6 years
+20 more
dtbaker
Moderator
says

You will get a little DDOS to your server from this GIF :)
It’s not too resource intensive :)
The server is now under siege...
Lifting the server siege...      done.

Transactions:                6141 hits
Availability:              100.00 %
Elapsed time:              354.11 secs
Response time:                0.36 secs
Transaction rate:           17.34 trans/sec
Concurrency:                6.31
Successful transactions:        6141
Failed transactions:               0
Longest transaction:            7.68
Shortest transaction:            0.01

But yes I’ll be adding another layer of caching (static gif caching) in the next update (next update will be automatically showing the latest 5 star item reviews in a “slider”).

Cheers!

5410 posts
  • Has sold $750,000+ on Envato Market
  • Helps us moderate the forums
  • Won a competition
  • Has been part of the Envato Community for over 6 years
+20 more
dtbaker
Moderator
says

Yep there’s a way to do it. We’re just waiting on the new verify purchase feature to be released then a few of us will be able to share our code with everyone

5410 posts
  • Has sold $750,000+ on Envato Market
  • Helps us moderate the forums
  • Won a competition
  • Has been part of the Envato Community for over 6 years
+20 more
dtbaker
Moderator
says

Yep not per item just yet. Need a second account.

5410 posts
  • Has sold $750,000+ on Envato Market
  • Helps us moderate the forums
  • Won a competition
  • Has been part of the Envato Community for over 6 years
+20 more
dtbaker
Moderator
says

Looks great… Any live example?

Yep click here

5410 posts
  • Has sold $750,000+ on Envato Market
  • Helps us moderate the forums
  • Won a competition
  • Has been part of the Envato Community for over 6 years
+20 more
dtbaker
Moderator
says

@ceasar thanks! but in this case file_get_contents() is only used for accessing local files. curl is used to access the API in class.envato-basic.php.

@crelegant yes something like “Support is currently online” is certainly possible to add.

5410 posts
  • Has sold $750,000+ on Envato Market
  • Helps us moderate the forums
  • Won a competition
  • Has been part of the Envato Community for over 6 years
+20 more
dtbaker
Moderator
says

Anyways, just clicking the “try it out” button on the api docs page, returns an “Unauthorized operation” message.

Cool maybe they’re still working on it. I’m just going to load that endpoint and new permission into my app and just see what data comes back after buyers approve it (behind the scenes). Then if it’s useful I can stop asking for purchase codes :)

yipeee

5410 posts
  • Has sold $750,000+ on Envato Market
  • Helps us moderate the forums
  • Won a competition
  • Has been part of the Envato Community for over 6 years
+20 more
dtbaker
Moderator
says

Hey all,

I made some (kinda cool) live banners for item pages. Enjoy!

Version 1: Animated image stats slider:

Version 2: Separate images that fade-in once the data has been calculated server side:

It currently shows:

  • Number of people viewing the page (based on IP address and a timeout)
  • When the last purchase was made
  • How many sales were made in recent API history
  • How many 5 star ratings the item has received (curl, regex, bad, no api yet)

How it looks: live preview.

Code is (messy as usual) on Github: https://github.com/dtbaker/envato-live-sales-gif

Usage:
  • Upload everything from github to a new folder on your website (ignore the test stuff if you like)
  • Probably works best without nginx or anything infront of apache. Needs to stream data asap
  • Register a new personal token on http://build.envato.com/
  • Tick “View your items sales history” and “View your account financial history”
  • Paste your personal token into the top of config.php
  • Adjust the “name” of your item to find in config.php
  • Insert <img src="http://yourwebsite.com/gif.php" /> to the top of your item page.

post back here with a link to your item page showing it in use. If you make any changes or improvements please shoot them back my way so I can include them for everyone (I’m thinking, different themes + more types of notifications).

Because this is a “Streaming GIF” we can render cached information to the user quickly while we calculate other slower information (e.g. API calls) and keep appending to the animation as we build more data.

I had these grand plans of making streaming GIF or MJPEG sales notification banner. So it would flash “Someone just bought this item!” exactly when someone made a purchase. However weird streaming GIF loop issues and MJPEG browser support put that idea to bed. For now it’s just a rotating banner showing information about the current item, without any “live/just happened” events.

Edit: if someone can play with animate_image_data() to get a smoother ease-in-ease-out transition on the y-axis that would be great! It’s 11pm here and my brain isn’t working.

Cya!

5410 posts
  • Has sold $750,000+ on Envato Market
  • Helps us moderate the forums
  • Won a competition
  • Has been part of the Envato Community for over 6 years
+20 more
dtbaker
Moderator
says

I just went to create a token for something I’m building and noticed this new permission

 * BIG GRIN *

\\

https://build.envato.com/api#market_0_Buyer_Purchases

Anyone used it yet???

5410 posts
  • Has sold $750,000+ on Envato Market
  • Helps us moderate the forums
  • Won a competition
  • Has been part of the Envato Community for over 6 years
+20 more
dtbaker
Moderator
says

Work around via scraper. Google “dtbaker Envato scraper github”. On phone now

by
by
by
by
by
by