Posts by dtbaker

5362 posts
  • Achieved the monthly Community Superstar Award
  • Created a helpful tool/app using the Envato API
  • Became a Top 20 Author of the Month
  • Had an item that was trending
+19 more
dtbaker
Moderator
says

Here is my entry: http://www.mmuneeb.com/api/marketpense/

That’s really nice!!

5362 posts
  • Achieved the monthly Community Superstar Award
  • Created a helpful tool/app using the Envato API
  • Became a Top 20 Author of the Month
  • Had an item that was trending
+19 more
dtbaker
Moderator
says

I keep seeing this screen, even after I’ve approved the application. Isn’t it supposed to skip that screen the next time a user tries to log in?

With Google OAuth you have to set approval_prompt to false. This stops the prompt every time. However if you don’t prompt you do not get a refresh token, if the user approves via a prompt you get a refresh token. The Envato API might have something similar.

edit: I just checked the build.envato.com OAuth login sequence (because that one doesn’t prompt for approval) and there is no approval_prompt parameter, they have a special scope and realm param which probably handles no prompt specially.

5362 posts
  • Achieved the monthly Community Superstar Award
  • Created a helpful tool/app using the Envato API
  • Became a Top 20 Author of the Month
  • Had an item that was trending
+19 more
dtbaker
Moderator
says

I’m curious about this app and how it works. Are we talking about a mobile app or a web app? Would it be better to manage comments through a third party support platform like HelpScout ?

Just a simple WordPress plugin.

The idea is you can continue using your HelpScout or Ticksy or Zendesk (and all their advanced features). But this simple app will pull in all your messages from various streams (Facebook, Zendesk, Ticksy, bbPress, Comments). So if you just want to go through and answer questions quickly, no matter where they were posted, then this can help.

It will also find duplicate posts (I get a lot of people sending an email, posting a comment and opening a bbpress forum thread with the same question, this app should find those duplicates).

It’s certainly not going to be a replacement for something like Ticksy, think of it like a basic “overview” of all messages from various mediums.

I’ll open a thread with more details and screenshots closer to launch :)

5362 posts
  • Achieved the monthly Community Superstar Award
  • Created a helpful tool/app using the Envato API
  • Became a Top 20 Author of the Month
  • Had an item that was trending
+19 more
dtbaker
Moderator
says



I’m actually building this app right now :)
How is this possible? I didn’t see any API hooks to be able to add comments.
He’s a magician! ;)

haha!

also – it’s a new way too that doesn’t require envato username/password like the current method :)


Awesome, it would be available on Envato?

Yes for free.

It will be on github so everyone can improve it.

The app will let you (or your support staff) read and reply to all your support messages. Those messages can come from Envato Item Comments, Facebook Posts, bbPress Forum Posts, Tweets and more. All these messages will display in an easy to use “support inbox”. So no matter how your customers contact you, you can reply.

I keep adding features and it’s taking longer for me to get to a “release” that I’m happy with. I might just push it out as “beta” and let everyone play.

5362 posts
  • Achieved the monthly Community Superstar Award
  • Created a helpful tool/app using the Envato API
  • Became a Top 20 Author of the Month
  • Had an item that was trending
+19 more
dtbaker
Moderator
says

Yep that worked

        $kml_data = str_replace('<gx:','<',$kml_data);
        $kml_data = str_replace('</gx:','</',$kml_data);
        $xml = new SimpleXMLElement($kml_data);
        $coords = array();
        foreach ($xml->Document->Placemark as $coord) {
            if($coord['id'] != 'tour')continue;
            foreach($coord->MultiTrack as $multitrack){
                foreach($multitrack->Track as $track){
                    $id=0;
                    foreach($track->coord as $coord){
                        $args     = explode(" ", (string)$coord);
                        $coords[$id] = array();
                        $coords[$id][0] = $args[0];
                        $coords[$id][1] = $args[1];
                        $coords[$id][2] = $args[2];
                        $id++;
                    }
                    $id = 0;
                    foreach($track->when as $when){
                        $coords[$id][3] = (string)$when;
                        $id++;
                    }
                }
            }
        }
        print_r($coords);

res:

Array
(
    [0] => Array
        (
            [0] => 151.143872
            [1] => -33.788008
            [2] => 78.0
            [3] => 2015-06-10T06:42:31.808Z
        )

    [1] => Array
        (
            [0] => 151.143876
            [1] => -33.788012
            [2] => 78.0
            [3] => 2015-06-10T06:42:34.068Z
        )

    [2] => Array
        (
            [0] => 151.143857
            [1] => -33.788139
            [2] => 58.0
            [3] => 2015-06-10T06:42:35.068Z
        )

    [3] => Array
        (

There’s probably a way to do it without tweaking the XML first, but oh well

5362 posts
  • Achieved the monthly Community Superstar Award
  • Created a helpful tool/app using the Envato API
  • Became a Top 20 Author of the Month
  • Had an item that was trending
+19 more
dtbaker
Moderator
says

Hmm I might just do a str_replace on gx: before parsing with simplexml and get rid of this namespacing.

5362 posts
  • Achieved the monthly Community Superstar Award
  • Created a helpful tool/app using the Envato API
  • Became a Top 20 Author of the Month
  • Had an item that was trending
+19 more
dtbaker
Moderator
says

Hey guys,

Here is my XML file: https://gist.github.com/anonymous/33b9c4c3ea7ff0572126

I’m trying to get the data from inside the gx:Track node near the bottom.

I can get the co-ordinates fine from gx:coord but cannot get the when values coming through.

                $xml = new SimpleXMLElement($kml_data);
        $coords = array();
        foreach ($xml->Document->Placemark as $coord) {
            if($coord['id'] != 'tour')continue;
            $namespaces = $coord->getNameSpaces(true);
            $multitracks = $coord->children($namespaces['gx']);
            foreach($multitracks->MultiTrack as $multitrack){
                $tracks = $multitrack->children($namespaces['gx']);
                foreach($tracks->Track as $track){
                    foreach($track->coord as $coord){
                        $args     = explode(" ", (string)$coord);
                        if(count($args) == 3){
                            $coords[] = array($args[0], $args[1], $args[2]);
                        }
                    }
                }
            }
        }
        print_r($coords);

Having some issues finding how to get the namespaced gx: children along with the normal when children.

Any ideas?

Cheers!

5362 posts
  • Achieved the monthly Community Superstar Award
  • Created a helpful tool/app using the Envato API
  • Became a Top 20 Author of the Month
  • Had an item that was trending
+19 more
dtbaker
Moderator
says

Hi,

Is it possible to create an app to allow my support team reply comments on themeforest using app. I don’t want to create separate accounts for each agent to reply on themeforest.

Thanks

I’m actually building this app right now :)

5362 posts
  • Achieved the monthly Community Superstar Award
  • Created a helpful tool/app using the Envato API
  • Became a Top 20 Author of the Month
  • Had an item that was trending
+19 more
dtbaker
Moderator
says

I took a screenshot of this completely random, but really cool looking, item I stumbled across:

http://imageshack.com/a/img661/3445/fewiS3.png

Well that’s cool, and probably solves the issue here. It clearly says Price excludes VAT if you are in a VAT country.

@janebb did this message not appear for you?

5362 posts
  • Achieved the monthly Community Superstar Award
  • Created a helpful tool/app using the Envato API
  • Became a Top 20 Author of the Month
  • Had an item that was trending
+19 more
dtbaker
Moderator
says

If there are no screenshots can you please link it to live demo?

by
by
by
by
by
by