Skip to:
Content
Pages
Categories
Search
Top
Bottom

forum exporter plugin

  • @johnnydoe

    Member

    hello,

    im looking for a plugin to get the ability to export all topics from a particular forum (ID) to a html page , so just the topic name plus the excerpt like:

    1. </h1>lorem1 ipsum sit amet dolor </h1>

    <p> bla bla bla bla bla … (read more)<p>


    2. </h1>lorem2 ipsum sit amet dolor </h1>

    <p> bla bla bla bla bla … (read more)<p>


    3. </h1>lorem3 ipsum sit amet dolor </h1>

    <p> bla bla bla bla bla … (read more)<p>

    …etcetera.

    is there such a plugin around?

    thanks a bunch.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @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

    @johnnydoe

    Member

    ill give this a try, thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar