Info
- 3 posts
- 2 voices
- Started 3 years ago by johnnydoe
- Latest reply from johnnydoe
- This topic is not resolved
forum exporter plugin
-
- Posted 3 years ago #
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.
-
- Posted 3 years ago #
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>
Like this subforum would be: http://bbpress.org/forums/rss/forum/plugins
This page would be: http://bbpress.org/forums/rss/topic/forum-exporter-pluginIf you don't have wordpress, look into MagpieRSS
-
- Posted 3 years ago #
ill give this a try, thanks
-
You must log in to post.