<?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: tricks</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Tag: tricks</description>
<language>en</language>
<pubDate>Tue, 02 Dec 2008 05:29:02 +0000</pubDate>

<item>
<title>brad_langdon on "Delete Post by It's Owner"</title>
<link>http://bbpress.org/forums/topic/delete-post-by-its-owner#post-18771</link>
<pubDate>Fri, 29 Aug 2008 01:23:57 +0000</pubDate>
<dc:creator>brad_langdon</dc:creator>
<guid isPermaLink="false">18771@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Sweet thanks for that.
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "Delete Post by It's Owner"</title>
<link>http://bbpress.org/forums/topic/delete-post-by-its-owner#post-18769</link>
<pubDate>Fri, 29 Aug 2008 00:40:03 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">18769@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;In the admin under Settings &#38;gt; General, there is a post timeout setting (&#34;Lock post editing after&#34;):&#60;br /&#62;
/bb-admin/options-general.php&#60;/p&#62;
&#60;p&#62;The default is 60.  Try setting it to -1 and see if a normal user can edit an old post.  If the -1 does not work, try some insanely large number of minutes so it appears that there is no limit to editing the posts. 525600 is a year's worth of minutes.
&#60;/p&#62;</description>
</item>
<item>
<title>brad_langdon on "Delete Post by It's Owner"</title>
<link>http://bbpress.org/forums/topic/delete-post-by-its-owner#post-18768</link>
<pubDate>Thu, 28 Aug 2008 22:49:03 +0000</pubDate>
<dc:creator>brad_langdon</dc:creator>
<guid isPermaLink="false">18768@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Great Cheers for that!&#60;/p&#62;
&#60;p&#62;One more thing...(sorry)&#60;/p&#62;
&#60;p&#62;How do you change the timeout length for editing and deleting posts?&#60;/p&#62;
&#60;p&#62;Can you take the timeout off all togehter?
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "Delete Post by It's Owner"</title>
<link>http://bbpress.org/forums/topic/delete-post-by-its-owner#post-18737</link>
<pubDate>Thu, 28 Aug 2008 11:36:52 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">18737@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;It's a mini-plugin, just make a plugin out of it.&#60;br /&#62;
I keep a single plugin composed of all my mini-plugins called &#60;code&#62;tweaks.php&#60;/code&#62; but you can call it anything.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
Plugin Name: Tweaks (mini-plugins)
*/

function delete_own_post($retvalue, $capability, $args) {
if ($capability==&#38;quot;delete_post&#38;quot;) {return bb_current_user_can( &#38;#39;edit_post&#38;#39;, $args[1]);}
return $retvalue;
}
add_filter(&#38;#39;bb_current_user_can&#38;#39;, &#38;#39;delete_own_post&#38;#39;,10,3);

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>brad_langdon on "Delete Post by It's Owner"</title>
<link>http://bbpress.org/forums/topic/delete-post-by-its-owner#post-18726</link>
<pubDate>Wed, 27 Aug 2008 19:52:44 +0000</pubDate>
<dc:creator>brad_langdon</dc:creator>
<guid isPermaLink="false">18726@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I may have put the code in the wrong place...where exactly did you put it and in which file.&#60;br /&#62;
Did you replace old code or just add this to it?&#60;/p&#62;
&#60;p&#62;Sorry I am not exactly an expert with this kind of stuff.
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "Delete Post by It's Owner"</title>
<link>http://bbpress.org/forums/topic/delete-post-by-its-owner#post-18709</link>
<pubDate>Wed, 27 Aug 2008 13:05:42 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">18709@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;You tried the second method and it does that?&#60;br /&#62;
It works for me, just tested it on 0.9&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function delete_own_post($retvalue, $capability, $args) {
if ($capability==&#38;quot;delete_post&#38;quot;) {return bb_current_user_can( &#38;#39;edit_post&#38;#39;, $args[1]);}
return $retvalue;
}
add_filter(&#38;#39;bb_current_user_can&#38;#39;, &#38;#39;delete_own_post&#38;#39;,10,3);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;.&#60;br /&#62;
Note that the delete ability times out with the edit ability (1 hour in default install).
&#60;/p&#62;</description>
</item>
<item>
<title>brad_langdon on "Delete Post by It's Owner"</title>
<link>http://bbpress.org/forums/topic/delete-post-by-its-owner#post-18704</link>
<pubDate>Wed, 27 Aug 2008 04:55:18 +0000</pubDate>
<dc:creator>brad_langdon</dc:creator>
<guid isPermaLink="false">18704@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I also have the problem of members not being able to delete their posts.&#60;/p&#62;
&#60;p&#62;I tried the above code, the delete button appears now but when clicked it says you do not have permission to delete.&#60;/p&#62;
&#60;p&#62;I am not even sure if I put it in the right place though.&#60;/p&#62;
&#60;p&#62;Does anyone have a tested method of making this work???
&#60;/p&#62;</description>
</item>
<item>
<title>hellweaver666 on "here's a trick to redirect user back to topic after login"</title>
<link>http://bbpress.org/forums/topic/heres-a-trick-to-redirect-user-back-to-topic-after-login#post-18169</link>
<pubDate>Mon, 11 Aug 2008 22:07:37 +0000</pubDate>
<dc:creator>hellweaver666</dc:creator>
<guid isPermaLink="false">18169@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Works a charm - thanks _ck_
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "fix for empty threads list on profile page"</title>
<link>http://bbpress.org/forums/topic/fix-for-empty-threads-list-on-profile-page#post-18109</link>
<pubDate>Sun, 10 Aug 2008 12:12:45 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">18109@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;somewhere between 0.8 and 0.9 the profile page became broken for most themes as &#34;threads started&#34; ($threads) was changed to the more accurate &#34;topics started&#34; ($topics) &#60;/p&#62;
&#60;p&#62;If you don't want to edit your theme profile page, here's a mini-plugin to fix the problem:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function profile_fix_topics_to_threads() {global $topics, $threads; $threads=$topics;}
add_action( &#38;#39;bb_profile.php&#38;#39;, &#38;#39;profile_fix_topics_to_threads&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>_ck_ on "mini-plugin to display member # in profile"</title>
<link>http://bbpress.org/forums/topic/mini-plugin-to-display-member-in-profile#post-18108</link>
<pubDate>Sun, 10 Aug 2008 11:37:38 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">18108@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Here's a mini plugin that will cause the profile page to display the member # (handy if you are using pretty permalinks)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function bb_member_id_in_profile($keys) {	// inserts member id into profile without hacking
global $self;
if (empty($self)==true &#38;#38;&#38;#38; isset($_GET[&#38;#39;tab&#38;#39;])==false &#38;#38;&#38;#38; bb_get_location()==&#38;quot;profile-page&#38;quot;) {
	(array) $keys=array_merge(array_slice((array) $keys, 0 , 1), array(&#38;#39;ID&#38;#39; =&#38;gt; array(0, __(&#38;#39;Member #&#38;#39;))), array_slice((array) $keys,  1));
}
return (array) $keys;
}
add_filter( &#38;#39;get_profile_info_keys&#38;#39;,&#38;#39;bb_member_id_in_profile&#38;#39;,255);  // last item inserted = first item displayed&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>_ck_ on "bblog tools collection and other stuff"</title>
<link>http://bbpress.org/forums/topic/bblog-tools-collection-and-other-stuff#post-18082</link>
<pubDate>Sat, 09 Aug 2008 06:49:17 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">18082@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;The themes section on WordPress.org is brand new and replaced the defunct one on WordPress.net  bbPress.org will eventually get the look and layout that WordPress.org has, it just might take awhile as there is no one to work on it while bbPress is being developed.&#60;/p&#62;
&#60;p&#62;A few sites have tried to do the &#34;collections&#34; idea but they have come and gone. I pretty much try to do what you are asking for on &#60;a href=&#34;http://bbShowcase.org&#34; rel=&#34;nofollow&#34;&#62;http://bbShowcase.org&#60;/a&#62; and of course right on this forum are lots of &#60;a href=&#34;http://bbpress.org/forums/tags/tips&#34;&#62;tips&#60;/a&#62;  and &#60;a href=&#34;http://bbpress.org/forums/tags/tricks&#34;&#62;tricks&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Thion on "bblog tools collection and other stuff"</title>
<link>http://bbpress.org/forums/topic/bblog-tools-collection-and-other-stuff#post-18080</link>
<pubDate>Sat, 09 Aug 2008 05:55:30 +0000</pubDate>
<dc:creator>Thion</dc:creator>
<guid isPermaLink="false">18080@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hello everyone :)&#60;/p&#62;
&#60;p&#62;It's not directly related to bbPress script, but somewhere around it. What do you think about making something like Weblog Tools Collection, but for bbPress? You know - the newest themes and plugins for bbPress, tips, tricks etc?&#60;/p&#62;
&#60;p&#62;I was also thinking about something like: &#60;a href=&#34;http://wordpress.org/extend/ideas/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/ideas/&#60;/a&#62; - so people could submit their ideas for new plugins etc. And something like &#60;a href=&#34;http://wordpress.org/extend/themes/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/themes/&#60;/a&#62; - even if I would like to submit some themes for bbPress, I don't have a site to do this ;).&#60;/p&#62;
&#60;p&#62;What do you think?
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "Delete Post by It's Owner"</title>
<link>http://bbpress.org/forums/topic/delete-post-by-its-owner#post-17932</link>
<pubDate>Sun, 03 Aug 2008 14:19:52 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">17932@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Here try this - completely untested - let me know!&#60;br /&#62;
update: forget this one, use the 2nd one below it&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function delete_own_post($retvalue, $capability, $args) {
global $bb_current_user, $bb_post;
if ($capability==&#38;quot;delete_post&#38;quot; &#38;#38;&#38;#38; $bb_current_user-&#38;gt;ID &#38;#38;&#38;#38; $bb_post &#38;#38;&#38;#38; $bb_post-&#38;gt;post_id  &#38;#38;&#38;#38;  $bb_post-&#38;gt;post_id ==intval($args[1]) &#38;#38;&#38;#38; $bb_post-&#38;gt;poster_id &#38;#38;&#38;#38; $bb_post-&#38;gt;poster_id==$bb_current_user-&#38;gt;ID &#38;#38;&#38;#38; bb_current_user_can( &#38;#39;edit_post&#38;#39;, $bb_post-&#38;gt;post_id) {return true;}   // lots and lots of double checks
return $retvalue;
}
add_filter(&#38;#39;bb_current_user_can&#38;#39;, &#38;#39;delete_own_post&#38;#39;,10,3);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;.&#60;br /&#62;
This checks if the user can still edit the post, and if so, allows them to delete their own post too.&#60;/p&#62;
&#60;p&#62;This plugin could be enhanced by checking if the user has been marked as blocked or inactive and prevent them from deleting it at all.&#60;/p&#62;
&#60;p&#62;Update: I may have &#34;over engineered the above function, this may be a much more simplified approach:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function delete_own_post($retvalue, $capability, $args) {
if ($capability==&#38;quot;delete_post&#38;quot;) {return bb_current_user_can( &#38;#39;edit_post&#38;#39;, $args[1]);}
return $retvalue;
}
add_filter(&#38;#39;bb_current_user_can&#38;#39;, &#38;#39;delete_own_post&#38;#39;,10,3);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This second method simply allows delete if the user can still edit a post. Once the edit times out, so does the delete.
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "Delete Post by It's Owner"</title>
<link>http://bbpress.org/forums/topic/delete-post-by-its-owner#post-17931</link>
<pubDate>Sun, 03 Aug 2008 14:04:28 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">17931@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Technically this could be done by wrapping the delete_posts capability in a function to check the current post id # and if the member owns it.
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "trick to make relative URLs instead of full URI"</title>
<link>http://bbpress.org/forums/topic/trick-to-make-relative-urls-instead-of-full-uri#post-17690</link>
<pubDate>Sat, 26 Jul 2008 23:12:27 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">17690@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;cordoval, there are several dozen bbPress sites on my top1000 list that use subdomains, hence I know it works. Please stop using this incorrect topic for the subject matter, thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>cordoval on "trick to make relative URLs instead of full URI"</title>
<link>http://bbpress.org/forums/topic/trick-to-make-relative-urls-instead-of-full-uri#post-17687</link>
<pubDate>Sat, 26 Jul 2008 18:47:32 +0000</pubDate>
<dc:creator>cordoval</dc:creator>
<guid isPermaLink="false">17687@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Have you installed it on a subdomain yourself?&#60;br /&#62;
I examined the parsing functions and the uri how it is stored in the database. However, I was reluctant that it would not work, I tried but did not work, but partly was because I was changing domain settings on a website.&#60;/p&#62;
&#60;p&#62;Also regarding the uri modifications that I really meant to convey was that I needed to change the uri for a forum that I was moving on my site. I ended up ultimately finding out how to do this. It is actually in the database itself and under user_metatopics or something similar, you just export your database and do a search for uri in the file and you will see what I mean. &#60;/p&#62;
&#60;p&#62;Encouragements, maybe I can try the subdomain install after you confirm me via email preferred.&#60;/p&#62;
&#60;p&#62;Thanks,
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "trick to make relative URLs instead of full URI"</title>
<link>http://bbpress.org/forums/topic/trick-to-make-relative-urls-instead-of-full-uri#post-17664</link>
<pubDate>Sat, 26 Jul 2008 01:38:48 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">17664@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;This topic has nothing to do with subdomains, but you can definitely install bbpress on a subdomain. Just enter the appropriate info during setup.
&#60;/p&#62;</description>
</item>
<item>
<title>cordoval on "trick to make relative URLs instead of full URI"</title>
<link>http://bbpress.org/forums/topic/trick-to-make-relative-urls-instead-of-full-uri#post-17663</link>
<pubDate>Sat, 26 Jul 2008 01:18:07 +0000</pubDate>
<dc:creator>cordoval</dc:creator>
<guid isPermaLink="false">17663@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Can I install bbpress on a subdomain? Is this possible?&#60;br /&#62;
Please contact me to &#60;a href=&#34;mailto:cordoval@gmail.com&#34;&#62;cordoval@gmail.com&#60;/a&#62;&#60;br /&#62;
Encouragements,
&#60;/p&#62;</description>
</item>
<item>
<title>Anonymous on "trick to fix some email problems with 0.8.x plugins on 0.9.x"</title>
<link>http://bbpress.org/forums/topic/trick-to-fix-some-email-problems-with-08x-plugins-on-09x#post-17503</link>
<pubDate>Tue, 22 Jul 2008 00:52:52 +0000</pubDate>
<dc:creator>Anonymous</dc:creator>
<guid isPermaLink="false">17503@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Does this plugin available? I hope you may also include Swift Mailer.  I can not put my bbpress on due to this problem.  I'm just using a free hosting.  Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>nv1962 on "[tip] Simple integration of bbPress/WP for new registrations"</title>
<link>http://bbpress.org/forums/topic/simple-integration-tip-for-new-registration#post-17359</link>
<pubDate>Wed, 16 Jul 2008 22:45:40 +0000</pubDate>
<dc:creator>nv1962</dc:creator>
<guid isPermaLink="false">17359@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;&#60;em&#62;(Subtitle: how to use registration protection/filtering in WP for bbPress - the lazy but effective way!)&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;Say: you're a PHP newbie (like me), want to run bbPress &#60;em&#62;and&#60;/em&#62; WP, and have successfully completed the installation of the plugin to integrate the bbPress user database with WP's (whew!) and &#60;em&#62;then&#60;/em&#62; you discover that people can register via either the bbPress or WP . Suppose furthermore that you're getting hammered by nasty bots registering themselves, and have an open self-registration policy on your WP blog/CMS, and therefore installed a nifty registration screening plugin (oh say, &#60;a href=&#34;http://wordpress.org/extend/plugins/wp-recaptcha/&#34;&#62;WP-reCAPTCHA&#60;/a&#62;) and would like to use that for bbPress.&#60;/p&#62;
&#60;p&#62;How could you do that? With two simple edits you can:&#60;/p&#62;
&#60;p&#62;1) Open the register.php file of bbPress (in bbPress' root directory) and delete EVERYTHING in it, and save your cleaned-out register.php file back to its place on the server (saving an empty file is to avoid a possible &#34;file not found&#34; error after the next step)&#60;/p&#62;
&#60;p&#62;2) Open (or create if you don't have it - which would be rare) a .htaccess file in the &#60;strong&#62;web server's root directory&#60;/strong&#62; and add the following &#60;strong&#62;single&#60;/strong&#62; line (it's displayed here on two lines, but really ought to be a single line!), and put that at/near the top of your .htaccess file (assuming your bbPress install sits in the /forum sub directory; else, modify accordingly to point to the register.php file):&#60;/p&#62;
&#60;p&#62;&#60;code&#62;Redirect permanent /forum/register.php &#60;a href=&#34;http://www.example.com/wp-login.php?action=register&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com/wp-login.php?action=register&#60;/a&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Make sure you substitute &#34;example.com&#34; with your own domain (of course).&#60;/p&#62;
&#60;p&#62;3) This step is non-existent. Instead, enjoy your newfound &#60;em&#62;unified registration bliss&#60;/em&#62; for dummies!
&#60;/p&#62;</description>
</item>
<item>
<title>dresah on "Delete Post by It's Owner"</title>
<link>http://bbpress.org/forums/topic/delete-post-by-its-owner#post-16985</link>
<pubDate>Sat, 28 Jun 2008 08:14:10 +0000</pubDate>
<dc:creator>dresah</dc:creator>
<guid isPermaLink="false">16985@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Is it possible to Delete a Post by It's Owner?&#60;/p&#62;
&#60;p&#62;I added this to member capabilities, but it shows me it's a bad idea :D ;&#60;/p&#62;
&#60;p&#62;'delete_posts =&#38;gt; true,//+'&#60;/p&#62;
&#60;p&#62;How can I do?
&#60;/p&#62;</description>
</item>
<item>
<title>morganoconnell on "here's a trick to fix Kakumei author info overflow"</title>
<link>http://bbpress.org/forums/topic/heres-a-trick-to-fix-kakumei-author-info-overflow#post-16372</link>
<pubDate>Wed, 21 May 2008 11:42:31 +0000</pubDate>
<dc:creator>morganoconnell</dc:creator>
<guid isPermaLink="false">16372@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Thanks _ck_ - this was infuriating me for ages. Didn't receive the fix mentioned above in  0.9.0.2.
&#60;/p&#62;</description>
</item>
<item>
<title>HowToGeek on "trick to fix some email problems with 0.8.x plugins on 0.9.x"</title>
<link>http://bbpress.org/forums/topic/trick-to-fix-some-email-problems-with-08x-plugins-on-09x#post-15776</link>
<pubDate>Fri, 25 Apr 2008 20:08:18 +0000</pubDate>
<dc:creator>HowToGeek</dc:creator>
<guid isPermaLink="false">15776@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I wrote my own replacement plugin for the mail function that uses the Swift Mailer PHP class to call sendmail directly, which should provide better performance over the built-in php mail functions.&#60;/p&#62;
&#60;p&#62;It also gives the the chance to assign a display name to the email address so it comes through as &#34;bbPress Support Forum&#34; instead of just &#34;forum@bbpress.org&#34;.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ( !function_exists(&#38;#39;bb_mail&#38;#39;) ) {
function bb_mail($to, $subject, $content, $headers=&#38;#39;&#38;#39;){

        require_once(&#38;#39;PATH_TO/Swift/lib/Swift.php&#38;#39;);
        require_once(&#38;#39;PATH_TO/Swift/lib/Swift/Connection/Sendmail.php&#38;#39;);

        $swift =&#38;#38; new Swift(new Swift_Connection_Sendmail(&#38;quot;/usr/sbin/sendmail -bs&#38;quot;));
        $from = new Swift_Address(&#38;quot;noreply@mysite.com&#38;quot;,&#38;quot;My bbPress Forums&#38;quot;);

        $message =&#38;#38; new Swift_Message($subject, $content);
        if ($swift-&#38;gt;send($message, $to, $from)) {return true;}
        else{ echo &#38;quot;Message failed to send to &#38;quot;.$to.&#38;quot; from &#38;quot;.$from;}
        $swift-&#38;gt;disconnect();
   }
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;To use this, you'd have to download Swift from their site and put it where it's included in the above code.&#60;br /&#62;
&#60;a href=&#34;http://www.swiftmailer.org/&#34; rel=&#34;nofollow&#34;&#62;http://www.swiftmailer.org/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You could also modify it to connect to an external SMTP server (even the Gmail server, for instance) by changing the Swift_Connection part above using this guide:&#60;br /&#62;
&#60;a href=&#34;http://www.swiftmailer.org/wikidocs/v3/connections/smtp&#34; rel=&#34;nofollow&#34;&#62;http://www.swiftmailer.org/wikidocs/v3/connections/smtp&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "trick to fix some email problems with 0.8.x plugins on 0.9.x"</title>
<link>http://bbpress.org/forums/topic/trick-to-fix-some-email-problems-with-08x-plugins-on-09x#post-15754</link>
<pubDate>Fri, 25 Apr 2008 05:42:28 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">15754@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;bbPress 0.9 renamed the critical system email address that several plugins rely on (&#34;admin_email&#34; became &#34;from_email&#34;)&#60;/p&#62;
&#60;p&#62;Unfortunately many plugin authors aren't aware of this and the old setting is completely deleted from the database, which makes any older plugin that looks for &#34;admin_email&#34; fail and get a blank address and don't anticipate/test for a blank. So they blindly insert the blank address into emails which causes the emailer to either fail or bounce the message. &#60;/p&#62;
&#60;p&#62;A few of my plugins were affected, I just found another tonight, and there are several third-party ones still unpatched.&#60;/p&#62;
&#60;p&#62;You can work around this problem by putting this into your &#60;code&#62;bb-config.php&#60;/code&#62; (anywhere on a new line)&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$bb-&#38;gt;admin_email = &#38;#39;email@your-forum.com&#38;#39;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;where &#60;code&#62;&#60;a href=&#34;mailto:email@your-forum.com&#34;&#62;email@your-forum.com&#60;/a&#62;&#60;/code&#62; is the same email address you use inside bbPress on &#60;code&#62;bb-admin/options-general.php&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;This won't hurt anything, causes no extra load of any kind and simply allows older plugins to work without additional edits until the authors get a chance to upgrade them. &#60;/p&#62;
&#60;p&#62;(Just remember you &#34;hard coded&#34; this address if you ever change the main one for any reason. You can delete it after 1.0 is out and all plugins have upgraded. In fact the old email address will become unused after all the plugin upgrade anyway so this can't hurt anything in practice.)
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "trick to make relative URLs instead of full URI"</title>
<link>http://bbpress.org/forums/topic/trick-to-make-relative-urls-instead-of-full-uri#post-15062</link>
<pubDate>Sat, 05 Apr 2008 15:50:55 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">15062@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;It was really bothering me how a page full of links was wasting so many bytes on full absolute URI's with the domain name, etc. when all it needed was a tidy relative URL.  The front page alone is 4k bigger just because of all the full URIs on the tag cloud and views, etc.&#60;/p&#62;
&#60;p&#62;ie.   &#60;a href=&#34;http://www.bbpress.org/forums/forum/plugins&#34; rel=&#34;nofollow&#34;&#62;http://www.bbpress.org/forums/forum/plugins&#60;/a&#62;&#60;br /&#62;
vs.  /forums/forum/plugins&#60;br /&#62;
(multiply that by a few hundred)&#60;/p&#62;
&#60;p&#62;So it dawned on me just now that it's fairly easy using filters to make all the urls relative. Just for safety, we don't kick in the relative URLs until bbPress has gotten past the header section of the template. This makes sure that redirects, stylesheets, and javascript is handled properly.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function bb_relative_uri($r) {return &#38;quot;/forums/&#38;quot;; }	// change forums to your path
function bb_relative_domain($r) {return &#38;quot;&#38;quot;; }
function bb_relative() {
add_filter( &#38;#39;bb_get_option_domain&#38;#39;,&#38;#39;bb_relative_domain&#38;#39;,255);
add_filter( &#38;#39;bb_get_option_uri&#38;#39;,&#38;#39;bb_relative_uri&#38;#39;,255);
} add_action(&#38;#39;bb_head&#38;#39;, &#38;#39;bb_relative&#38;#39;,255);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;.&#60;br /&#62;
In some cases, relative URLs actually makes Internet Explorer cache better so this may be helpful for subtle speedups too.&#60;/p&#62;
&#60;p&#62;I haven't discovered anything broken by this yet but be sure to let me know if you run into anything.
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "here's a trick to fix Kakumei author info overflow"</title>
<link>http://bbpress.org/forums/topic/heres-a-trick-to-fix-kakumei-author-info-overflow#post-14368</link>
<pubDate>Sun, 09 Mar 2008 11:04:42 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">14368@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Actually, this was fixed and tested when Gravatars was implemented in core. I've further refined the fixes today and tested across numerous browsers.&#60;/p&#62;
&#60;p&#62;Maybe your CSS was cached? Another reason to be running with a CSS version in the stylesheet link uri perhaps?
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "here's a trick to fix Kakumei author info overflow"</title>
<link>http://bbpress.org/forums/topic/heres-a-trick-to-fix-kakumei-author-info-overflow#post-14355</link>
<pubDate>Sat, 08 Mar 2008 18:38:30 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">14355@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I've noticed there is a serious problem with the way the CSS works for the default Kakumei theme (and any other theme based on it).&#60;/p&#62;
&#60;p&#62;As you add information to the post author field on the left, it will start to vertically overflow and start to overlap the next post. This is because the designer unfortunately decided to use a shortcut via &#60;code&#62;position:absolute&#60;/code&#62; making it impossible to &#60;code&#62;clear:both&#60;/code&#62; columns.&#60;/p&#62;
&#60;p&#62;Here's how to easily fix it by appending two simple lines to the very bottom of the &#60;code&#62;style.css&#60;/code&#62; and no need to search for and edit/replace other lines.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;.threadauthor  {position:relative; float:left; margin:0 -110px 0 0; right:110px; }
.poststuff {clear:both;}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If you don't want to edit any core files, simply put this into a plugin (make a new one or any existing one)&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function fix_kakumei_css() { echo &#38;#39;&#38;lt;style type=&#38;quot;text/css&#38;quot;&#38;gt;.threadauthor  {position:relative; float:left; margin:0 -110px 0 0; right:110px; } .poststuff {clear:both;} &#38;lt;/style&#38;gt;&#38;#39;;}
add_action(&#38;#39;bb_head&#38;#39;, &#38;#39;fix_kakumei_css&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Tested working in Internet Explorer, Firefox, Opera and Safari for Windows. Would appreciate MAC browser feedback?&#60;/p&#62;
&#60;p&#62;(I will attempt to automatically include this hack in my plugins to help avoid edits since it's usually my plugins that add so much info to the left but the new gravatar in 0.9 will also cause the overflow)&#60;/p&#62;
&#60;p&#62;Should actually be a core fix now that I think about it.
&#60;/p&#62;</description>
</item>
<item>
<title>HowToGeek on "here's a trick to redirect user back to topic after login"</title>
<link>http://bbpress.org/forums/topic/heres-a-trick-to-redirect-user-back-to-topic-after-login#post-14286</link>
<pubDate>Thu, 06 Mar 2008 03:50:53 +0000</pubDate>
<dc:creator>HowToGeek</dc:creator>
<guid isPermaLink="false">14286@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;For my site, I'm using the bbpress login as the site-wide login...  so when I put a login link on the wordpress side of the site the user would be redirected to the forum every time after login... kinda annoying.&#60;/p&#62;
&#60;p&#62;With this new knowledge I should be able to fix it so they are redirected back, even to a non-bbpress page.
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "here's a trick to redirect user back to topic after login"</title>
<link>http://bbpress.org/forums/topic/heres-a-trick-to-redirect-user-back-to-topic-after-login#post-14276</link>
<pubDate>Wed, 05 Mar 2008 15:33:04 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">14276@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I should note that mdawaffe has pointed out to me that apparently bbPress would do this previously if the user has referer's enabled in their browser. But since most &#34;personal firewalls&#34; block referers by default, you can't count on that behavior and this change will make it always work instead.&#60;/p&#62;
&#60;p&#62;0.8.4 will supposedly have this new ability by default...
&#60;/p&#62;</description>
</item>
<item>
<title>HowToGeek on "here's a trick to redirect user back to topic after login"</title>
<link>http://bbpress.org/forums/topic/heres-a-trick-to-redirect-user-back-to-topic-after-login#post-14269</link>
<pubDate>Wed, 05 Mar 2008 00:39:45 +0000</pubDate>
<dc:creator>HowToGeek</dc:creator>
<guid isPermaLink="false">14269@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Very nice... that was on my todo list to figure out.&#60;/p&#62;
&#60;p&#62;You rule. As usual.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
