adding nofollow attribute on drupal quicktabs
One of the main problem using a quicktab is that it duplicates your content and search engine will penalize you from that. So imagine if you use quicktabs most of your site, you won't notice that you are now on high risk being penalized. To make sure that the quicktabs links will not be followed by the robots is to add a rel=nofollow to the anchor tag and here is how you do it:
On your template.php file for your theme add the following code:
One of the main problem using a quicktab is that it duplicates your content and search engine will penalize you from that. So imagine if you use quicktabs most of your site, you won't notice that you are now on high risk being penalized. To make sure that the quicktabs links will not be followed by the robots is to add a rel=nofollow to the anchor tag and here is how you do it:
On your template.php file for your theme add the following code:
{syntaxhighlighter SYNTAXHIGHLIGHTER-OPTIONS}
function
Cookie-Free Subdomain using htacces on drupal multisite
Using drupal multisite setup, and by using the parallel module, I was able to serve images, javascript (although not recommended because of cross domain limitation) and css under my subdomain. To remove cookie on the said file types, I used the following lines in my .htaccess file:
<IfModule mod_headers.c> <FilesMatch "\\.(js|css|jpg|png|jpeg|gif)$"> RequestHeader unset Cookie Header unset Set-Cookie Header set Cache-Control "max-age=86400" </FilesMatch> </IfModule>
I ran my yslow and I think it works.
Publish Ubercart Product to Google Base using Views
To setup a google base feed xml using views, you first need to install the following modules:
- Views
- Ubercart
- Views Bonus
- CCK
First, import the following code to your views.
$view = new view;
$view->name = 'google_products';
$view->description = 'Google Merchant Feeds';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
Using Tabs on Content Page with CCK fields the easiest way
I've been struggling on adding tabs in showing my CCK fields. Here's my easiest and quickest guide of showing your CCK fields in a TAB
Caliper - AdobeAir
One of the most important tool a web developer must have is to measure the size of the page. Like engineers, web pages should also detailed with regards to the size from a PSD file to a xHTML pages.
The Calilper floats above other applications on screen and can be used to measure anything on your monitor.
Possible Usages
* Web Designers : Layout Measurements.
* Graphic Designers : Photo and Illustration Measurements.
* CAD Engineers : Measuring Architectural Drawings.
Features
* Draggable
* Rotates through 360°
* Pixel Perfect Measurements.
CMS Themer
Just send me your design and I will send you back the theme for your CMS website.
CMS that I support are Drupal, Wordpress and Joomla.
Drupal Guide for Beginners, Intermediate, and Expert
Drupal is now becoming one of the most favorite Content Management System for PHP Developers because of its flexibility.

