File format support The following table illustrates the image file format support for the favicon. Use of favicon This table illustrates the different possibilities where favicons can be displayed. Accessibility This table illustrates the different ways the favicon can be …
Category Archives: Web Dev.
Mobile Ecommerce Website

It is mobile project done for one of our clients. BlueOnline.com.au As an eCommerce website (money in between) we had to pay more attention to every single side of the project. Mobile development is at the very beginning and even …
How to Detect Request Coming From Facebook
How do I detect either users open my Facebook app in iframe or direct url? Lets say my Facebook app url is http://fb.domain.com/ and the app url is http://apps.facebook.com/demoapp/ Now I want a user cannot open the application url directly …
WordPress Login Page – customise it smart
WordPress is more and more stable and to customise the login page can be frustrating. When you install an worpress cms and begin to use it there is not a big issue that your website tells everybody:”Hey I am done …
Write Sample of Coding into Page
The <code> tag allows you to write coding into your page without being executed and highlighting the code text. Sometime, when writing HTML code for WordPress needs to be used <sourcecode></sourcecode> or [sourcecode][/sourcecode] The code tags are supported in all …
Clickable Phone Number for iPhone Users
Clickable phone numbers have the meaning of allowing your web visitors to access you phone number with a click of mouse. HTML Syntax: <a href=”tel:+4917640206387″>+49 (0)176 – 402 063 87</a> Reasons to make clickable phones number can be: Mobile version …
Useful Website Analyse Tools with Google
How many pages from your website are indexed by Google: site:yoursite.com(.au) You will get a list of your indexed pages and you can see valuable information about what your results page might look like. Check where your website is mentioned …
Category ID – WordPress
WordPress is jumping as usual from one version to another and many rock functions become deprecated. As WordPress developer you may need current functions. Get current categoryID if you know the post ID. That’s simple and common and there is …
PCI DSS Compliance
PCI DSS (Payment Card Industry Data Security Standard) – a set of standards created by card issuers such as Visa and MasterCard to ensure the security of credit card details online. The PCI DSS is a security standard that includes …
HTML5 – Keyboard Events
ATRIBUTE STATUS VALUE DESCRIPTION onkeydown No Change script Script to be run when a key is pressed onkeypress NO Change script Script to be run when a key is pressed and released onkeyup No Change script Script to be run …
HTML5 – Form Events
ATRIBUTE STATUS VALUE DESCRIPTION onblur No Change script Script to be run when an element loses focus onchange NO Change script Script to be run when an element changes oncontextmenu NEW script Script to be run when a context menu …
HTML5 – Mouse Events
ATRIBUTE STATUS VALUE DESCRIPTION onclick No Change script Script to be run on a mouse click ondblclick No Change script Script to be run on a mouse double-click ondrag NEW script Script to be run when an element is dragged …
HTML5 – Window Event Attributes
ATRIBUTE STATUS VALUE DESCRIPTION onafterprint NEW script Script to be run after the document is printed onbeforeprint NEW script Script to be run before the document is printed onbeforeonload NEW script Script to be run before the document loads onblur …
HTML5 – Media Events
ATRIBUTE STATUS VALUE DESCRIPTION onabort No Change script Script to be run on an abort event oncanplay NEW script Script to be run when media can start play, but might has to stop for buffering oncanplaythrough NEW script Script to …
HTML5 – Global Attributes
ATRIBUTE STATUS VALUE DESCRIPTION accesskey No Change character Specifies a keyboard shortcut to access an element class No Change classname Specifies a classname for an element (used for stylesheets) contenteditable NEW true / false Specifies if the user is allowed …
Create rounded corners with CSS
Rounded corners for Safari/Chrome, Opera and IE9: #example { border-radius: 15px; } Rounded corners to be supported by Firefox as well: #example { -moz-border-radius: 15px; border-radius: 15px; } The border-radius shorthand property can be used to define all four corners …
Additional images – tabbed module – bug
Additional images are not shown – ZenCart Tabbed Products Lite module Cause – file is not found Check if the file exists in your folder – file names array is not built. if you upload files with CAPITAL extensions like …
Website seen by humans vs. website seen by search engines
When you’re deciding to create a website you think about how to make this website attractive to catch the people that accessing him, but to see website must be known, optimized for search engines. The website is seen by the …
Alt vs Title
Alt and title attributes increase your site’s usability level and promotion possibilities. The alt and title attributes, when used with images, are often the source of many questions, because these attributes affect visitors and search engines. The alt attribute is …
WordPress 3.11.x – problems
There are no custom fields supported into administrative area. You can still use any custom field like before but you must manipulate name and values directinto database There are no history for posts /ages supported but you can extract any …
Jquery, Prototype and third part javascript frame work
What’s happening now is close to madness.. sometimes. Anyway, any web service provider / developer work around this issue and the consumers assume the risk he may pay double or triple. Facts: 2009 September – we put on the market …
SSU module and .htaccess
All looks good and it works as long as your ZenCart is imstalled in the root. Problems appear when you have ZenCart installed in /shop folder for example. To understand better I will take and example: website: olalawebsite.com/shop absolute path …
HTML5 – replacement of Adobe Flash?
This article is written because I have got this message/question from two different people, one of them is one of our clients. There is a confusion about HTML 5 and “animation and animation interactivity” with/without Adobe Flash. The HTML 5 …
SEO in WordPress
There are a couple plugins which allow to have or build automatily any page/post Title, Description(and keywords). A few words about WordPress from SEO perspective: – WordPress is a CMS build as a tool for editors and it is ready …
Categories listing – Zencart
Basic files:used to display categories listing (caegories which have subcategories) /includes/YOUR_TEMPLATE/templates/tpl_index_categories.php Here is displayed categ image and description if exist and are enabled to be displayed. On #35you have: require($template->get_template_dir(‘tpl_modules_category_row.php’,DIR_WS_TEMPLATE, $current_page_base,’templates’). ‘/tpl_modules_category_row.php’); /includes/YOUR_TEMPLATE/templates/tpl_modules_category_row.php From now on is simple, there will …
Pages and IDs – WordPress
1) Get Current page/post ID: get_the_ID() is handy for templates in conjunction with the get_page and get_post functions. Using $post, the ordpress post global object global $post; if($post->post_type == ‘page’){ echo ‘ This is a page. ID= ‘.$post->ID; } elseif($post->post_type …
Redirection http://www to http://
# 301 redirect all domain request RewriteCond %{HTTP_HOST} ^www.YOURDOMAINNAME$ [NC] RewriteRule ^(.*)$ http://YOURDOMAINNAME/$1 [R=301,L] RewriteCond %{HTTPS_HOST} ^www.YOURDOMAINNAME$ [NC] RewriteRule ^(.*)$ https://YOURDOMAINNAME/$1 [R=301,L]
ID and Name – INPUT
INPUT (in form) 1) To get value of a input elements based on ID : var obj = document.getElementById(‘IDname’); var val=obj.value; 1) To get value of a input elements based on Name : var obj=document.getElementsByName(“name”); var val=obj[0].value;
Database – Zen Cart
Most of what you need is located into query_factory.php 1. standard way to browse extracted records ( no pagination): $sql= “YOUR SQL STATEMENT” $result_list = $db->Execute($sql) while (!$result_list->EOF) { …………….. YOUR PHP / HTML CODE …………….. $result_list->MoveNext(); } Eventually set …
htaccess – frendly URL – CMS Made simple
To have pretty URL in CMS made simple it is really easy if you don not move the website from root in a folder or on a subdomain. As long as you know what is htaccess file all is fine. …
Create a module – ZenCart
1) /includes/languages/english/my_module_name.php must have at least two lines define(‘NAVBAR_TITLE_1′, ‘Module Name’); define(‘HEADING_TITLE’, ‘Module Name more details’); 2) /includes/modules/pages/my_module_name Folder which must contain at least this file: /includes/modules/pages/my_module_name/header.php // This should be first line of the script: $zco_notifier->notify(‘NOTIFY_HEADER_START_MY_MODULE_NAME‘); require(DIR_WS_MODULES . zen_get_module_directory(‘require_languages.php’)); …
Login, Register in Zencart
There is no init heandler for login / register The file where the user session is created / recreated is : /includes/module/pages/login/header_php.php action = process, around #84 there are interesting lines: $_SESSION['customer_id'] = $check_customer->fields['customers_id']; $_SESSION['customer_default_address_id'] = $check_customer->fields['customers_default_address_id']; $_SESSION['customers_authorization'] = $check_customer->fields['customers_authorization']; …
Create box – ZenCart
To create a side box (left or right) for Zen Cart please follow instructions bellow. If you do not know what to write into new created files just open existing files already done. Look for them in the same folders …
Add field in products – ZenCart
Admin area: 1) Add new content which allow you to add/change data in the new fieed admin/includes/modules/product/collect_info.php Add a line, just copy and change all between <tr> …</tr> Consider <tr> …</tr> space as well. 2) Create a function which extract …
Define pages part 2, database and admin – ZenCart
Data about Zencart are stored in two tables : YOURPRFIX_configuration_grp YOURPRFIX_configuration For Define page the ID from YOURPRFIX_configuration_grp table is 25 Into admin area the page used to change/save parameters into configuration tables from database is /admin/configuration.php In 1.3.8a it …
Checkout flow – Order -ZenCart
The most “interesting” part is the step 2 of 3 – Payment Information because here is computed the order value including any discount, here the user can redeem his code and here the user will choose the payment option. We …
Currency and FrendlyURL and product info – ZenCart
Currency selector from ZenCart is perfect as long as you are not using any pretty/frendly URL adon. It may work but sometimes it may not baecause currency selector use GET method. To avoid further headache the beset is to capture …
Session issue and php
We can manipulate sessions via .htaccess (or php.ini) There is another article about how to manage php.ini directives via .htaccess. Anything is in php.ini can be c hanged via php. Here it is a simple way you can change session …
Shipping Module – ZenCart
A) Components To create a shipping module two main files are compolsory: /includes/languages/english/modules/shipping/YOUR_SHIPPING_MODULE.php Usually it contains two lines: title and description For example: define(‘MODULE_SHIPPING_YOUR_SHIPPING_MODULE_TEXT_TITLE’ , ‘YOUR_SHIPPING_MODULE‘); define(‘MODULE_SHIPPING_YOUR_SHIPPING_MODULE_TEXT_DESCRIPTION’ , ‘YOUR_SHIPPING_MODULE‘) ; /includes/modules/shipping/YOUR_SHIPPING_MODULE.php It contains a “class” which will be initialised into …
Add to Cart flow – ZenCart
Table used: TABLE_CUSTOMERS_BASKET – customers_basket Structure: customers_basket_id int(11) No None auto_increment customers_id int(11) No 0 products_id tinytext latin1_swedish_ci No None customers_basket_quantity float No 0 final_price decimal(15,4) No 0.0000 customers_basket_date_added varchar(8) TABLE_CUSTOMERS_BASKET_ATTRIBUTES – customers_basket_attributes Structure: customers_basket_attributes_id int(11) No None auto_increment customers_id …
Plugins and Modules – CMS Made Simple
- Create your module (MyModule). It must be installed using module manager. – Just copy plugins/function.news.php to plugins/function.mymodule.php (do not use exactly the same name, to use small letters wil be ok – Change name of those 3 funtions according …
CSS – Javascript – properties / commands
CSS Property JavaScript Command background background background-attachment backgroundAttachment background-color backgroundColor background-image backgroundImage background-position backgroundPosition background-repeat backgroundRepeat border border border-bottom borderBottom border-bottom-color borderBottomColor border-bottom-style borderBottomStyle border-bottom-width borderBottomWidth border-color borderColor border-left borderLeft border-left-color borderLeftColor border-left-style borderLeftStyle border-left-width borderLeftWidth border-right borderRight border-right-color borderRightColor …
Write/build an Add On – ZenCart
The most complex scenario : zen cart module / add on must have two parts: front end user and admin area 1. Admin area a) To have a new main menu on horizontal bar: – edit and change based on …
Listing in Google Business Directory
Google Business Directory allow you to list your business (and website) and target a specific area based on your address. There are usually 8 – 12 records per page and everybody wish to have his record on the first page. …
Basic SEO Rules
Here there are some rules for SEO ccc: 1. Image 1.1 Image name is recommended to be one of your keywords. Try to not use capital letters and spaces into the name of the image. Only names of files and …




(2 votes, average: 4.50 out of 5)