1
aerograf
xsitemap alternative theme
  • 2017/5/3 19:29

  • aerograf

  • Quite a regular

  • Posts: 214

  • Since: 2017/1/7 1


I want to share a topic for xsitemap. Maybe someone will like it:
Demo (temporary):http://xoops.shmel.org/modules/xsitemap/
Download:http://xoops.shmel.org/dw/xsitemap_theme.rar

2
Bleekk
Re: xsitemap alternative theme
  • 2017/5/3 19:43

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


Have you changed the module or only the templates of the Module?

3
aerograf
Re: xsitemap alternative theme
  • 2017/5/3 20:16

  • aerograf

  • Quite a regular

  • Posts: 214

  • Since: 2017/1/7 1


So far, only a template. But still in front.

4
Bleekk
Re: xsitemap alternative theme
  • 2017/5/3 20:48

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


Thank you!

5
zyspec
Re: xsitemap alternative theme
  • 2017/5/3 22:34

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


@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.

6
aerograf
Re: xsitemap alternative theme
  • 2017/5/4 5:58

  • aerograf

  • Quite a regular

  • Posts: 214

  • Since: 2017/1/7 1


Thank you. I'll take advice.

7
aerograf
Re: xsitemap alternative theme
  • 2017/5/4 13:06

  • aerograf

  • Quite a regular

  • Posts: 214

  • Since: 2017/1/7 1


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';
}

8
aerograf
Re: xsitemap alternative theme
  • 2017/5/4 13:11

  • aerograf

  • Quite a regular

  • Posts: 214

  • Since: 2017/1/7 1


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.

9
zyspec
Re: xsitemap alternative theme
  • 2017/5/5 14:49

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


EDIT: Can I ask if you've tried turning off subcategories in the module's Preferences to see how the search engines react?

I think I see the problem with sub-categories... the XML isn't being formed correctly when there are subcategories.

10
zyspec
Re: xsitemap alternative theme
  • 2017/5/5 15:45

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


I just issued a pull request to fix the sub-category problem with the XML rendering. You can see the changes athttps://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.

Login

Who's Online

164 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 164


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits