| Re: xsitemap alternative theme |
| by aerograf on 2017/5/5 15:52:40 Thank you. I also made this decision. I would also add something that I mentioned earlier: $ Xml_url-> appendChild ($ xml-> createComment (htmlentities (ucwords ($ mod ['name'])). "")); You have line 191 Here's what I got. Https://www.shmel.org/sitemap/ The truth is not done yet. Add-- Here's how I still work https://www.shmel.org/xml_google.php But not everything is done, because You need to bind the model. |
| Re: xsitemap alternative theme |
| by zyspec on 2017/5/5 15:45:33 I just issued a pull request to fix the sub-category problem with the XML rendering. You can see the changes at https://github.com/XoopsModules25x/xsitemap/pull/7/commits/f54007c2d7730d89301436b6101e11ead630dbc3 The changes that effect the sub-cateogory issue are contained in the ./include/function.php file. The changes in the xoops_version.php file aren't required, I just updated the date so we could tell that the BETA 1 had been updated. |
| Re: xsitemap alternative theme |
| by zyspec on 2017/5/5 14:49:41 EDIT: I think I see the problem with sub-categories... the XML isn't being formed correctly when there are subcategories. |
| Re: xsitemap alternative theme |
| by aerograf on 2017/5/4 13:11:29 It is necessary to understand still with correct generation of a file xsitemap.xml Search engines react poorly to reading subcategories from a file. Issue a warning. |
| Re: xsitemap alternative theme |
| by aerograf on 2017/5/4 13:06:40 Quote:
Revealed during the proceedings: Include / functions.php to bring line 205 to this form: le="color: #000000"><?php $ 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: le="color: #000000"><?php 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'; }
|