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.
Sometime back I developed a mobile app, where image was to be submitted with the entry form in some competition. It worked on all major phones except for Apple’s wonderful devices such as iPod, iPhone and iPad. The reason for this was Mobile Safari browser that won’t let you upload images from your iPad/iPhone and…
Facebook has added the app’s permissions to the user object, which can easily be accessed using Facebook Graph API and any specific permission is missing, you can request for it by redirecting user to the Facebook: $app_id =’App ID here’; $app_secret =’App Secret here’; $app_url =’App URL here’; // Create our Application instance. $facebook =…
Using WordPress, if you create Custom Post Type and while adding records you also post them under standard Posts Categories or Sub categories, they won’t appear under the listing of those categories standard posts. To resolve this and include Custom Post Type records in the categories listing, add the following code in your theme functions.php…
To get the Facebook Third Party ID for your app Facebook user, try the following code using Graph API: $fbid = $facebook->api(‘/me?fields=third_party_id&access_token=’.$access_token); echo “THIRD PARTY ID: “.$fbid[‘third_party_id’]; What is Third Party ID? Facebook expressly prohibit Platform developers from passing any data from Facebook to data brokers. But sometimes there are practical reasons that developers will…
WordPress 3.x comes with the ability to create Custom Post Types and which makes it very simple for developers to extend WordPress and use it as a proper CMS for any business need. Apart from the default Posts and Pages, you can now create custom types to better manage content, and make it easier for…
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. My client wanted a feature where every member would get email notifications for any new topic started by any user. Since it’s not available in…
When using the auto update feature to update wordpress to the newest version or to update your plugins, some peoiple ask why they have to enter ftp details when at times it does not ask. The simple reason is that your httpd user does not own the website public folder and you also have to…
Mingle Forum is very useful WordPress Plugin that allows you to quickly put a Forum on your WordPress site/blog. While it has many useful features, one of my client asked me to add a feature where any user would get email notifications for any comments made on his created topic or where he posted his…
On a Joyent server, I needed to install the libphp2 for PHP on SmartMachine so that WordPress can use SSH in your PHP code, but when I tried following command to install package, it gave followign error: [root@server]# pecl channel-update pear.php.net bash: pecl: command not found This error can be resolved by doing following: [user@server]#…
We all know that php can read the url values of query string variables using $_REQUEST but foi yuo need to get the values of hash, PHP can’t really help. Some suggest to use parse_url() function but it can’t get the fragment values. Reason for this is that the browser won’t even send a request…
If you get WordPress page not found error or 500 internal server error for opening admin/edit.php Admin Panel Posts Link, you need to disable mod_security on your server. To disable mod_security, open your blog .htacess which is stored at the root of the site from public_html folder or inside wordpress/ folder. # BEGIN WordPress RewriteEngine…
While testing a jQuery Mobile Framework based web app on iPhone, I noticed iPhone displayed the web page zoomed out with very small text. I thought I had forgotten to add some styles or messed up something in my custom css but turned out some thing very basic, just add it in the top of…
While working on jQuery Mobile Framework project, I had already used Prototype library for some features in the application. But jQuery and Prototype refused to play ball and application broke. The issue was shortcut or both jQuery and Prototype and both use $. Luckily, jQuery foresaw such scenario and already planned for library conflicts and…
By default, jQuery Mobile framework html links that point to any other web page are loaded via Ajax and it’s so to enable animated page transitions in your app. If you want to make your existing application links to work as it they would work in normal web app, you need to add rel=”external” attribute…
I implemented jQuery Mobile Framework in a mobile app recently which I had earlier developed with custom css and html theme and having issues in different mobiles for consistent look and feel. Luckily jQuery Mobile Framework came out just in time for me because client wanted to his app to be compatible with as many…