One of the cool things one can do in wordpress is to create a gallery or portfolio of images using files directly from Media Library. In general after been uploaded, files in wordpress become “Attachments”. I will show you how…
Showing Next-gen gallery inside the template file
I wanted to show the nggallery images in my web page using a php template tag in the theme template file. What i mean i wanted to use [nggallery id=6] in my template to show a particular gallery after matching…
How to represent weighted score average calculation in sigma notation?
I have 20 questions and they are further divided in to a set of 4 questions in each which means there are total 5 sets A, B, C, D and E. Each question has 5 marks so in a set…
Security issues created to WordPress installation
Received this warning in Google Chrome last night when i tried to open my website jogindernagar.com built in WordPress. Warning: Something’s Not Right Here! www.jogindernagar.com contains malware. Your computer might catch a virus if you visit this site.
Skipping plugin update request from WordPress Installation – Just A Hack
Sometimes, you may want your WordPress installation to not to ask you for upgrading a certain plugin you might have edited or extended in order to meet your requirements. Though this is not a good practice to modify a certain…
ANZ-egate payment method for WP-Commerce Plugin
ANZ-egate payment method for WP-E-commerce plugin. I hope it works for you. Bug-fixing or improvements are welcomed. How to install: Create a new file (plugins/wp-e-commerce/wpsc-merchants/anz-egate.merchant.php) and place this code into this file. Once saved check the Payment Method section of…
An example of CakePHP complex find conditions
Setting complex ‘find’ conditions in CakePHP can be tricky. I picked an example of Cakephp complex find conditions from one of my CakePHP projects. I wanted to list all auctions which are “not closed” and whose’ end date/time is greater…
404 error while saving options of Unique Article Wizard WordPress Plugin
I would try to save UAW options at http://www.myexamplewebsite.com/wp-admin/options-general.php?page=unique_articles/unique_articles.php and it would end up in a “404 Not Found error”. I tried different things in order to fix it.. debugged through the action of the options form, changed form action, urlencoded the…
Installing PHPUnit in wamp in Windows7
Installing PEAR package manager Add php directory to your Windows’ Environment Variables PATH, if it is not already added. My wamp php path is “C:\wamp\bin\php\php5.3.13”. Check Adding to Environment Variables Path if you are not sure how to add a…
Adding a location to Environment Variables Path in Windows7
You can add a location to system Environment Variables PATH by following simple steps give below. For example i wanted to add my PHP directory path i.e. C:\wamp\bin\php\php5.3.13 to Environment Variables > Path value in Windows 7