Updated: Errors involving some servers and Curl
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.

Nice!
I have looked through all the components, and I think Iunderstand most of it, but if you can come up with some documentation so I can get it right that would be perfect.
Thanks for sharing all of this! Yours is the only site I have found (and I did a LOT of research) that has gone beyond – and nicely so – the default GV icon. The best I could find other than yours has been custom icons that only wind up launching the default GV icon when pressed. So when I get this to work, I’m gonna advertise the crap out of you if you’d like!
Right now my site only has a placeholder where this will sit. And apologies if your offended – I borrowed your GV ‘Call Me’ icon as the placeholder. Although I wouldn’t mind using the whole graphic set if your agreeable to that, with some color modifications to match my theme. I just love the look and how it transitions from screen to screen! Let me know.
Once I get this thing working, then all I’m left with is figuring out how to call it from my entirely Flash web site. This has been a huge learning experience, and although I tend to hate programming, it’s been kind of fun, in a sick kind of way…!
Yeah I did a tun of reasearch also and was quite annoyed that there wasn’t anything. So then I decided to make my own
Since you have a flash site I do have the code for sending the request using AS3.
It was my first experience with flash and AS3 so it could be honorably bad but will give you an example of how to send the request in flash.
If anybody has any other scripting challenges shoot them my way!
I have several questions for you. I apologize if they are stupid questions, but I am an as-needed programmer, so I’m on the low end of novie programmers.
1. My host site came with a default INDEX.PHP. Do I need to replace it with your version of the file, rename your file entirely and change the call name to match the new name in other of your files, or copy the content of your INDEX.PHP to my existing copy of the file?
2. I do need to change this line in INDEX.PHP to contain my personal GV widget ID:
$gv->id = ‘Google Widget id’; (changing ‘Google Widget id’ to my personal GV id).
Do I also need to add my GV id to this line in GVWIDGET.CLASS.PHP, or is it calling the line from INDEX.PHP in some way:
‘buttonId’ => $buttonID
3. In reference to this line in GVWIDGET.CLASS.PHP:
$fields = array(‘name’ => ‘#callMeName’, ‘number’ => ‘#callMeNumber’);
When I name my Form Fields, do I add the # to the front of the field names? (IE. #callMeName or callMeName)
4. Is there a Form Field that needs to be setup called callMeKey? I see it referenced in a couple spots in the .PHP file. Are there other Form Field names that also need to be added that I’m missing?
5. Do you have a copy of the widget in an .FLA file that works when it’s published to .SWF? I find it much eaiser to understand what I’m doing when I have a completely working file then work with it to see what makes it work and what breaks it.
Thanks again for all of this! When I understand it all and get it to work it’s gonna be sweet!
Hey Snipsta!
That widget is awesome! Do you know if it’s possible to get it to work with multiple phone numbers? For example I have 3 clients that all need call tracking. Could I set up a widget for each of them and then they can each get a number that forwards to their business number? Sorry if that sounds dumb, just trying to figure out how this works
Yup just have to set the button id to equal the correct widget. you could do a drop down to select which client to creating a widget for each client.may require a few modifications but it is doable.
Ohh also Download the code and play with it. You will need a Google number to create widget ids. Since my widget utilized the same information as the Google Widget it will function however you setup the Google widget.
Hey Snipsta,
Could we get some clarification as to exactly where to place the Google Voice widget ID, and in which php files? I’ve almost got this thing working, but think this is where I’m getting stuck.
Thanks!
Hi,
I’ve set-up and customized this widget at http://www.aslanscountry.com/google-voice-widget/ but it never calls any phone, even though it says it is. I uploaded all the files you provide above, and edited the index.php so it would include my GV ID. When I place Google’s widget on my site and attempt to make a call, it always works, but with this widget, it doesn’t. (Although, the widget on your site works for me, just not on my site.) Any tips on what I’m doing wrong?
Works great. I added some fixed text to be added to the name so calls announce as “Technical Support” then the callers name so I know the source of the call when screened (and “Sales” and so on). The CSS allows for plenty of site matching. Now I need to integrate it well with Joomla, but even running as a wrapper it works fine. Thanks for the contibution of time and skills, I appreciate it.
Well, I am a bit slow on all this. I simply want to put this widget on a webpage and have no idea how to use the components that you have developed to do so. Can anyone tell me what I do with these components? I have a free website on webstarts.com and one on google sites. I am not sure where to go from here though. Anyhelp would be appreciated. Thanks.
Im not sure if this solution would work for you. I would need to create a flash version that works the same as the google version. where you just embed it in your page.
This one requires php to run.
Hey Snipsta,
What do I have to change and in what documents? Your help would be appreciated. Thank you.
Chris
Thank you! Works perfectly!
Where is the download package?
Hey, thanks for the download! Looks nice. One thing though. The other responses do not seem to be working. The call goes through but there is no indication until your phone rings. Nor are the error codes working. Any ideas?
I must be losing my mind,wheres the download link?
The download links on this site appear to still be down. Can anyone provide the source for the google widget?
Do you have a version of this brilliant script that is plain old PHP – so that it can be used on non-Wordpress sites? I looked at the plugin, but couldn’t figure out how to untangle it from WordPress.
Keep up the good work. You’re a Code Ninja!
Cheers,
Erich
Hi Snipsta, your widget looks awesome, and I’d like to try it out.. However, I don’t see the download link. Is there any way you can provide the files for download again? Thanks!!