Internet Marketing & Search Engine Optimization Services

Relevant Articles from PI Media Blog

Posted on 30 January 2012 @ 6:12 am

Is your Redmine running very slow? Shift to Mongrel from Webrick

Some time back, we had installed Redmine a project management web application built in Rails on our server. It worked smoothly for a while but then it started getting slower. In the last few days, it slowed down to the extent that it took ages (over a minute) to load any page. First I thought [...] Related posts:

  1. How to run Ruby Webrick or Mongrel on port 80 for Redmine
  2. How to stop Mongrel or Webrick after starting with -d option
  3. Ten Step Guide to Install Redmine project management application

Posted on 25 January 2012 @ 5:54 am

Simple Way to Keep Your Web Portal Pages Fresh by Rotating Content Blocks using PHP

For larger websites and web portals, keeping their website layout look fresh is one of the most important factors. You may be posting lot of new content in your website but if it;s layout remains same, users might not feel any difference. One great way to show visitors new layout to see each time they [...] Related posts:

  1. [WordPress] Creating Full Width Page Template for WP Posts and Pages
  2. Content Management System Development
  3. How to embed Flash SWF Files using Lightbox Clone prettyPhoto in WordPress Posts and Portfolio Pages

Posted on 18 January 2012 @ 5:51 am

How to check Facebook Page Liked by User, Like-Gate Facebook iFrame Tab using PHP Graph API

These days, every business wants more and more ‘Likes’ for their Facebook pages if their Facebook application supports its own custom tab. And this is kinda becoming the basic requirement for every such Facebook app these days so here’s how you can achieve that using Graph API PHP SDK. This helps us choosing the content [...] Related posts:

  1. Get Facebook User’s Affiliations, Network Information Using Facebook Graph API
  2. Facebook Graph API authentication OAuth 2.0 replacing Require Login
  3. Facebook Graph API 3.1 – Requesting Extended Permissions for your Application

Posted on 16 January 2012 @ 7:43 am

Resolve JInstaller::install: Failed Joomla Components and Modules Installation Errors

If you are facing trouble in instillation of Joomla components and modules, and getting errors like * It was not possible to copy the selected file. * JInstaller::install: Failed to copy file:, you need to give write permissions to yuor components and modules directories. To resolve this, go to Joomla Administrator > Help > System [...] Related posts:

  1. [Joomla] Resolve Error Installing Joomla Components or Plugins, It was not possible to copy the selected file
  2. [WordPress] Resolve Error: Unable to create directory+Is its parent directory writable by the server?
  3. Joomla Error – jtablesession::Store Failed DB function failed with error number 145

Posted on 12 January 2012 @ 7:23 am

Dynamically Resizing Facebook Canvas (iFrame) Apps to Remove Scrollbars

All new Facebook applications are now iFrame apps. But when you check your app using iFrame inside Facebook, horizontal and vertical scroll bars may appear in the iFrame if the content exceeds height and width of the canvas. Luckily, Facebook provides a ready to use method to dynamically re-sizing of iFrame inside it. Step 1 [...] Related posts:

  1. Fix Facebook Application Error in FBML Canvas Apps: Empty Response Received
  2. How to check Facebook Page Liked by User, Like-Gate Facebook iFrame Tab using PHP Graph API
  3. Facebook Platform – Secure Page Tab URL will be required on October 1, 2011.

Posted on 10 January 2012 @ 7:44 am

Get Facebook User’s Affiliations, Network Information Using Facebook Graph API

Facebook Graph API $me object does not provide user’s network info. To access FB user’s networks/affiliations information, you need to use FQL like this:   $fql = 'SELECT affiliations, name FROM user WHERE uid = '.$me['id'];   //or use this query for standard_user_info table //$fql = 'SELECT affiliations, name FROM standard_user_info WHERE uid = '.$me['id']; [...] Related posts:

  1. How to check Facebook Page Liked by User, Like-Gate Facebook iFrame Tab using PHP Graph API
  2. Redirect Users from Old Facebook App to other FB Application URL using FBML
  3. What is Facebook Third Party ID and How to Get it using Graph API

Posted on 26 December 2011 @ 5:27 am

Lead Generation in WordPress – Get A Quote Form, Contact Forms Plugin for WordPress

Recently working on a WordPress powered website, I needed to place different forms on the WordPress based website to generate leads and capture data. One contact form was to be setup through sidebar widget and other form was to be setup as lead generation standard ‘Get a Free Quote’ form placed in the theme header. [...] Related posts:

  1. WordPress Gravity Forms Validation on Client Side using jQuery
  2. Resolve Tabindex Issue for Multiple Gravity Forms in WordPress using jQuery
  3. Adding Gravity Form shortcode Anywhere in WordPress Template

Posted on 20 December 2011 @ 1:48 am

PHP Fatal error: Cannot redeclare do_magic_quotes_gpc() in osCommerce Store

During osCommerce store customization and add-on installation, if you get following error Cannot redeclare do_magic_quotes_gpc(): PHP Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /home/user/public_html/butikk/includes/functions/compatibility.php:19) in /home/user/public_html/butikk/includes/functions/compatibility.php on line 3 This error is caused by copying of a module file into the languages “catalog/includes/languages/” folder by mistake during some add-on installation. Check all the files [...] Related posts:

  1. [osCommerce] Resolve error setting up Westpac Payway Net osCommerce module invalid IP address
  2. PIM-oscSlideshow – osCommerce Slideshow Gallery Add-on with Admin Panel for osCommerce Store
  3. [osCommerce] Steps to secure osCommerce Website from being Hacked

Posted on 19 December 2011 @ 5:46 am

How to embed Flash SWF Files using Lightbox Clone prettyPhoto in WordPress Posts and Portfolio Pages

Embedding Flash swf files in the WordPress is something which all designers and developers have to do to showcase their work. And since WordPress is now being used extensively not just for blogging but also as a CMS, there are more and more people showing their Flash portfolio in WordPress pages. Also, usually Flash files [...] Related posts:

  1. [WordPress] Creating Full Width Page Template for WP Posts and Pages
  2. Include & Display Custom Post Type Records under Categories Posts Listing in WordPress
  3. Configuring Number of WordPress Blog Posts and Syndicate Summary in RSS Feed

Posted on 18 December 2011 @ 1:43 am

Logging PHP $_POST, $_FILES data for Debugging

Debugging is part and parcel of development and especially now applications getting complex with the advent of mobile apps development, developers need to log Form submitted $_POST and $_FILES data. Here’s a useful snippet to log the posted data that you can place in your PHP script to help you identify the problematic part. Jut [...] Related posts:

  1. how to unzip files on remote server using PHP script
  2. Resolve function.getimagesize: failed to open stream: 403 Forbidden Error
  3. [osCommerce] Resolve osCommerce Admin Panel Product Attributes Page Navigation Problem