|
Removing Artio JoomSEF 2.2.6 Metatags |
|
|
|
Thursday, 30 September 2010 |
|
Untitled
Artio Joom SEF is a lovely tool but it has a couple of naughty
SPAM type problems
that come with the free version. Artio JoomSEF inserts spam into
your meta tags and a back link on
every page.
First stage, the removal of Artio JoomSEF's hijack of Joomla's
Generator
metadata. The following change works only with version 2.2.6 of
Artio JoomSEF
This is achieved by changing the following line of code on 415 of
administrator/components/com_sef/sef.class.php:
Find the following line:
eval(base64_decode('JHNlZkRpckFkbWluID0gJEdMT0JBTFNbJ21vc0NvbmZpZ19hYnNvbHV0ZV9wYXRoJ10uJy9hZG1pbmlzdHJhdG9yL2NvbXBv
Replace with the following:
function xmlParsing($path, $base, $index, $option) {
return;
}
function includeSef($once = false) {
global $mosConfig_absolute_path,
$sefCheckA;
static $first = true;
if( $once && !$first ) return;
if( $once ) {
include_once($mosConfig_absolute_path.'/components/com_sef/sef_ext.php');
} else {
include($mosConfig_absolute_path.'/components/com_sef/sef_ext.php');
}
$first = false;
}
When this change is implemented the meta tag hijack will be
removed.
Finally once you have a good working version of Artio JoomSEF
that does exactly what you want
then DO NOT UPGRADE. There is no need to upgrade unless you have
a specific bug/issue you are
addressing. If you upgrade this hack will be overwritten and the
spam will return.
Stay with a version of JoomSEF that works for you!
|