<?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: hooks</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Tag: hooks</description>
<language>en</language>
<pubDate>Wed, 03 Dec 2008 00:10:47 +0000</pubDate>

<item>
<title>HowToGeek on "Which filter/action hook should I use?"</title>
<link>http://bbpress.org/forums/topic/which-filteraction-hook-should-i-use#post-9983</link>
<pubDate>Mon, 06 Aug 2007 06:57:17 +0000</pubDate>
<dc:creator>HowToGeek</dc:creator>
<guid isPermaLink="false">9983@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;That got me thinking... why reinvent the wheel when I can just use the bbcode plugin.&#60;/p&#62;
&#60;p&#62;What I did was change the current quote plugin to insert the quote with [quote] instead of the other syntax, as well as strip out any blockquotes from the original post that you are quoting, which eliminates the multiple levels of quoting.&#60;/p&#62;
&#60;p&#62;So here's my new bb_quote_message() function:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function bb_quote_message() {
	global $bbdb, $topic;
	$post_id = (int)$_GET[&#38;#39;quote&#38;#39;];
	if ($post_id) {
		$row = $bbdb-&#38;gt;get_row(&#38;quot;SELECT * FROM $bbdb-&#38;gt;posts WHERE post_id={$post_id} AND topic_id={$topic-&#38;gt;topic_id} AND post_status=0&#38;quot;);
		$row-&#38;gt;post_text = preg_replace( &#38;#39;(&#38;lt;p&#38;gt;&#124;&#38;lt;/p&#38;gt;)&#38;#39;, &#38;#39;&#38;#39;, $row-&#38;gt;post_text );
		$ret = preg_replace(&#38;quot;/&#38;lt;blockquote&#38;gt;((.&#124;[\n\r])*?)&#38;lt;\/blockquote&#38;gt;/&#38;quot;, &#38;quot;&#38;quot;,$row-&#38;gt;post_text);
		if ($row) echo htmlentities(&#38;#39;[quote]&#38;#39;.$ret.&#38;#39;[/quote]&#38;#39;, ENT_COMPAT, &#38;#39;UTF-8&#38;#39;);
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;So far it works great... except it's annoying that the cursor isn't positioned at the end of the textbox... I'm gonna look for some javascript to fix that.
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "Which filter/action hook should I use?"</title>
<link>http://bbpress.org/forums/topic/which-filteraction-hook-should-i-use#post-9980</link>
<pubDate>Mon, 06 Aug 2007 05:55:05 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">9980@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Just remember some people use the bbcode plugin so it would have to peacefully get along with that.
&#60;/p&#62;</description>
</item>
<item>
<title>HowToGeek on "Which filter/action hook should I use?"</title>
<link>http://bbpress.org/forums/topic/which-filteraction-hook-should-i-use#post-9979</link>
<pubDate>Mon, 06 Aug 2007 05:34:21 +0000</pubDate>
<dc:creator>HowToGeek</dc:creator>
<guid isPermaLink="false">9979@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I'd think it would work out much better to use something other than blockquote... that's the whole idea behind the [quote] tag... it should be accepted by bbpress perfectly fine, and not used for any other reason.&#60;/p&#62;
&#60;p&#62;There's no reason to have full bbcode support if you don't need it, all we need is the [quote] tag.&#60;/p&#62;
&#60;p&#62;One of the problems with using blockquote is that somebody might already use blockquote in their posts. It would also make any old posts using blockquote completely incompatible with the new plugin.&#60;/p&#62;
&#60;p&#62;Otherwise you could use another tag, but then you have to modify the bbpress allowed tags list.&#60;/p&#62;
&#60;p&#62;And the issue here is that we are trying to indicate to the system that we are quoting something, not just trying to format the display. It's this that gives us the ability to filter out the first quote in a multiple-quote scenario that probably happens very often.
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "Which filter/action hook should I use?"</title>
<link>http://bbpress.org/forums/topic/which-filteraction-hook-should-i-use#post-9978</link>
<pubDate>Mon, 06 Aug 2007 05:29:09 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">9978@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Well you'd have to use an existing html tag like blockquote and map it to a bbcode tag via another plugin.&#60;/p&#62;
&#60;p&#62;But blockquote can have made-up attributes.&#60;br /&#62;
ie.&#60;br /&#62;
&#60;code&#62;&#38;lt;blockquote post=&#38;quot;1824&#38;quot; author=&#38;quot;_ck_&#38;quot;&#38;gt;blah blah&#38;lt;/blockquote&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;But it's much more simple to start with non-intelligent quoting. You can place the post reference but to look for it and analyse it is much more difficult.&#60;/p&#62;
&#60;p&#62;Stripping nested blockquotes will be very easy.&#60;br /&#62;
Well fairly easy.
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "Which filter/action hook should I use?"</title>
<link>http://bbpress.org/forums/topic/which-filteraction-hook-should-i-use#post-9977</link>
<pubDate>Mon, 06 Aug 2007 05:26:14 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">9977@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Oh wait, there's a plugin that does this already, though it needs to be seriously enhanced:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://bbpress.org/plugins/topic/38?replies=17&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/plugins/topic/38?replies=17&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;And they came to the same conclusions that I did, you have to place the &#34;quote&#34; link and insert the quoted text the exact way I described.
&#60;/p&#62;</description>
</item>
<item>
<title>HowToGeek on "Which filter/action hook should I use?"</title>
<link>http://bbpress.org/forums/topic/which-filteraction-hook-should-i-use#post-9976</link>
<pubDate>Mon, 06 Aug 2007 05:23:55 +0000</pubDate>
<dc:creator>HowToGeek</dc:creator>
<guid isPermaLink="false">9976@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I am pretty busy at the moment... and you are rather amazing at creating these plugins...&#60;/p&#62;
&#60;p&#62;I was thinking that when generating the quoted text it would show up at the top of the textarea like this:&#60;/p&#62;
&#60;p&#62;--------------------------------------------&#60;br /&#62;
&#124; [quote] so you really like ascii?&#60;br /&#62;
&#124; that's pretty cool [/quote]&#60;br /&#62;
&#124;&#60;br /&#62;
&#124; Yeah, I love ascii... I'm a geek, afterall&#60;br /&#62;
--------------------------------------------&#60;/p&#62;
&#60;p&#62;When generating that quoted text, it would be necessary to find an existing quote within the post and remove that, so the quote of a post that quotes another post then would only have the actual post. (boy was that confusing) It should be simple enough to remove anything between [quote][/quote]&#60;/p&#62;
&#60;p&#62;Then on display there should be a hook to find a pair of [quote] [/quote] and replace it with a div that we can then style correctly. By only allowing a pair then you would prevent breaking divs. If the post submitter screwed up the [quote] tags, then their post would just not make sense, but wouldn't break the design of the page.&#60;/p&#62;
&#60;p&#62;This is similar to the way invision does it, and it seems like a reasonable way to handle it. &#60;/p&#62;
&#60;p&#62;Make sense?
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "Which filter/action hook should I use?"</title>
<link>http://bbpress.org/forums/topic/which-filteraction-hook-should-i-use#post-9975</link>
<pubDate>Mon, 06 Aug 2007 05:10:14 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">9975@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Look again at this tonight I see all the magic would have to happen in &#34;post-form.php&#34; and unfortunately it would need a simple edit.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;textarea name=&#38;quot;post_content&#38;quot; cols=&#38;quot;50&#38;quot; rows=&#38;quot;8&#38;quot; id=&#38;quot;post_content&#38;quot; tabindex=&#38;quot;3&#38;quot;&#38;gt;&#38;lt;/textarea&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;would have to be edited to something like&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;textarea name=&#38;quot;post_content&#38;quot; cols=&#38;quot;50&#38;quot; rows=&#38;quot;8&#38;quot; id=&#38;quot;post_content&#38;quot; tabindex=&#38;quot;3&#38;quot;&#38;gt;&#38;lt;? quote_post(); ?&#38;gt; &#38;lt;/textarea&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Even though there is &#60;code&#62;do_action( &#38;#39;post_form_pre_post&#38;#39; );&#60;/code&#62; just above it, there is no way to manipulate the textarea content without javascript. It's a shame they didn't think of that.&#60;/p&#62;
&#60;p&#62;So quote_post() could just look for the added arg to the URL and insert the formatted quoted text in the textarea. Then a simple quote button on each post in the topic to trigger the new post.&#60;br /&#62;
ie.&#60;br /&#62;
&#60;strong&#62;?new=1&#38;#38;quote_post=1873&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;If you don't write it, I'll take a shot at it.
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "Which filter/action hook should I use?"</title>
<link>http://bbpress.org/forums/topic/which-filteraction-hook-should-i-use#post-9956</link>
<pubDate>Sun, 05 Aug 2007 17:55:06 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">9956@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;1. insert &#34;quote&#34; button on every post like my &#34;report&#34; button&#60;/p&#62;
&#60;p&#62;2. don't use javascript, use the arg add function and build a simple url for each quote button which references the source post id #&#60;/p&#62;
&#60;p&#62;3. clicking said url button does a get from the server/bbpress&#60;/p&#62;
&#60;p&#62;4. look for and capture the $_GET  (ie. &#38;#38;quotepost=1327)&#60;/p&#62;
&#60;p&#62;5. now the hard part, tell bbpress to start a new reply post in the topic and insert the formatted text from the quoted post. I have no clue how to pass bbpress existing text to a new post. Not even sure it has the action/filter to do it. I would bet not :-(
&#60;/p&#62;</description>
</item>
<item>
<title>HowToGeek on "Which filter/action hook should I use?"</title>
<link>http://bbpress.org/forums/topic/which-filteraction-hook-should-i-use#post-9952</link>
<pubDate>Sun, 05 Aug 2007 17:03:27 +0000</pubDate>
<dc:creator>HowToGeek</dc:creator>
<guid isPermaLink="false">9952@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Ah, sorry, I read that too quickly.&#60;/p&#62;
&#60;p&#62;The only issue with that is that what if there are two pages, and I want to respond to a post on the first page? It would simply be broken... clicking on the reply button there wouldn't do anything.&#60;/p&#62;
&#60;p&#62;I originally was thinking that an ajax method might work, but I think even so it has to be combined with something on the server side.&#60;/p&#62;
&#60;p&#62;Now I'm just thinking to send the user to a url like:&#60;br /&#62;
/topic/my-cool-topic?replyto=381#reply&#60;/p&#62;
&#60;p&#62;That way I can load up the reply in the box no matter where they click the reply link from.
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Which filter/action hook should I use?"</title>
<link>http://bbpress.org/forums/topic/which-filteraction-hook-should-i-use#post-9950</link>
<pubDate>Sun, 05 Aug 2007 16:50:02 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">9950@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I'm sorry if I just copy and paste what I said before but I'm not sure you saw. :/&#60;/p&#62;
&#60;p&#62;&#60;em&#62;Then the &#60;code&#62;somequote&#60;/code&#62; function finds the &#60;code&#62;li&#60;/code&#62; where &#60;code&#62;id&#60;/code&#62; is &#60;code&#62;post-#&#60;/code&#62;, extracts the post text (this depends somewhat on the page HTML but should work) and puts it in the post box at the bottom. The &#60;code&#62;somequote&#60;/code&#62;function can also use the DOM probably to take out blockquotes.&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;The key bit is that the function is only passed the post ID. It can get the post HTML perfectly simply itself with the getElementById method. And then remove the &#60;code&#62;&#38;lt;blockquote&#38;gt;&#60;/code&#62; elements.
&#60;/p&#62;</description>
</item>
<item>
<title>HowToGeek on "Which filter/action hook should I use?"</title>
<link>http://bbpress.org/forums/topic/which-filteraction-hook-should-i-use#post-9946</link>
<pubDate>Sun, 05 Aug 2007 16:10:08 +0000</pubDate>
<dc:creator>HowToGeek</dc:creator>
<guid isPermaLink="false">9946@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;There's another plugin that already does the javascript quote post. The problem with javascript is that you effectively end up doubling the page size by duplicating every post on the page, and there's not a good reason for that.&#60;/p&#62;
&#60;p&#62;I may end up going with an ajax route, but another problem that you end up with is that you can only reply to posts on the current page.&#60;/p&#62;
&#60;p&#62;I figured the quote post should probably strip out any of the prior quotes.
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Which filter/action hook should I use?"</title>
<link>http://bbpress.org/forums/topic/which-filteraction-hook-should-i-use#post-9937</link>
<pubDate>Sun, 05 Aug 2007 14:36:36 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">9937@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;What I think you should do is use a bit of nifty javascript, like so:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;a href=&#38;quot;&#38;quot; onclick=&#38;quot;somequote( /* post_id */ ); return false;&#38;quot;&#38;gt;Quote&#38;lt;/a&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Then the somequote function finds the li with id &#60;code&#62;post-#&#60;/code&#62;, extracts the post text (this depends somewhat on the page HTML but should work) and puts it in the post box at the bottom. The &#60;code&#62;somequote&#60;/code&#62; function can also use the DOM probably to take out blockquotes.  Quoting people isn't something that needs bookmarking, at least not for my tastes, and reloading the page is annoying. But then quoting people is usually annoying anyway. You're on a forum, why do you have to quote someone else's post if other people can see it just above? Meh, personal preference :P
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "Which filter/action hook should I use?"</title>
<link>http://bbpress.org/forums/topic/which-filteraction-hook-should-i-use#post-9928</link>
<pubDate>Sun, 05 Aug 2007 11:15:56 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">9928@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;To change text you either have to use &#34;pre_post&#34; which is a permanent change saved back to the database (ie. auto close tags) or &#34;post_text&#34; which only affects the outputted text and leaves the source alone (ie. smilies typically use this cause you don't want the image tags back into the text upon re-editing).&#60;/p&#62;
&#60;p&#62;IMHO &#34;post_text&#34; is an &#34;expensive&#34; operation in that it has to be generated on the text each and every  time it's displayed but sometimes there is no other choice.&#60;/p&#62;
&#60;p&#62;If you are asking how to automatically insert the button, that's very tricky because somethings still don't have hooks in bbpress, ie.&#60;br /&#62;
&#60;a href=&#34;http://trac.bbpress.org/ticket/720&#34; rel=&#34;nofollow&#34;&#62;http://trac.bbpress.org/ticket/720&#60;/a&#62;&#60;br /&#62;
(ironically that's where I'd put a quote button)&#60;/p&#62;
&#60;p&#62;The trick is to start a new post with the old text as a quote. I have no idea how that would be done in bbpress because I don't think you can have existing text on a new post, old an old one, and you really don't want to pre-create a post in case the user cancels.&#60;/p&#62;
&#60;p&#62;I'd love to see this plugin happen, I just don't know enough to help you more - hope someone else can help. &#60;/p&#62;
&#60;p&#62;ps  please make it trim the old post for people who like to quote posts, who quote posts, who quote posts and it ends up being 10 pages long, LOL!
&#60;/p&#62;</description>
</item>
<item>
<title>HowToGeek on "Which filter/action hook should I use?"</title>
<link>http://bbpress.org/forums/topic/which-filteraction-hook-should-i-use#post-9920</link>
<pubDate>Sun, 05 Aug 2007 08:39:34 +0000</pubDate>
<dc:creator>HowToGeek</dc:creator>
<guid isPermaLink="false">9920@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I'm trying to write a better quote plugin, but I'm still trying to figure out where to hook this in.&#60;/p&#62;
&#60;p&#62;I'm thinking that the quote button will post back the topic page in order to fill in the previous post into the reply box. This is pretty standard for other forums.&#60;/p&#62;
&#60;p&#62;While I might also add an ajax mode, I'd prefer to start off with a post back.
&#60;/p&#62;</description>
</item>
<item>
<title>eddd54 on "Hooks &#038; Filters Docu"</title>
<link>http://bbpress.org/forums/topic/hooks-038-filters-docu/page/2#post-6959</link>
<pubDate>Mon, 23 Apr 2007 18:09:04 +0000</pubDate>
<dc:creator>eddd54</dc:creator>
<guid isPermaLink="false">6959@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;hey, i found this link: &#60;a href=&#34;http://timjoh.com/list-of-bbpress-template-functions/&#34; rel=&#34;nofollow&#34;&#62;http://timjoh.com/list-of-bbpress-template-functions/&#60;/a&#62; yesterday - which has a list of all the template functions (up to 0.8.1).&#60;/p&#62;
&#60;p&#62;i was going to use that as a reference until bbpulp had more info -&#60;br /&#62;
but now i see that the wiki has already begun to fill out..&#60;/p&#62;
&#60;p&#62;i guess i'm still a little confused by all the terminology, perhaps someone could help me by distiguishing between the following terms:&#60;/p&#62;
&#60;p&#62;- template functions&#60;br /&#62;
- pluggable functions&#60;br /&#62;
- plugin functions&#60;br /&#62;
- filters (&#60;a href=&#34;http://bbpress.org/forums/topic/1070?replies=33#post-6740&#34;&#62;defined earlier&#60;/a&#62;)&#60;br /&#62;
- hooks / actions (&#60;a href=&#34;http://bbpress.org/forums/topic/1070?replies=33#post-6740&#34;&#62;defined earlier&#60;/a&#62;)&#60;/p&#62;
&#60;p&#62;maybe all this could be included on the wiki too?&#60;br /&#62;
anyway, the list of template functions might help since i see that no link has been created yet for it under the heading: &#34;Theming documentation&#34; on bbpulp.
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Hooks &#038; Filters Docu"</title>
<link>http://bbpress.org/forums/topic/hooks-038-filters-docu/page/2#post-6953</link>
<pubDate>Mon, 23 Apr 2007 14:29:44 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">6953@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Take your pick...&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;pulp&#60;/strong&#62;&#60;br /&#62;
[noun]: a soft, wet, shapeless mass of material&#60;br /&#62;
[noun]: a soft wet mass of fibers derived from rags or wood, used in papermaking.&#60;br /&#62;
[usu. as adj. ]: popular or sensational writing that is generally regarded as being of poor quality&#60;/p&#62;
&#60;p&#62;... and it's a synonym of &#34;press&#34;
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Hooks &#038; Filters Docu"</title>
<link>http://bbpress.org/forums/topic/hooks-038-filters-docu/page/2#post-6951</link>
<pubDate>Mon, 23 Apr 2007 14:02:51 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">6951@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;&#60;em&#62;so here it is &#60;a href=&#34;http://bbpulp.org&#34; rel=&#34;nofollow&#34;&#62;http://bbpulp.org&#60;/a&#62;&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;Fantastic!&#60;/p&#62;
&#60;p&#62;What's the pulp thing about, though? :P
&#60;/p&#62;</description>
</item>
<item>
<title>eddd54 on "Hooks &#038; Filters Docu"</title>
<link>http://bbpress.org/forums/topic/hooks-038-filters-docu/page/2#post-6940</link>
<pubDate>Mon, 23 Apr 2007 08:04:24 +0000</pubDate>
<dc:creator>eddd54</dc:creator>
<guid isPermaLink="false">6940@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;cool. it will be. thanks again for the help. i'll be watching the (unofficial) wiki!
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Hooks &#038; Filters Docu"</title>
<link>http://bbpress.org/forums/topic/hooks-038-filters-docu/page/2#post-6939</link>
<pubDate>Mon, 23 Apr 2007 07:30:52 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">6939@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;&#38;gt; do you mind if i end up using it as the starting point for writing my own plugin?&#60;/p&#62;
&#60;p&#62;It's GPL licensed, so if your plugin is GPL licensed, then that's fine.
&#60;/p&#62;</description>
</item>
<item>
<title>eddd54 on "Hooks &#038; Filters Docu"</title>
<link>http://bbpress.org/forums/topic/hooks-038-filters-docu/page/2#post-6938</link>
<pubDate>Mon, 23 Apr 2007 06:50:24 +0000</pubDate>
<dc:creator>eddd54</dc:creator>
<guid isPermaLink="false">6938@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;oops, i peeked..&#60;br /&#62;
i found the function disableRegistration() in the LDAP plugin but i still hadn't identified which part was doing what. anyways, it looks like bb_init is the hook that i was looking for! right on. oh, and do you mind if i end up using it as the starting point for writing my own plugin? i was hoping to eventually get it to work within my templates and easily customize the text that's being displayed, etc. But, don't tell me how to do that, i need the practice! besides, i'll be around with more questions soon enough i'm sure..
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Hooks &#038; Filters Docu"</title>
<link>http://bbpress.org/forums/topic/hooks-038-filters-docu#post-6937</link>
<pubDate>Mon, 23 Apr 2007 05:39:31 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">6937@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I think you started with looking at the wrong plugin.&#60;/p&#62;
&#60;p&#62;I've got the code here if you want it, if you want a challenge, then *don't* read on...:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
Plugin Name: Disable registration
Plugin URI:
Description: Disables registration
Author: Sam Bauers
Version: 0.0.1
Author URI:
*/

add_action(&#38;#39;bb_init&#38;#39;, &#38;#39;disable_registration&#38;#39;);

function disable_registration() {
	global $bb;
	if ($_SERVER[&#38;#39;PHP_SELF&#38;#39;] == $bb-&#38;gt;path . &#38;#39;register.php&#38;#39;) {
		bb_die(__(&#38;#39;Registration is temporarily disabled for this forum.&#38;#39;));
	}
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Make a new file from this code and drop it into your plugins folder. You may need to add some values in the header part to allow it to be registered in the admin area.
&#60;/p&#62;</description>
</item>
<item>
<title>eddd54 on "Hooks &#038; Filters Docu"</title>
<link>http://bbpress.org/forums/topic/hooks-038-filters-docu#post-6935</link>
<pubDate>Mon, 23 Apr 2007 04:50:00 +0000</pubDate>
<dc:creator>eddd54</dc:creator>
<guid isPermaLink="false">6935@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;right, i started by downloading the restrict registration plugin and trying to figure it out from there..&#60;/p&#62;
&#60;p&#62;i'll take a look at the LDAP one too. thanks!&#60;br /&#62;
also, it occured to me that there might be an option in the config.php for this but i double checked and there wasn't. oh, well..&#60;/p&#62;
&#60;p&#62;i'll see if i can figure it out.
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Hooks &#038; Filters Docu"</title>
<link>http://bbpress.org/forums/topic/hooks-038-filters-docu#post-6934</link>
<pubDate>Mon, 23 Apr 2007 04:41:46 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">6934@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;The LDAP plugin has a feature that disables the registration page, you can make a simple plugin based on that.&#60;/p&#62;
&#60;p&#62;ALternatively you could run the restrict registration plugin and blacklist everything.
&#60;/p&#62;</description>
</item>
<item>
<title>eddd54 on "Hooks &#038; Filters Docu"</title>
<link>http://bbpress.org/forums/topic/hooks-038-filters-docu#post-6932</link>
<pubDate>Mon, 23 Apr 2007 04:30:40 +0000</pubDate>
<dc:creator>eddd54</dc:creator>
<guid isPermaLink="false">6932@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;hey cool.&#60;/p&#62;
&#60;p&#62;i was just looking for something like this and you just created it minutes ago!&#60;br /&#62;
i guess i'm too early.. not much there yet obviously.&#60;/p&#62;
&#60;p&#62;in the meantime, anyone out there know the filter/action that would allow me to disable the bbpress registration page entirely ( ie: registration.php ) ?&#60;/p&#62;
&#60;p&#62;i'd love to do this via a plugin rather that hack the core bbpress files or delete/move the file altogether.&#60;/p&#62;
&#60;p&#62;it would be like a &#34;registration is temporarily disabled&#34; plugin.&#60;br /&#62;
optionally, to be able to change the appearance/text on the registration page would be my next challenge. but one thing at a time.&#60;/p&#62;
&#60;p&#62;by the way, good work everyone!
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Hooks &#038; Filters Docu"</title>
<link>http://bbpress.org/forums/topic/hooks-038-filters-docu#post-6930</link>
<pubDate>Mon, 23 Apr 2007 04:00:19 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">6930@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;&#38;gt; I love it :D&#60;/p&#62;
&#60;p&#62;So do I, so here it is &#60;a href=&#34;http://bbpulp.org&#34; rel=&#34;nofollow&#34;&#62;http://bbpulp.org&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Registration required to contribute.&#60;/p&#62;
&#60;p&#62;All articles to be submitted under the GPL Free Documentation License.
&#60;/p&#62;</description>
</item>
<item>
<title>Null on "Hooks &#038; Filters Docu"</title>
<link>http://bbpress.org/forums/topic/hooks-038-filters-docu#post-6883</link>
<pubDate>Sat, 21 Apr 2007 08:02:59 +0000</pubDate>
<dc:creator>Null</dc:creator>
<guid isPermaLink="false">6883@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;quote: How about bbpulp.org ?&#60;/p&#62;
&#60;p&#62;I love it :D
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Hooks &#038; Filters Docu"</title>
<link>http://bbpress.org/forums/topic/hooks-038-filters-docu#post-6882</link>
<pubDate>Sat, 21 Apr 2007 05:39:28 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">6882@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;We should assume that codex.bbpress.org is out of the question for now, even though the content that we generate may end up there.&#60;/p&#62;
&#60;p&#62;How about bbpulp.org ?
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Hooks &#038; Filters Docu"</title>
<link>http://bbpress.org/forums/topic/hooks-038-filters-docu#post-6879</link>
<pubDate>Sat, 21 Apr 2007 00:26:07 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">6879@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Didn't you say there will be no Automattic documentation before 1.0 release? Obviously codex.bbpress.org is the best, but that would be official ... and we haven't got official.
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "Hooks &#038; Filters Docu"</title>
<link>http://bbpress.org/forums/topic/hooks-038-filters-docu#post-6878</link>
<pubDate>Fri, 20 Apr 2007 19:31:33 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">6878@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Ditto on the subdomain of bbpress.org.
&#60;/p&#62;</description>
</item>
<item>
<title>Trent on "Hooks &#038; Filters Docu"</title>
<link>http://bbpress.org/forums/topic/hooks-038-filters-docu#post-6877</link>
<pubDate>Fri, 20 Apr 2007 18:50:22 +0000</pubDate>
<dc:creator>Trent</dc:creator>
<guid isPermaLink="false">6877@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I still think that codex.bbpress.org is still the best though to avoid confusion and keep the same design.    Someone send something in the developer list again for some 'more pointed' discussion on this.&#60;/p&#62;
&#60;p&#62;Trent
&#60;/p&#62;</description>
</item>

</channel>
</rss>
