[3.2][3.3] Sitemap

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Get Involved
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
v12mike
Registered User
Posts: 594
Joined: Thu Jul 09, 2015 5:03 pm

[3.2][3.3] Sitemap

Post by v12mike »

Extension Name: Sitemap
Author: v12mike

Extension Description: Creates an xml sitemap for a phpBB forum. This allow web indexing engines (Google, Bing etc.) to crawl your forum more efficiently and find new posts more quickly, as they only need to check timestamps in the sitemap rather than crawling multiple pages of the site. The links to forum topic pages are canonical (no unnecessary parameters).

The sitemap is accessed at [YOUR_FORUM_ROOT]/app.php/sitemap.xml or (if mod_rewite is enabled} at [YOUR_FORUM_ROOT]/sitemap.xml

This is a fork of the abandoned XML sitemap extension viewtopic.php?t=2344456. The extension now has a different author and the structure of the generated file is completely different to the abandoned extension so I am treating it as a new extension.

Extension Version: 0.3.0

Requirements:

Features: Feature List. Use the
    • Generates an xml sitemap compatible with google and other web indexing bots
    • Each page is indexed exactly once, reducing the number of non-canonical links seen by the web indexing bot.
    • No practical limit on the number of topics and posts
    • Easy to install and configure
    Screenshots: There is no visibility for normal users, see the demo link.
    Demo URL: https://bxclub.co.uk/forum/sitemap.xml
    Demo Username:
    Demo Password:
    Extension Download: https://github.com/v12mike/sitemap/arch ... v0.3.0.zip
    Git Repo:https://github.com/v12mike/sitemap.git
    Last edited by v12mike on Fri Jan 31, 2025 12:06 am, edited 3 times in total.
    User avatar
    ssl
    Registered User
    Posts: 2083
    Joined: Sat Feb 08, 2020 2:15 pm
    Location: Le Lude, Pays de la Loire - France
    Name: Fred Rimbert

    Re: [3.2][3.3] Sitemap

    Post by ssl »

    I have this error when I go to ./sitemap.xml
    Error loading stylesheet: Failed to parse an XSLT stylesheet.
    Sorry for my English ... I do my best! :anger_right:

    :point_right_tone3: phpBB: 3.3.14 | PHP: 8.3.15
    :point_right_tone4: [Kill spam on phpBB] - [Some French translation of extensions]
    "Mistress, Mistress someone is bothering me in pm"
    v12mike
    Registered User
    Posts: 594
    Joined: Thu Jul 09, 2015 5:03 pm

    Re: [3.2][3.3] Sitemap

    Post by v12mike »

    ssl wrote: Tue Sep 03, 2024 2:04 pm I have this error when I go to ./sitemap.xml
    Error loading stylesheet: Failed to parse an XSLT stylesheet.
    Sorry, I had accidentally deleted style.xsl from the git repo while tidying up. I have reinstated it, so it should be OK now,
    User avatar
    SpIdErPiGgY
    Registered User
    Posts: 330
    Joined: Sun May 02, 2021 2:11 pm
    Location: Erpe-Mere, Aalst, BE
    Name: Andy Dm

    Re: [3.2][3.3] Sitemap

    Post by SpIdErPiGgY »

    Image
    User avatar
    ssl
    Registered User
    Posts: 2083
    Joined: Sat Feb 08, 2020 2:15 pm
    Location: Le Lude, Pays de la Loire - France
    Name: Fred Rimbert

    Re: [3.2][3.3] Sitemap

    Post by ssl »

    v12mike wrote: Tue Sep 03, 2024 4:36 pm Sorry, I had accidentally deleted style.xsl from the git repo while tidying up. I have reinstated it, so it should be OK now,
    No, it's not good at all. In the config folder the 2 files are not good, once corrected the extension works.
    Update your GitHub repository
    Sorry for my English ... I do my best! :anger_right:

    :point_right_tone3: phpBB: 3.3.14 | PHP: 8.3.15
    :point_right_tone4: [Kill spam on phpBB] - [Some French translation of extensions]
    "Mistress, Mistress someone is bothering me in pm"
    v12mike
    Registered User
    Posts: 594
    Joined: Thu Jul 09, 2015 5:03 pm

    Re: [3.2][3.3] Sitemap

    Post by v12mike »

    ssl wrote: Tue Sep 03, 2024 6:48 pm
    v12mike wrote: Tue Sep 03, 2024 4:36 pm Sorry, I had accidentally deleted style.xsl from the git repo while tidying up. I have reinstated it, so it should be OK now,
    No, it's not good at all. In the config folder the 2 files are not good, once corrected the extension works.
    Update your GitHub repository
    I made a proper mess of that... I have now uploaded (and tested) a working version.
    ralphmaif
    Registered User
    Posts: 10
    Joined: Sat Feb 24, 2007 7:04 pm

    Re: [3.2][3.3] Sitemap

    Post by ralphmaif »

    v12mike wrote: Wed Sep 04, 2024 1:15 pm
    ssl wrote: Tue Sep 03, 2024 6:48 pm
    No, it's not good at all. In the config folder the 2 files are not good, once corrected the extension works.
    Update your GitHub repository
    I made a proper mess of that... I have now uploaded (and tested) a working version.

    Trying to download from the link, but looks like the link is broken. Is this extension available elsewhere or is there a replacement?
    v12mike
    Registered User
    Posts: 594
    Joined: Thu Jul 09, 2015 5:03 pm

    Re: [3.2][3.3] Sitemap

    Post by v12mike »

    OK, I am onto it. I should be able to get the repo updated tomorrow.
    ralphmaif
    Registered User
    Posts: 10
    Joined: Sat Feb 24, 2007 7:04 pm

    Re: [3.2][3.3] Sitemap

    Post by ralphmaif »

    v12mike wrote: Thu Jan 30, 2025 7:24 am OK, I am onto it. I should be able to get the repo updated tomorrow.
    Thank you, Mike!
    v12mike
    Registered User
    Posts: 594
    Joined: Thu Jul 09, 2015 5:03 pm

    Re: [3.2][3.3] Sitemap

    Post by v12mike »

    I am not sure what the problem was that you saw.

    I downloaded (without changes) the existing master branch from github and it is identical to what I have been running on my forums for the past 4 years.

    I have now tagged it as v0.3.0 which is available at https://github.com/v12mike/sitemap/arch ... v0.3.0.zip unzip the contents into ext/v12mike/sitemap and it should work.

    If it doesn't, can you give more details of the issue that you are seeing.
    ralphmaif
    Registered User
    Posts: 10
    Joined: Sat Feb 24, 2007 7:04 pm

    Re: [3.2][3.3] Sitemap

    Post by ralphmaif »

    thanks, i've now successfully downloaded the zip file and extracted. however, this looks like an update to an existing install, so i should probably back up and convey i've never had the original sitemap extension installed and only recently (this week) looked for it. my googling for a PHPBB sitemap generator eventually led me to this thread after some dead ends. sorry if that wasn't clear. :(

    is there a link to the full extension?

    the issue i reported in my initial post was the download button on the previous link returns a 502 that tas2580.net is unable to handle the request.
    v12mike
    Registered User
    Posts: 594
    Joined: Thu Jul 09, 2015 5:03 pm

    Re: [3.2][3.3] Sitemap

    Post by v12mike »

    That zip file contains the complete extension (it is not very big). Just copy the files and enable the extension.

    There is no ACP configuration, there are a few configurables at the top of controller/sitemap.php, but I would advise against fiddling with them unless you know what they do.
    ralphmaif
    Registered User
    Posts: 10
    Joined: Sat Feb 24, 2007 7:04 pm

    Re: [3.2][3.3] Sitemap

    Post by ralphmaif »

    aye aye aye... my bad.

    sorted it out. i was putting the numbered folder (sitemap-0.3.0) into the v12mike/sitemap/ director, not the contents beneath it. once i made that change, we're golden on the activation.

    i'm still getting a "couldn't fetch" error when submitting the XML to Google Search Console which is odd since the permissions and formatting all look correct to me, but that's all another story.
    v12mike
    Registered User
    Posts: 594
    Joined: Thu Jul 09, 2015 5:03 pm

    Re: [3.2][3.3] Sitemap

    Post by v12mike »

    I suggest that you do a test by setting a browser (temporarily) to use the "agent-string" of "Googlebot" so that you can see the same version sitemap as Google. This is necessary because the sitemap extension shows the posts according to the permissions associated with the browser cookie, with for bots is derived from the agent string.

    If the sitemap page does not load at all (http error), then maybe the page address is wrong, or something is causing the redirect not to work. If the sitemap page loads, but is empty, then look for a problem with the permissions given to bot user group.

    Return to “Extensions in Development”