Custom WordPress Google Voice Widget

Hi guys, I spent the weekend trying to figure out WordPress plugins. Seems to be simple but takes time to for me :P Hopefully I’ll be able to get all the code to be clean and as optimized as possible. Right now its just kinda thrown together looking at web examples so don’t attack me too much about it. It will get better and come with a better way to customize with more features.

Download: custom-google-voice-plugin

Posted in Ajax, Google, PHP, Voice, WordPress | 3 Comments

New logo, new design and more attention Coming Soon!

Hi all! Sorry about my lack of response on my blog and my projects. Been super busy and stressed with work and decided to take a few months off doing stuff on the side :P

But good news im BACK! And ready to get started on finishing the Snipsta Site. Getting a Logo/site revamp by The Designery Studio.

Posted in News | Leave a comment

Downloads are temporary down.

Just want to inform you all that downloads are currently temporary down due to the new layout.

I will get them all back up shortly after i finish making my garden sometime soon.

Posted in Uncategorized | Leave a comment

Functions Hooks and Classes

Well Today I decided to post a class that I built derived from the wordpress plugin feature.

Due to my hatred for global variables I converted the wordpress functions into a static class.  Nothing special but it makes it easier to fit into other frameworks or even a basic php site. Its been tested only in php5. I also changed how the functions are called since its in a class. Continue reading

Posted in Uncategorized | Leave a comment

Ajax Custom Google Widget

Updated: Errors involving some servers and Curl :P Please download the newest source code and update your code.

Decided to bundle up my idea in a standalone script. Right now there is no documentation, but I will work on it.  Spent a hour just putting together what I had. So please enjoy!

This is a jQuery and PHP solution.

Let me know what you guys think or even post a link to my site so I can see how you used this feature.

just updated the gvwidget.class to not require the object class and added some documentation.
Don’t write a lot of documentation so it will get better over time.

Posted in Ajax, PHP, Voice | 19 Comments

Custom Flash Google Voice Widget

Today I created my first Google voice widget in flash. Which also happens to be my first flash project and i know its poorly made and probably just plain bad. But I will share it with the word to prove that I could do it!!!!

I am looking into working with a friend in making a fully customizable version in flash cs3/4 or in Flex. Or you can create your own using the code I provided before.

I know its crude but I will be learning flash little by little.


var variables:URLVariables = new URLVariables();
 variables.callerNumber = "1" + pNum;
 variables.buttonId = "(id in the flashvars in the Google Version of the Google Voice Widget)";
 variables.showCallerNumber = "1";
 variables.name = fName;

 var request:URLRequest = new URLRequest("https://clients4.google.com/voice/embed/webButtonConnect"); //Insert your own URL here.
 request.method = URLRequestMethod.POST;
 request.data = variables;
 var loader:URLLoader = new URLLoader();
 loader.dataFormat = URLLoaderDataFormat.VARIABLES;
 //loader.addEventListener(Event.COMPLETE, completeHandler);
 try{
 loader.load(request);
 }
 catch (error:Error) {
 trace("Unable to load URL");

}
Posted in AS3, Example, Flash | 10 Comments

Creating my own Google Voice Widget

Well today I wanted to take my code that i produced earlier and show you what i did with it.

This image shows the first frame for this widget which shows the same text as the google voice widget.

I turned this into a button so give it a try click it in the sidebar.

1

Continue reading

Posted in Ajax, PHP, Voice | 9 Comments

Google Voice Custom Call Widget

Create your own call widget in google voice. In the embed code look for the flashVars.

<param name="FlashVars" value="id={id}&amp;style=0" />

Take the id value ({id}) and fill in the array data below.
showCallerNumber is either 1 or 0 show number/ call anon which doesn’t show the number
callerNumber is the number that is calling you. so 1 + 10 digit number.
name is the name of the person calling you.

Now that you have all this information fill in the $postVars array and test out the script and receive your first call.

<?php

$url = 'https://clients4.google.com/voice/embed/webButtonConnect';
$postVars = array(
 'showCallerNumber' => '1',
 'callerNumber' => '1{10 diget phone number (don't forget to add the one in front)}',
 'buttonId' => 'button id',
 'name' => 'Name of the caller'
 );
$t = http_build_query($postVars);

 $ch = curl_init($url);
 curl_setopt($ch, CURLOPT_POST      ,1);
 curl_setopt($ch, CURLOPT_POSTFIELDS    ,$t);
 curl_setopt($ch, CURLOPT_FOLLOWLOCATION  ,1);
 curl_setopt($ch, CURLOPT_HEADER      ,0);
 curl_setopt($ch, CURLOPT_RETURNTRANSFER  ,1);
 $Rec_Data = curl_exec($ch);
 echo $Rec_Data;

?>
Posted in PHP, Voice | 26 Comments

Pixelizing an image!

I decided I wanted to create a game and figured why dont I use all div tags. Well here is a way to take any image and convert it into divs.

Posted in Example, PHP | 1 Comment

Image Gradients made dynamic!

Today I developed an image gradient for creating background gradients for future uses. Not sure what to do with it but i thought it was cool and fun! Maybe ill create a random scheme for snipsta.

Posted in Example, PHP | 1 Comment