Adding multiple categories option - Part 2

Note: The information below is for an old version of K2, which is no longer supported. Please use Multi categories update for the latest version of K2 instead.

After a long wait, updated files for multicategories in K2 component are now available. I went over the changes needed to be done for multiple categories to work.

Loading a model from another JModel

I was searching for a way to reuse code of multiple models from within a JModel subclass in Joomla. This turned out a very easy task

Models can be access via getInstance function as per example below. In this example we have component called My Library (com_mylabrary) which has MylibraryModelBooks JModel class and MylibraryModelBook JModel. For perpuse of this demo our view controller called a function within MylibraryModelBooks which needs to access a function within MylibraryModelBook. Here how there code will look like:

Fax line test

Telstra provides a fax testing service called "Fax Stream". It helps diagnose line and fax faults. To test the fax line, send a page with images and text from a fax in high resolution mode to Fax Stream Test number 1300 368 999 and within a short time, you will receive back a fax containing the test results of your fax transmission levels and other relevant information.

Update: the above number may no longer work. Telstra has another number for testing fax machines that you can try 1300 368 909. Thank you Royce for pointing this out.

Image Resizing with Photoshop

Often I need to resize a lot of images for a website, especially when setting up a new online store for a client. Bulk image resizing can take time, so I decided to automate image resizing using Photoshop. While Photoshop does not handle bulk image resize, it does offer scripting ability to add bulk resizing using JavaScript.

Common Email Ports

  • POP3 - port 110
  • IMAP - port 143
  • SMTP - port 25
  • HTTP - port 80
  • Secure SMTP (SSMTP) - port 465
  • Secure IMAP (IMAP4-SSL) - port 585
  • IMAP4 over SSL (IMAPS) - port 993
  • Secure POP3 (SSL-POP) - port 995

Adding multiple categories option

Note: This tutorial is for an old version of K2. The latest version of Multi categories update for K2 is now available for a download from the main menu on the right.

Last week we talked about adding Multiple Categories in K2 Items. So lets start by adding an option to save multiple categories for K2 item. First we need a new table where we will store our reference.

How to find the best credit card deal

The best credit card deal depends very much on individual circumstances. While I believe the best option is to have no credit debt at all, there are moments when it can come handy. So my preference is to have a credit card with longest interest free days and lowest keeping fees.  Finding the best deal is all about asking the right questions. Below list of questions that I always use when looking for the best credit card deal:

Multiple Categories in K2 Items

Note: This tutorial is for an old version of K2. The latest version of Multi categories update for K2 is now available for a download from the main menu on the right.

K2 is a great extension and it comes very useful when building large websites with different type of content. However K2 has some limitations. Adding items to multiple categories is one of them. Searching internet for solutions yield no practical result, so I decided to give it a go and extend K2 ability to add an item to multiple categories.

How to change IP address from command prompt cmd in Windows

Recently I needed to change IP address and DNS setting in windows on regular basis while doing some application testing. I found a vry useful windows comand that alloed to do that infrom windows command prompt:

Set up DNS to be obtained from DHCP:

netsh interface ip set dns "Local Area Connection" dhcp primary

Set up DNS to static IP address:

netsh interface ip set dns "Local Area Connection" static primary

Set up IP address:

netsh int ip set address "local area connection" static 1

Adding new joomla controller step by step

Adding new joomla controller by step by step if you need to add a new function to an existing component, but without reinstalling it. The instructions below assume that you already have a basic knowledge of MVC design used by Joomla.

GWT Missing plugin

If you are using GWT with Eclips and getting the following error when running your web application for a first time:

The requested URL/missing-plugin/was not found on this server.

That is probably because google moved their missing plugin page to

So direct your brouwer to the above URL, instlall the plugin and you should be OK.

Page 4 of 5

Free business joomla templates