Rate this article

Block Search Engine Spiders from following links in MX Calendar

Rating: 5.0/5 (3 votes cast)

By allowing Google and other search engine spiders to follow the links in your calendar might lead to problems with huge numbers of links getting indexed.

There is no reason to allow spiders to follow the links to the next and previous months.


Simply add the rel="nofollow" tag in the relevant places in the following files.

/includes/cal/

  • CAL_ViewDay.class.php
  • CAL_ViewMonth.class.php
  • CAL_ViewNuggetHtml.class.php
  • CAL_ViewWeek.class.php
  • CAL_ViewYear.class.php
  • CAL_mwCell.inc.php

Example:

Change

<a href="<?php echo CAL_XHTML_Url($this->data['nav']['prev_link']);?>" title="<?php echo CAL_getResource('PREV_CALENDAR_TITLE');?>"><?php echo CAL_getResource('PREV_CALENDAR');?></a>

To:

<a href="<?php echo CAL_XHTML_Url($this->data['nav']['prev_link']);?>" rel="nofollow" title="<?php echo CAL_getResource('PREV_CALENDAR_TITLE');?>"><?php echo CAL_getResource('PREV_CALENDAR');?></a>

Adobe

XMS Systems
ionCube Online PHP Encoder
Free PositiveSSL and WhoisGuard with Every Domain Purchase

Although we try to ensure all the articles submitted are valid it is your responsibility to make sure you have backups before you use these suggestions on your pc or websites.
We do not take any responsibility for any data-loss, loss in functionality or any problem that might arise in what-ever way or form by making use of the information on this site.

"Friends of Interakt" has no connection to the Adobe Interakt Company