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.
If you are getting “App temporarily unavailable” FBJS errors like following on your Facebook apps pages: App temporarily unavailable Runtime errors: URLExceptionInvalid scheme for url (javascript:) URLExceptionInvalid scheme for url (javascript:void(null)) Solution Search in your html code any reference to javascript in a href=”javascript:” tags. Just remove them and use onClick event instead. Hope that…
To get and display the configurations settings values in any Joomla website, Joomla’s JFactory object is used. Using JFactory, we can load configurations values and use them anywhere in our Joomla templates like this: $config =&JFactory::getConfig(); $website_name = $config->getValue(‘config.sitename’); $MetaDesc = $config->getValue(‘config.MetaDesc’); $MetaKeys = $config->getValue(‘config.MetaKeys’); Hope that helps. Cheers.
There are many ways to get the remote images to your server using PHP script, but I have found the following GetImage class most useful for downloading images from a remote location to your server. The easiest is to use PHP5 copy method like this: copy(‘http://www.remotewebsite.com/image.jgp’,’data/image.jpg’); This is incredibly simple way to download image to…
Recently, I was asked to debug one FBML Facebook app which was showing randomly this error. Usually, this error when it appears, does not always appear and not to all users. Error while loading page from App Name. “Empty Response Received”. While searching for the cause and possible solution, I stumbled upon these threads and…
Copying MySQL databases from one server to other remote machine is task every webmaster has to do very often if not daily, and if your databases are huge, following command comes very handy to do this job without first downloading and then uploading the dump file. Also, phpMyAdmin and other MySQL clients fail while importing…
For transferring one website from one server to another, I had to take the backup. usually this is not a big issue, but this time this machine was 64 bit Spark machine and the new server was a 32 bit GNU machine. While uncompressing, I got the following error: root@server # tar -xvf file.tar.gz tar:…
Single quotes, double quotes, slashes and all kinds of other junk data will break your application code, especially the js and FBJS dialog boxes for sharing and components if the data is not cleaned properly. Following PHP function will clean your data for such garbage. function cleanData($data) { $cleaned = preg_replace(“/[^A-Za-z0-9\s\.\-\/+\!;\n\t\r]/”,””, $data); $cleaned = preg_replace(“/\s+/”,”…
Although FBML is dead already, you still need some code for the existing apps. if you need to redirect the users form the existing or demo Facebook apps to the released versions, you can easily put the following FBML code in the config file of your application. Hope that helps. Cheers!
While setting up a premium WordPress Theme and customzing this WordPress theme to client’s requirements, I got the following errors in the footer code. The theme author had used a php function which was not part of the theme files. Fatal error: Call to undefined function: twitter_messages() Reason for the error is that you need…
When I tried to launch my Flash CS5 after a while, it crashed and after crashing few more times on failed attempts to launch Flash, I deleted first run and poreferances files of Flash CS5 which resolved this issue. I had the same experience with Flash CS4 too. And this crashing issue is not just…
I was asked for an AS3 Flash counter displaying the time in seconds as they go by and seconds conversion into the proper hours : minutes : seconds display format. To count the seconds, I used AS3 Timer class and for formatting I found this formatTime function of Jeff Depascale and put together following Flash…
There are times when you need to add custom directives in your php.ini and use it for a specific directory or for your entire website. There are two steps involved to force your server to use the updated php.ini and not he default one. First copy the existing php.ini file from this usual location “/usr/local/lib/php.ini”…
Based on Zend Framework, jQuery and 960grid, TomatoCMS is a powerful Content Management System. It’s free and open source licensed under GNU GPL. I installed it just yesterday and completed its configurations and fixed its missing images errors today and I’m already liking muchly whatever I’ve seen until now. There are tons of features in…
There are times when you want to change your website directory structure for the latest directory structure on the request of your SEO team or for some other reason, and using 301 redirects in apache’s .htaccess, this can be done very quickly and efficiently. Here are some scenarios that I have encountered and used .htaccess…
The recent update to the Facebook Fan Pages Profile Photos has improved the design potential quite a bit and it has increased the scope of your Fan Page and Brand promotion and marketing efforts on Facebook. In the new Facebook Fan Page layout, old tabs have been moved from the top of the page to…