<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>bbPress Support Forums Topic: Anyone have Prev/Next Thread / Forum plugin?</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress Support Forums Topic: Anyone have Prev/Next Thread / Forum plugin?</description>
<language>en</language>
<pubDate>Fri, 09 Jan 2009 23:34:35 +0000</pubDate>

<item>
<title>chrishajer on "Anyone have Prev/Next Thread / Forum plugin?"</title>
<link>http://bbpress.org/forums/topic/anyone-have-prevnext-thread-forum-plugin#post-16721</link>
<pubDate>Thu, 12 Jun 2008 13:42:55 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">16721@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;A fatal error would normally be a PHP fatal error.  Do you have access to PHP logs to see what the trouble might be?  If not, you can set up some custom logging.&#60;/p&#62;
&#60;p&#62;And, are you running WordPress as well?  Which version, if so.
&#60;/p&#62;</description>
</item>
<item>
<title>kehlers on "Anyone have Prev/Next Thread / Forum plugin?"</title>
<link>http://bbpress.org/forums/topic/anyone-have-prevnext-thread-forum-plugin#post-16713</link>
<pubDate>Wed, 11 Jun 2008 22:27:35 +0000</pubDate>
<dc:creator>kehlers</dc:creator>
<guid isPermaLink="false">16713@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Does anyone know why I would get Plugin could not be activated; it produced a Fatal Error when trying activate this as a plugin? I'm running bbPress 0.8.3...
&#60;/p&#62;</description>
</item>
<item>
<title>nolageek on "Anyone have Prev/Next Thread / Forum plugin?"</title>
<link>http://bbpress.org/forums/topic/anyone-have-prevnext-thread-forum-plugin#post-7014</link>
<pubDate>Thu, 26 Apr 2007 14:50:37 +0000</pubDate>
<dc:creator>nolageek</dc:creator>
<guid isPermaLink="false">7014@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Excellent...  Had a couple typos in there that I fixed, will post code when I'm done. &#60;/p&#62;
&#60;p&#62;I'm actually trying to make a theme based on old dial-up BBSs.  Fun, fun, fun. :)  The menu is the hardest part, trying to get different options to show up depending on what page you're on (forum/topic/etc...)&#60;/p&#62;
&#60;p&#62;Here's what I have so far:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://fearandloathingbbs.com/forum/&#34; rel=&#34;nofollow&#34;&#62;http://fearandloathingbbs.com/forum/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Not quite ready for prime time .
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Anyone have Prev/Next Thread / Forum plugin?"</title>
<link>http://bbpress.org/forums/topic/anyone-have-prevnext-thread-forum-plugin#post-6993</link>
<pubDate>Wed, 25 Apr 2007 16:10:55 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">6993@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Ahh, that'll teach me to remember the difference between get_bbpress_thing() and bbpress_thing(). &#38;gt;_&#38;lt; Sorry.&#60;/p&#62;
&#60;p&#62;Replace the code in there now with this.&#60;/p&#62;
&#60;p&#62;Set the last parameter to true if you want it to return an array of information. To use this you would use code like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php $mytopicnavarray = feltopicnav( &#38;#39;&#38;#39;, &#38;#39;&#38;#39;, &#38;#39; &#38;#39;, true, true );
echo &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39; . $mytopicnavarray[&#38;#39;next&#38;#39;][&#38;#39;link&#38;#39;] . &#38;#39;&#38;quot;&#38;gt;Click here to go to the next topic!&#38;lt;/a&#38;gt;&#38;#39;; ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Use &#60;code&#62;&#38;lt;?php felforumnav(); ?&#38;gt;&#60;/code&#62; to get the forum navigation in a similar way to the topic navigation. It's just a simple wrapper for what feltopicnav does, but it's a bit easier to see what it's supposed to do. Check the code for possible parameters.&#60;/p&#62;
&#60;p&#62;I won't submit this as a proper plugin because the code is awkward. Maybe sometime I'll recode it or someone else will. :)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
Plugin Name: Topic Navs;
Plugin URI:
Description: Put &#38;lt;?php feltopicnav(); ?&#38;gt; in a topic template to show links to the previous and next topics, and put in &#38;lt;?php felforumnav(); ?&#38;gt; to get basic next/previous forum navigation. More parameters such as $infoonly available.
Author: fel64
Version: 0.7
Author URI: &#60;a href=&#34;http://www.loinhead.net/&#34; rel=&#34;nofollow&#34;&#62;http://www.loinhead.net/&#60;/a&#62;
*/

function feltopicnav( $nexttext = &#38;#39;&#38;#39;, $prevtext = &#38;#39;&#38;#39;, $betweentext = &#38;#39; &#38;#39;, $lastpost = true, $infoonly = false, $forumnav = false; )
{
	global $topic_id;
	$nexttopic = $topic_id + 1;
	$prevtopic = $topic_id - 1;
	global $forum_id;
	$nextforum = $forum_id + 1;
	$prevforum = $forum_id - 1;
	if( !$nexttext )
		if( !$forumnav ) {
			$nexttext = get_topic_title( $nexttopic );
		} else {
			$nexttext = get_forum_name( $nextforum );
		}
	if( !$prevtext )
		if( !$forumnav ) {
			$prevtext = get_topic_title( $prevtopic );
		} else {
			$prevtext = get_forum_name( $prevforum );
		}
		$prevtext = get_topic_title( $prevtopic );
	if( $lastpost ) {
		$nextlink = get_topic_last_post_link( $nexttopic );
		$prevlink = get_topic_last_post_link( $prevtopic );
	} else {
		if( !$forumnav ) {
			$nextlink = get_topic_link( $nexttopic );
			$prevlink = get_topic_link( $prevtopic );
		} else {
			$nextlink = get_forum_link( $nextforum );
			$prevlink = get_forum_link( $prevforum );
		}
	}
	if( $infoonly )	{
		$topicnavinfo[&#38;#39;next&#38;#39;][&#38;#39;title&#38;#39;] = $nexttext;
		$topicnavinfo[&#38;#39;next&#38;#39;][&#38;#39;link&#38;#39;] = $nextlink;
		$topicnavinfo[&#38;#39;prev&#38;#39;][&#38;#39;title&#38;#39;] = $prevtext;
		$topicnavinfo[&#38;#39;prev&#38;#39;][&#38;#39;link&#38;#39;] = $prevlink;
		return $topicnavinfo;
	} else {
		echo &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39; . $prevlink . &#38;#39;&#38;quot;&#38;gt; &#38;amp;laquo; &#38;#39; . $prevtext . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39; . $betweentext . &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39; . $nextlink . &#38;#39;&#38;quot;&#38;gt;&#38;#39; . $nexttext . &#38;#39; &#38;amp;raquo; &#38;lt;/a&#38;gt;&#38;#39;;
	}
}

function felforumnav( $nexttext = &#38;#39;&#38;#39;, $prevtext = &#38;#39;&#38;#39;, $betweentext = &#38;#39; &#38;#39;, $infoonly = false )
{
	$fni = feltopicnav( $nexttext, $prevtext, $betweentext, false, true, true );
	if( $infoonly ) {
		return $fni;
	} else
		echo &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39; . $fni[&#38;#39;prev&#38;#39;][&#38;#39;link&#38;#39;] . &#38;#39;&#38;quot;&#38;gt; &#38;amp;laquo; &#38;#39; . $fni[&#38;#39;prev&#38;#39;][&#38;#39;title&#38;#39;] . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39; . $betweentext . &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39; . $fni[&#38;#39;next&#38;#39;][&#38;#39;link&#38;#39;] . &#38;#39;&#38;quot;&#38;gt; &#38;amp;laquo; &#38;#39; . $fni[&#38;#39;next&#38;#39;][&#38;#39;title&#38;#39;] . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;
	}
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>nolageek on "Anyone have Prev/Next Thread / Forum plugin?"</title>
<link>http://bbpress.org/forums/topic/anyone-have-prevnext-thread-forum-plugin#post-6989</link>
<pubDate>Wed, 25 Apr 2007 12:34:05 +0000</pubDate>
<dc:creator>nolageek</dc:creator>
<guid isPermaLink="false">6989@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Doesn't seem to work.  I just get the URLS without any linkage.&#60;/p&#62;
&#60;p&#62;Could you split this up to just spit out the URLS? like a nexttopic() and prevtopic() ?&#60;/p&#62;
&#60;p&#62;that way we could format it how we want (and where we want.)&#60;/p&#62;
&#60;p&#62;example: &#60;a href=&#34;http://blognola.org/fearandloathingbbs/topic.php?id=1&#38;#38;page&#38;#38;replies=1&#34; rel=&#34;nofollow&#34;&#62;http://blognola.org/fearandloathingbbs/topic.php?id=1&#38;#38;page&#38;#38;replies=1&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>nolageek on "Anyone have Prev/Next Thread / Forum plugin?"</title>
<link>http://bbpress.org/forums/topic/anyone-have-prevnext-thread-forum-plugin#post-6988</link>
<pubDate>Wed, 25 Apr 2007 12:27:31 +0000</pubDate>
<dc:creator>nolageek</dc:creator>
<guid isPermaLink="false">6988@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;you rule.    :)&#60;/p&#62;
&#60;p&#62;how about prev / next  forums? :) :)&#60;/p&#62;
&#60;p&#62;I plan on doing something kinda neat with this.  you're definitely getting thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Anyone have Prev/Next Thread / Forum plugin?"</title>
<link>http://bbpress.org/forums/topic/anyone-have-prevnext-thread-forum-plugin#post-6974</link>
<pubDate>Tue, 24 Apr 2007 18:18:04 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">6974@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;There is now!&#60;/p&#62;
&#60;p&#62;Save this in a file, call it &#60;code&#62;sumting.php&#60;/code&#62;, and drop it into your &#60;code&#62;my-plugins&#60;/code&#62; folder. Then put &#60;code&#62;&#38;lt;?php feltopicnav(); ?&#38;gt;&#60;/code&#62; somewhere in a topic template. Not tested, so please tell me if it works. :)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
Plugin Name: Topic Navs;
Plugin URI:
Description: Put &#38;lt;?php feltopicnav(); ?&#38;gt; in a topic template to show links to the previous and next topics. Optional parameters are $nexttext, $prevtext, $betweentext and $lastpost.
Author: fel64
Version: 0.7
Author URI: &#60;a href=&#34;http://www.loinhead.net/&#34; rel=&#34;nofollow&#34;&#62;http://www.loinhead.net/&#60;/a&#62;
*/

function feltopicnav( $nexttext = &#38;#39;&#38;#39;, $prevtext = &#38;#39;&#38;#39;, $betweentext = &#38;#39; &#38;#39;, $lastpost = true )
{
	global $topic_id;
	$nexttopic = $topic_id + 1;
	$prevtopic = $topic_id - 1;
	if( !$nexttext )
		$nexttext = topic_title( $nexttopic );
	if( !$prevtext )
		$prevtext = topic_title( $prevtopic );
	if( $lastpost ) {
		$nextlink = topic_last_post_link( $nexttopic );
		$prevlink = topic_last_post_link( $prevtopic );
	} else {
		$nextlink = topic_link( $nexttopic );
		$prevlink = topic_link( $prevtopic );
	}
	echo &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39; . $prevlink . &#38;#39;&#38;quot;&#38;gt;&#38;#39; . $prevtext . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39; . $betweentext . &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39; . $nextlink . &#38;#39;&#38;quot;&#38;gt;&#38;#39; . $nexttext . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>nolageek on "Anyone have Prev/Next Thread / Forum plugin?"</title>
<link>http://bbpress.org/forums/topic/anyone-have-prevnext-thread-forum-plugin#post-6968</link>
<pubDate>Tue, 24 Apr 2007 11:58:09 +0000</pubDate>
<dc:creator>nolageek</dc:creator>
<guid isPermaLink="false">6968@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Is there a plugin that will let you navigate by previous/next thread (when reading a thread) and/or previous/next forum (when looking at a forum)
&#60;/p&#62;</description>
</item>

</channel>
</rss>
