Wordpress and Webdesign Forum go41 » bbpress discussion

  1. As I think a sitemap.xml is important for any website I got the latest sitemap plugin for bbpress here:
    http://plugins-dev.bbpress.org/browser/bbpress-sitemap-generator/trunk/bbpress_sitemap.php

    I edited this bbpress_sitemap.php on line 16 to look like this:

    $sitemap_file = $_SERVER['DOCUMENT_ROOT']."/sitemap.xml";

    as my bbpress is installed in the root folder of a sub-domain, the sitemap.xml should also be in the root.

    After changing the reference to the location of this file (sitemap.xml) I uploaded bbpress_sitemap.php to the new created my-plugins folder.

    Before enabling it I created an empty file sitemap.xml in the root of the forum and set the rights to 777.

    I enabled the plugin and to trigger the sitemap creation just opened one post and saved it. With FileZilla ftp client I could see that the previously empty file now increased in size - it was successfully created

    Still get problems with empty links to tag pages however...

    Posted 2 years ago #
  2. If the sitemap has empty referrers to some pages it could help on bbpress-0.9.0.4 to edit the bbpress_sitemap.php.

    part of sitemap.xml before editing bbpress_sitemap.php

    <loc>://</loc>
    <lastmod>2009-02-11</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.2</priority>

    and the same after editing:

    <loc>http://forum.go41.de/tags/sidebar</loc>
    <lastmod>2009-02-11</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.2</priority>

    What to change in bbpress_sitemap.php Version: 0.6.1:

    in line 122
    get_tag_link replace with bb_get_tag_link
    in line 138
    get_tag_page_link replace with bb_get_tag_page_link

    this helped to get the correct link to tag pages in the sitemap

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.

Join us! or log in (lost password?):