Skip to main content

Posts

Creating a joomla template

Creating a Simple Template: Step 1 To understand the contents of a template, let’s start by looking at a blank Joomla template. Template File Components This section reviews the manual process of setting up template files. Normally, you would install the template using the Joomla installer, which takes care of all these steps. When constructing your own templates, you need to set up several files and folders in a coordinated manner. A template needs to contain various files and folders. These files must be placed in the /templates/ directory of a Joomla installation, each in a folder designated for that template. If you had two templates installed called Element and Voodoo, your directory would look something like this: /templates/element   /templates/voodoo   Note that the directory name for a template must be the same as the name of the template—in this case, element and voodoo. These names are case-sensitive and shouldn’t contain spaces. Within the d...

Google Plus Android APK

The official Google+ Android is only available in certain regions.  https://market.android.com/details?id=com.google.android.apps.plus&hl=en But, fear not, XDA member sacredsoul , has got his hand on the unofficial Google Plus APK for international Android users. I've tried it on my Galaxy S i9000, and it works perfectly fine. Get yours from XDA forum  http://forum.xda-developers.com/showthread.php?t=1148305

[Virtuemart] Customize Order List - adding extra column

In this post, I am going explain on how to add an extra column in Virtuemart Administrator Order List page. (Note that, in this example, I'm going to add a new address_1 column). Getting Started. In /administrator/components/com_virtuemart/html/order.order_list.php locate this section, around line 27. Then add " address_1 " into the line, as below. //$list .= "first_name, last_name FROM #__{vm}_orders, #__{vm}_order_user_info WHERE "; // This is the modified line. $list .= "first_name, last_name, address_1 FROM #__{vm}_orders, #__{vm}_order_user_info WHERE "; After that, locate this section, as usual and note that " Address_1 " is already the added column. $columns = Array( "#" => "width=\"20\"", "<input type=\"checkbox\" name=\"toggle\" value=\"\"  onclick=\"checkAll(".$checklimit.")\" />" => "width=\"20\...

HTML, XHTML and CSS

Cascading Definition: The cascade in CSS or cascading style sheets is the ability to have multiple styles from different sources merge together into one definitive style. The benefits of CSS Separation of content and presentation Smaller webpage file sizes Improved webpage download speed Improved rendering speed Streamlined maintenance Changing presentation for different devices Accessibility Table-less layout Customisation Search engine optimisation CSS Grouping When several selectors share the same declarations, they may be grouped into a comma-separated list. Example(s): In this example, we condense three rules with identical declarations into one. Thus, h1 { font-family: sans-serif } h2 { font-family: sans-serif } h3 { font-family: sans-serif } is equivalent to: h1, h2, h3 { font-family: sans-serif } Reverse a string in CSS? <p style="direction: rtl; unicode-bidi: bidi-override;"> 0C 88 65 36 5C 65 14 8D B5 3E 47 D9 20 11 9F ...

MySQL Questions

InnoDB Table Space Unlike MyISAM where data for individual tables is stored in their respective files, InnoDB stores data in a tablespace. By default, there is one single tablespace and data of all the databases is stored in one file. This file has data dictionary, tables, as well as indexes in it. There is a global parameter innodb_data_file_path that defines this tablespace file. It has a syntax like ibdata1:256M:autoextend, this means at the beginning a file of size 256 MB will be created and then whenever the data size exceeds this, the file will be auto-extended. The innodb_autoextend_increment variable defines in MB's that by how much each increment should be. Let's see how well can we play around: Inserts: Suppose you have too many inserts and InnoDB is extending the file too frequently. It makes sense to increase the value of innodb_autoextend_increment. Say we increase it to 16MB, then obviously the number of attempts to autoextend tablespace comes do...

CodeIgniter

CodeIgniter CodeIgniter Flow Diagram: How do you get the current controller and method name of the URL? echo $this->router->class; echo $this->router->method; Thumbnail Class: /** * PHP class for dynamically resizing, cropping, and rotating images for thumbnail purposes and either displaying them on-the-fly or saving them. * */ class thumbnail_model extends Model { /** * Error message to display, if any * * @var string */ private $errmsg; /** * Whether or not there is an error * * @var boolean */ private $error; /** * Format of the image file * * @var string */ private $format; /** * File name and path of the image file * * @var string */ private $fileName; /** * Image meta data if any is available (jpeg/tiff) via the exif library * * @var array */ public $imageMeta; /** * Current dimensions of working image * * @var array */ private $currentDimensions; /** * New dimensions of working image * * @var array */ ...