RSS
people

wp to twitter error

Scenario:

I upgrade one of my wordpress plugin “WP to Twitter” to latest version (Version 2.2.0) for the OAuth and found that it doesn’t work with my hosting plan (hostgator).
When I click on the “Connect to Twitter” and there is a fatal error “Fatal error: Class ‘OAuthSignatureMethod_HMAC_SHA1′ not found.
After performing some debugging and found that it is due to OAuth enabled in my hostgator PHP.

In hostgator, they are using PHP 5.2.14 with OAuth enabled. This is the main reason causing the problem.
Inside the PHP OAuth, it contain of a set of classes (OAuthException is one of them) and “WP to Twitter” plugin is using this class to perform some checking and causing the problem.

Solution:

Here is the modification that I done for my wordpress plugin.

read more »

5 Comments | Tags: , ,

retrieve visitor country information

I am quite busy for the pass 1-2 months and did not update this blog.
Today I would like to share a simple and useful script to all on how to retrieve visitor country information.
It is useful when you want to analysis/track your visitor information (similar with those webstats that show the visitors country information)

I am using the api service from the hostip.info.
By passing the visitor IP Address to api service, it will return the country information to your script.

Example:
read more »

1 Comment | Tags:

PHP send email request read receipt

Guys,

When users using Emails function in some web base application (like sugarcrm, joomla), they might need to request read receipt from the recipients.
Here is a simple tutorial on how to add in the “Request read receipt” in email while send out email thru PHP.

I am using the phpmailer class to develop the feature, please download it from the source forge.

Here is the simple script to send out email and request for read receipt.
read more »

No Comments | Tags: ,

customize SugarCRM out-of-box module field(s)

When deploying a SugarCRM project, there is always required to customize out-of-box modules.
Here is the tutorial to teach your guys how to customize a field from Accounts module.
read more »

1 Comment | Tags:

PHP generate calendar file (ics)

I am working with some Event management system recently.
The system requirement need to send out the confirmation to those registrants with a calendar ics attachment.
For this, I need to make my application to generate the ics file and attach it inside the email notification.

Below is the source to generate the ics file.
read more »

7 Comments | Tags: , , ,