bbPress Plugin Browser »

bbPress Sitemap Generator (0.6.1)

Download

Version: 0.6.1

Last Updated: 2008-8-11

Requires bbPress Version: 1.0 or higher

Compatible up to: trunk

Author Homepage »

Plugin Homepage »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(4)

Your Rating

Author: Rich Boakes & Frédéric Petit


  1. jhonnyvelcro

    Member

    Hello, the download link is broken. Is there other link to download the plugin? Thanks!

    Posted: 1 year ago #
  2. This really needs an update! I can't find an email for the author, so I'm posting my fix to get tags to work:

    function discover_tags() {
              global $bbdb;
              $max_tag_count = $bbdb->get_var("SELECT max(count) FROM $bbdb->term_taxonomy");
              if($max_tag_count < 1)
                   $max_tag_count = 1;
              $tag_query="SELECT t.term_id as tid, t.name as tag, t.slug as slug, x.count as tag_count ".
                   "FROM $bbdb->terms t, $bbdb->term_taxonomy x where t.term_id = x.term_id ".
                   "group by t.term_id ORDER BY x.count DESC;";
    
              $matches = $bbdb->get_results($tag_query);
              $earliest_tag = time();
              if ($matches) {
                   foreach($matches as $tag) {
                        // tag url
                        $t = bb_get_tag($tag->slug);
                        $url=bb_get_tag_link($t);
    
                        // tag modification time
                        $time=($tag->tim > 0 ? strtotime($tag->tim) : time());
                        $nice_time = date("Y-m-d",$time);
    
                        // tag priority
                        $priority=get_priority_for_tag($tag->tid, $tag->tag_count, $max_tag_count);
    
                        // tag update frequency
                        $freq=get_frequency_for_tag($tag->tid, $time, $max_tag_count);
    
                        add_row($url, $nice_time, $freq[freq], $priority, array("FRQT=".$freq[time], "time=".$time, "nt=".$nice_time));
                        $earliest_tag = min($time, $earliest_tag);
                   }
              }
    Posted: 1 year ago #
  3. Thank natmweiss code works.
    one moment, if the links of the form .../bbpres/topic.php?id = 1
    need to file bbpress_sitemap.php
    line 207
    $u2 = $u[scheme] ."://".$u[host].$u[path].urlencode($u[query]).$u[fragment];
    replaced by
    $u2 = $u[scheme] ."://".$u[host].$u[path]."?".$u[query].$u[fragment];

    Posted: 1 year ago #
  4. It Works ;)

    Posted: 1 year ago #
  5. For those that can't get sitemap generator to work with the "nicer permalinks" plugin, I modified the file: bbpress_sitemap.zip.

    Posted: 10 months ago #

RSS feed for this topic

Add a Comment

You must log in to post.