Posts by tabvn

332 posts Tabvn
  • 3 Years of Membership
  • Affiliate Level 6
  • Author Level 9
  • Beta Tester
+5 more
tabvn
says
332 posts Tabvn
  • 3 Years of Membership
  • Affiliate Level 6
  • Author Level 9
  • Beta Tester
+5 more
tabvn
says

Great! Thank you! :) ....also by any chance do you plan an iOS 8 update on Tabvn app ?

@LoopsLab , thanks for interesting at Tabvn IOS APP. However i dont have plan for it right now. If you purchased continue use (i’m using it too, IOS 8 fine, however no notification.). Accept my apology.

332 posts Tabvn
  • 3 Years of Membership
  • Affiliate Level 6
  • Author Level 9
  • Beta Tester
+5 more
tabvn
says

Hey Authors,

Before start , here is screenshot how Envato Sales notifications work on your own MAC (OSX) http://cloud.tabvn.com/1436765344.png

Simply but very useful , i think so. If you like, please follow step by step to get your own Envato sales notification.

Step 1:

You need have Envato Personal Token Key: you can register your Envato Personal Key at: https://build.envato.com/create-token , here is screenshot to grant permission for your own key: http://cloud.tabvn.com/1436768504.png

Step 2:

You need upload this php code to your own server (hosting support run PHP, + CURL) after file upload it has URL like (whatever URL you want, but in this tutorial the URL is: http://your-domain.com/envato.php This is envato.php content
<?php

define('TOKEN', 'YOUR-PERSONAL-TOKEN-KEY'); //IF you dont have, let create new PERSONAL Token via https://build.envato.com/create-token
define('USERNAME', 'tabvn'); // replace your Envato Username here.
$msg = "";

function envato_curl($uri){
    $ch = curl_init($uri);
    curl_setopt_array($ch, array(
    CURLOPT_HTTPHEADER  => array('Authorization: Bearer ' . TOKEN),
    CURLOPT_RETURNTRANSFER  =>true,
    CURLOPT_VERBOSE     => 1
    ));
    $out = curl_exec($ch);
    curl_close($ch);    
    return  $out;
}

function envato_get_sales($output){
    if(!empty($output)){
        $obj = json_decode($output);
        return isset($obj->user->sales) ? $obj->user->sales : 0;
    }

    return FALSE;
}

$uri = 'https://api.envato.com/v1/market/user:'. USERNAME .'.json';
$output = envato_curl($uri);
$sales = envato_get_sales($output);

$file = 'tabvn.txt';
if(!file_exists($file)){
    file_put_contents($file, $sales);
}
$old_sales = file_get_contents($file);
if($old_sales < $sales){
    $count = $sales - $old_sales;
    $msg = $count;
}
file_put_contents($file, $sales);
print $msg;

?>

Step: 3

* create a file name is envato.sh in
/Applications/envato/envato.sh 

here is content of file envato.sh , don’t forget replace your http://your-domain.com/envato.php in this bash file.

#!/bin/bash

VALUE=$(curl http://your-domain.com/envato.php)
if [ "$VALUE" ]
  then
     #echo -e "You have new sale $VALUE" 
         afplay /Applications/envato/cha.aif
         osascript -e 'display notification "You have new '$VALUE' sales." with title "Tabvn sales notification"'
 fi
* Now open Terminal on your MAC type:
sudo chmod u+x /Applications/envato/envato.sh

+ This is sound cha-ching will play when you have new sale, Download this file http://cloud.tabvn.com/cha.aif save it to

/Applications/envato/cha.aif

Everything almost done. Now next step is create crontab to execute /Applications/envato/envato.sh each minute. (or each 5 minutes).

Step 4:

On Terminal run following command

cd $HOME/Library/LaunchAgents 
sudo nano com.envato.crontab.plist
here is content of com.envato.crontab.plist (it will run each 60 seconds, you can modify if you want. )
<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
   <key>Label</key>
   <string>com.envato.crontab</string>

   <key>ProgramArguments</key>
   <array>
     <string>/Applications/envato/envato.sh</string>
   </array>

   <key>Nice</key>
   <integer>1</integer>

   <key>StartInterval</key>
   <integer>60</integer>

   <key>RunAtLoad</key>
   <true/>

   <key>StandardErrorPath</key>
   <string>/tmp/AlTest1.err</string>

   <key>StandardOutPath</key>
   <string>/tmp/AlTest1.out</string>
 </dict>
 </plist>

Press Control+x to save your content of com.envato.crontab.plist file.

Finally run this commands on Terminal:

cd $HOME/Library/LaunchAgents
launchctl load com.envato.crontab.plist

Now enjoy :), any questions post here. I will reply to you soon.

I hope it helps,

Best regards,

Toan

332 posts Tabvn
  • 3 Years of Membership
  • Affiliate Level 6
  • Author Level 9
  • Beta Tester
+5 more
tabvn
says

Finally Drag Drop Builder base as Field for Drupal just released. I post link here in case for someone easy to find this , http://codecanyon.net/item/drupal-drag-drop-builder/12014058

332 posts Tabvn
  • 3 Years of Membership
  • Affiliate Level 6
  • Author Level 9
  • Beta Tester
+5 more
tabvn
says

I hope this module helps for somone just released it on CodeCanyon http://codecanyon.net/item/drupal-drag-drop-page-builder/11024613

This is current version. The next version will be more great. It is field and can be attached into any of Drupal Entity type.

see first demo stage: https://www.youtube.com/watch?v=wOPoBMN-qlo

332 posts Tabvn
  • 3 Years of Membership
  • Affiliate Level 6
  • Author Level 9
  • Beta Tester
+5 more
tabvn
says

You did wonderful job. Congratulations!

332 posts Tabvn
  • 3 Years of Membership
  • Affiliate Level 6
  • Author Level 9
  • Beta Tester
+5 more
tabvn
says

You have just saved $35. ;)

I did requested withdrawal, However i made it late. now it is 01-May on Australia :(

332 posts Tabvn
  • 3 Years of Membership
  • Affiliate Level 6
  • Author Level 9
  • Beta Tester
+5 more
tabvn
says

I just tried to contact to Envato , So i hope there is still one more chance for me. I never thought that i can make a mistake like this one :(

332 posts Tabvn
  • 3 Years of Membership
  • Affiliate Level 6
  • Author Level 9
  • Beta Tester
+5 more
tabvn
says

I missed request withdrawal , I have many partners wating for my payment. So please tell me what i can do now.

Thank you very much.

332 posts Tabvn
  • 3 Years of Membership
  • Affiliate Level 6
  • Author Level 9
  • Beta Tester
+5 more
tabvn
says

Congrats Tam, Keep up the good work. (y)

by
by
by
by
by
by