I am a web & mobile app developer based in Lahore. I have been developing creative, interactive, usable & successful web apps, web portals, php and Flash action scripting, REST apis, WordPress plugins & themes. In recent years, I have worked on Ionic, Angular and TypeScript for hybrid mobile apps, Flutter & Dart, React & React Native, and Swift native iOS mobile app development.
Recently, I installed ShareThis plugin on a WordPress website (with counters) and I needed to show the count of total likes and shares for that domain but those counters just count for each page separately. If you want to show the site-wide count of the FB Likes, Google Plus and Tweets in your WordPress Blog,…
“ShareThis” is a great WordPress plugin for adding social links to your Posts and pages. ShareThis plugin seamlessly enables users to share your content through Email,Facebook,Twitter, Google +1, Like, Send and many more. This plugin works well but adds the social shortcuts to every page, post, excerpt and custom post type that you have in…
While developing a Facebook Dating app recently, I needed to return records for a date range between minimum and maximum age from users table but the data was in the date format (birthday). Following select command will calculate the age from the `birthday` column value for you for each record: SELECT EXTRACT(YEAR FROM (FROM_DAYS(DATEDIFF(NOW(),`birthday`))))+0 AS…
Mingle Forum is very useful WordPress Plugin that allows you to quickly put a Forum on your WordPress site/blog. Email notifications in Mingle Forums is one area which needs improvement. Earlier for a previous version, I had posted a hack so that every member could get email notifications for any new topic started by any…
While developing an iFrame Canvas Facebook app recently, I found out that FB iFrame app’s session did not work quite expectantly in IE8. Firefox, Chrome, Safari, Opera all worked as expected but IE8 block access to cookies. After spending some minutes Googling, I found out that IE8 restricts the access to cookies, known as 3rd…
Last year I developed a payment module for osCommerce for Telenor’s EasyPaisa Mobile Money transfer. Since then, I was peppered with requests to develop a similar module for UBL Omni osCommerce payment module using Dukaans. Finally last month, I found some time and developed UBL Omni payment module for osCommerce stores. This mod works in…
Last year I developed and released an image slider add-on for osCommerce which used Easy Slider as image slider. It turned out to be very useful add-on for community and I have removed few bugs since then. Many users asked for features such as multi-lingual support in the slider, Nivo Slider jQuery plugin as front…
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…
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…
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…
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…
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…
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’]; $param =…
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.…
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…