7
Quote:
zyspec wrote:
@aerograf / @Bleekk,
There was a new version of xsitemap uploaded today (v1.54 Beta) that you might want to look at before you modify anything other than templates. There were quite a few changes/improvements so it would be better to start modifying that version so we don't have to merge your new changes from an older version.
Revealed during the proceedings:
Include / functions.php to bring line 205 to this form:
$ Xml_url-> appendChild ($ xml-> createComment (htmlentities (ucwords ($ mod ['name'])). ""));
Fixes the problem of creating an xml file if there is a category name -
-----
If you use the xml_google.php file in the root of the site, you should add at the beginning:
If (! Defined ('SITEMAP_ROOT_CONTROLLER_LOADED'))) {
If (! File_exists (dirname (__ FILE __). '/ Modules / xsitemap / xml_google.php')) {
Die ("Do not call this file directly");
}
If (! Empty ($ _SERVER ['REQUEST_URI']))) {
$ _SERVER ['REQUEST_URI'] = str_replace ('xml_google.php', 'modules / xsitemap / xml_google.php', $ _SERVER ['REQUEST_URI']);
} Else {
$ _SERVER ['REQUEST_URI'] = '/modules/xsitemap/xml_google.php';
}
$ _SERVER ['PHP_SELF'] = $ _SERVER ['REQUEST_URI'];
Define ('SITEMAP_ROOT_CONTROLLER_LOADED', 1);
$ Real_xml_google_path = dirname (__ FILE __). '/ Modules / xsitemap / xml_google.php';
Chdir ('./modules/xsitemap/');
Require $ real_xml_google_path;
Exit;
} Else {
Require_once __DIR__. '../../mainfile.php';
}