Mcloide's resources library

All about PHP, Javascript, concepts and development

Posts Tagged ‘api’

Twitter: Post message with PHP

Posted by mcloide on July 22, 2009

Twitter-GoldThis is a great post from Antonio Lupetti that shows, in a very simple way, how to post a message on Twitter using the Twitter API and PHP.

Check it out: http://woork.blogspot.com/2007/10/twitter-send-message-from-php-page.html and tweet :)

Update: Adding up to this tutorial there is a great tutorial as well: http://devzone.zend.com/article/4431-Using-the-Twitter-API-with-PHP-and-PEAR

Posted in Javascript, PHP, development | Tagged: , , , | Leave a Comment »

2009 Source Forge Projects Awards

Posted by mcloide on May 13, 2009

Every year Source Forge calls the community to vote on the best projects of 2009 in a bunch of categories.

I have one project hosted with Source Forge and I have decided to nominate in the category of Tool or Utility for Developers.

The project is the PHP5 Authorize.net Class which many of you already know and, like in every award, the project need your help to win.

So, if you want to help, I just need you to follow the robot bellow (click):

http://mcloide.wordpress.com/2009/04/01/authorizenet-php5-class-update/

Posted in cool | Tagged: , , , , , | Leave a Comment »

PHP Captcha

Posted by mcloide on March 5, 2009

Using a Captcha Library for PHP isn’t something new, but there are some that works great and one of my favorites is the reCaptcha. reCaptcha got an easy to integrate code, it’s own API and it is free.

Check out this resource: reCaptcha Link

Posted in PHP, development, resources | Tagged: , , , | Leave a Comment »

Google Maps in a tabbed profile

Posted by mcloide on August 22, 2008

Consider that you have a profile page, tabbed, and in one of the tabs you have a Google Map with the pinpoint of the user. When the page loads, it will load the map aplication, but the map div will not be visible at that point.

When you hit the map tab, you will see the map loaded, but, with some areas missing or acting really weird.

What is happening is when the tab loads, the map is not fully loaded and the main document finishs to load before the map loads, so, it understands that the map area is smaller than really is and shows it like that, funny.

How to fix it? Simplier than you think. If you search around you are going to find some stuff like map force redraw, but there’s a simplier way to do it.

Add a setTimeout to load the map.

Here’s the whole process. Remove the onLoad=”loadThis()” from the body and inside the map tab, just after the map div, put the a javascript like this: setTimeout(‘loadThis()’,1000);

That’s all you need and your map will have more than enought time to load all info and display correctly.

Have fun.

Posted in Ajax, Google Maps, Javascript, development | Tagged: , , , , , , , | 7 Comments »