Update KRYPT08132008A: Post-Update Manual Changes
The following manual changes are required for this update:
addEvent(window,'load',parseStylesheets,false);With:
var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/; if (IE6) {addEvent(window,'load',parseStylesheets,false);}Then choose to update 'skinfunc.php'. In that file, replace:
$x['metatitle'] = $this->xhtml_encode($this->globals('khxc_display.metatitle')); $x['metakeywords'] = $this->xhtml_encode($this->globals('khxc_display.metakeywords')); $x['metadesc'] = $this->xhtml_encode($this->globals('khxc_display.metadesc')); $x['disp_title'] = $this->xhtml_encode($x['ns_name']); $x['disp_title'] = preg_replace('/ \- Process$/','',$x['disp_title']); // +-- // | Strip XHTML tags from the meta information. // +-- $x['metatitle'] = strip_tags($this->xhtml_translate($x['metatitle'],'DECODE')); $x['metakeywords'] = strip_tags($this->xhtml_translate($x['metakeywords'],'DECODE')); $x['metadesc'] = strip_tags($this->xhtml_translate($x['metadesc'],'DECODE'));With:
$x['metatitle'] = $this->globals('khxc_display.metatitle'); $x['metakeywords'] = $this->globals('khxc_display.metakeywords'); $x['metadesc'] = $this->globals('khxc_display.metadesc'); $x['disp_title'] = $this->xhtml_encode($x['ns_name']); $x['disp_title'] = preg_replace('/ \- Process$/','',$x['disp_title']); // +-- // | Strip XHTML tags from the meta information. // +-- $x['metatitle'] = $this->xhtml_encode(strip_tags($x['metatitle'])); $x['metakeywords'] = $this->xhtml_encode(strip_tags($x['metakeywords'])); $x['metadesc'] = $this->xhtml_encode(strip_tags($x['metadesc']));And add the following function before the class closure:
// +------------------------------------------------------------------+ // | Function: robotstag | // +------------------------------------------------------------------+ function robotstag () { // +-- // | This function prints the robots tag. Follow/Index tags are // | printed only when pages were not requested with SID in the URL. // +-- $eol = $this->globals('khxc.eol'); $cgi_sid = $this->globals('khxc_cgi.sid'); if (!(empty($cgi_sid))) { print '' . $eol; } else { print '' . $eol; } // End of if statement. // +-- // | Return true. // +-- return 1; } // End of function.Then choose to update 'skin.php'. In that file, replace:
<meta name="robots" content="index,follow" />With:
<?php /* PHP FUNCTION */ /* REQUIRED: Prints the robots tag */ $skinfunc->robotstag(); ?>
if ($desc_has_tags) {