<?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 Tag: latest discussion</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress Support Forums Tag: latest discussion</description>
<language>en</language>
<pubDate>Fri, 09 Jan 2009 04:58:26 +0000</pubDate>

<item>
<title>_ck_ on "Latest Discussion - More Control"</title>
<link>http://bbpress.org/forums/topic/latest-discussion-more-control#post-22600</link>
<pubDate>Mon, 05 Jan 2009 03:29:50 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">22600@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Do not use the Private Forums plugin, it has not been updated in awhile and has bugs.&#60;br /&#62;
Use my Hidden Forums plugin instead. The code above is not sufficient in itself.
&#60;/p&#62;</description>
</item>
<item>
<title>walkerevans on "Latest Discussion - More Control"</title>
<link>http://bbpress.org/forums/topic/latest-discussion-more-control#post-22597</link>
<pubDate>Mon, 05 Jan 2009 02:28:39 +0000</pubDate>
<dc:creator>walkerevans</dc:creator>
<guid isPermaLink="false">22597@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I was looking to do &#60;a href=&#34;http://trac.bbpress.org/ticket/3&#34;&#62;#3&#60;/a&#62; as well. This solution works like a champ. Thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>Detective on "Latest Discussion - More Control"</title>
<link>http://bbpress.org/forums/topic/latest-discussion-more-control#post-16648</link>
<pubDate>Sat, 07 Jun 2008 23:30:33 +0000</pubDate>
<dc:creator>Detective</dc:creator>
<guid isPermaLink="false">16648@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;For 3, from the Genealogías theme:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function gs_topic_forum_link() {
	global $topic;
	if ($topic) {
		echo &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39; . get_forum_link($topic-&#38;gt;forum_id) . &#38;#39;&#38;quot;&#38;gt;&#38;#39; . get_forum_name($topic-&#38;gt;forum_id) . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;

	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;For the private forums, i do the following (considering only one private forum, having id 22):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;get_posts_where&#38;#39;, &#38;#39;ryuuko_staff_where_posts&#38;#39;);

function ryuuko_staff_where_posts($where) {
	if (!bb_is_user_logged_in() &#124;&#124; !bb_current_user_can(&#38;#39;moderate&#38;#39;)) {
		$where .= &#38;quot; AND p.forum_id &#38;lt;&#38;gt; &#38;#39;22&#38;#39; &#38;quot;;
	}
	return $where;
}

add_filter(&#38;#39;get_topics_where&#38;#39;, &#38;#39;ryuuko_staff_where_topics&#38;#39;);
function ryuuko_staff_where_topics($where) {
	if (!bb_is_user_logged_in() &#124;&#124; !bb_current_user_can(&#38;#39;moderate&#38;#39;)) {
		$where .= &#38;quot; AND t.forum_id &#38;lt;&#38;gt; &#38;#39;22&#38;#39; &#38;quot;;
        }
	return $where;
}

add_filter(&#38;#39;get_forums&#38;#39;, &#38;#39;ryuuko_staff_forums&#38;#39;);
function ryuuko_staff_forums($forums) {
	if (!bb_is_user_logged_in() &#124;&#124; !bb_current_user_can(&#38;#39;moderate&#38;#39;)) {
			$forum_key = -1;
			foreach ($forums as $key =&#38;gt; $forum)
				if (intval($forum-&#38;gt;forum_id) == 22) {
					$forum_key = $key;
					break;
				}
			unset($forums[$key]);
	}
	return $forums;
}

add_action(&#38;#39;bb_forum.php_pre_db&#38;#39;, &#38;#39;ryuuko_forum_redirect&#38;#39;);
function ryuuko_forum_redirect($forum_id) {
	if (!bb_is_user_logged_in() &#124;&#124; !bb_current_user_can(&#38;#39;moderate&#38;#39;)) {
		if ($forum_id == 22)
			bb_die(&#38;quot;You can&#38;#39;t see this!&#38;quot;);
	}
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>Sachrilege on "Latest Discussion - More Control"</title>
<link>http://bbpress.org/forums/topic/latest-discussion-more-control#post-16647</link>
<pubDate>Sat, 07 Jun 2008 23:05:58 +0000</pubDate>
<dc:creator>Sachrilege</dc:creator>
<guid isPermaLink="false">16647@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hey everyone,&#60;br /&#62;
I'm trying to do 3 things.&#60;/p&#62;
&#60;p&#62;1. I want posts inactive longer then a set time to not be propagated to the Latest Discussions on the forum Index.&#60;/p&#62;
&#60;p&#62;2. I want hidden private forums to not show up on the Latest Discussion list unless they would normally be allowed to see it.&#60;/p&#62;
&#60;p&#62;3. I want the forum name to show up in another column in the Latest Discussion list.&#60;/p&#62;
&#60;p&#62;I'm using the Private Forums plug-in, and Latest Discussion is only visible on my site from bbpress/index. &#60;/p&#62;
&#60;p&#62;For 1. I found a plug-in but it's no longer supported and I couldn't clean up the Syntax error myself.&#60;/p&#62;
&#60;p&#62;For 2 I can find nothing.&#60;/p&#62;
&#60;p&#62;For 3 using another forum post I've already edited my templates to include the extra column and I almost see how to do it myself, but I can't see where to get the name of the forum from the topic. &#60;/p&#62;
&#60;p&#62;As always, thank you for whatever help you can offer.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
