dzieyzone's blog

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
_quicktabs_tabs($quicktabs, $active_tab = 'none') {

More

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 */

More

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

More