OpenCart has error in core mysqli client library

Standard

Today, while studying the architecture and code of OpenCart v1.5.5.1, I just found an issue with it and wanted to bring in everyone’s notice.

Open the file system/database/mysqli.php and look for the method “query”. It has an unmatched if…else statement. This also proves that OpenCart is not using “mysqli” library. They are still using “mysql” library for database communication.

Continue reading

What’s New in jQuery 1.9

Standard

jQuery 1.9 was released on January 15, 2013. The version marks an important milestone in jQuery’s evolution:

  • Several deprecated features have been removed to provide a slimmer, cleaner library in preparation for version 2.0
  • It will be the last to support IE6, 7 and 8

Don’t rush off and download it just yet – there are a number of migration issues to consider. The long list of 1.9 changes means few sites are likely to escape unscathed. Continue reading

Understanding the X-UA-Compatible meta tag

Standard
These days, lots of web pages are using the <meta http-equiv=’X-UA-Compatible’ content=’IE=edge,chrome=1′ /> tag in the HTML source. I’ve asked many designers or developers that what’s the meaning of this? While few of them have explained me correctly, many others are “just using it”. So, I’ve thought of providing a small note on this.

How to handle an error that is already produced by jQuery document ready event

Standard

Most of the times, while working with jQuery, we used to face a very common issue with other plugins or jQuery snippets throwing error in the document ready event that prevents other jQuery code stopped working due to the error already occurred in the document ready event. It’s important to remember that if a document ready event triggers error, other jQuery code will stop working. You may be working with Joomla, Drupal or WordPress or any other CMS with lots of plugins or extensions and you are writing your own. Things go messy when your jQuery code is correct, but others are not and hence your code is not working. The question is how to solve this issue?

Continue reading

How to bypass Page Cache created by W3 Total Cache

Standard

In our recent WordPress plugin development, a bridge between Invision Power Board (IPB) forum software and WordPress, we needed to handle the user login through IPB and get the logged in user details in the WordPress. Post getting the IPB user session in the WordPress, our plugin opened up the comment section in the WordPress that would allow the comments to be posted in IPB thread. This is a very basic overview of the plugin and it can be seen working LIVE at Red94.net. The plugin can do a lot more. If you have any questions about the plugin, you can contact us through our official website, AxeFinch.

Continue reading

How to delete error_log files from the server periodically

Standard

At times, I get inquiries for deleting error_log files from the server as they are consuming space. I strongly recommend not to delete the files. Those files contains critical information those cannot be seen through a normal debugging process. Trust me, error_log files are life saver. But, still I would like to publish a small PHP script here in order to delete the error_log files from the server. Continue reading

How to implement “Floating Facebook Sidebar”

Standard

These days adding Facebook like box in any website using Facebook Social Plugins is common to increase number of likes to your page. But, it also occupies a good amount of space when showing it with faces, streams etc and user might need to scroll through your page for this. If you want to stay there in your page but, you don’t want to occupy the area by it, here is a solution with jQuery based Floating Facebook Sidebar. Continue reading