Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: forum exporter plugin

@ipstenu

Moderator

You could probably do it with RSS. If you’re using wordpress, you can do this (I have it as a sidebar widget).

<?php require_once (ABSPATH . WPINC . '/rss-functions.php');
$today = current_time('mysql', 1);
// insert the feed URL here
$rss = @fetch_rss('http://www.domain.com/forums/rss');
if ( isset($rss->items) && 0 != count($rss->items) ) {
// set the number of items from the feed to display (6)
$rss->items = array_slice($rss->items, 0, 5);
foreach ($rss->items as $item ) {
echo '<h1>';
echo wp_specialchars($item['title']);
echo '</h1>';
echo '<p>';
echo wp_specialchars($item['description']);
echo <a href="';
echo wp_filter_kses($item['link']);
echo '">(Read More)</a>';
echo '</p>';
}
}; ?>

The main (all posts) RSS feed is: http://www.domain.com/forums/rss

All subsequent forums (fori?) are: http://www.domain.com/forums/rss/<whatever&gt;

Like this subforum would be: https://bbpress.org/forums/rss/forum/plugins

This page would be: https://bbpress.org/forums/rss/topic/forum-exporter-plugin

If you don’t have wordpress, look into MagpieRSS

Skip to toolbar