<?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 User Favorites: dangrey</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums User Favorites: dangrey</description>
<language>en</language>
<pubDate>Sun, 07 Sep 2008 05:01:24 +0000</pubDate>

<item>
<title>kapre 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>kapre</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>dangrey on "GMT Offset"</title>
<link>http://bbpress.org/forums/topic/gmt-offset#post-15928</link>
<pubDate>Fri, 02 May 2008 11:55:43 +0000</pubDate>
<dc:creator>dangrey</dc:creator>
<guid isPermaLink="false">15928@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hmmm, your fix caused a bit of breakage for me -- time zone is +1, but for some reason &#60;em&#62;two&#60;/em&#62; hours were added to the time stamp, resulting in a &#34;freshness&#34; of -1 year! (i.e., the timestamp was now in the future.&#60;/p&#62;
&#60;p&#62;Setting my time offset in General Settings to zero results in the correct time (GMT+1) being shown (server is on UTC btw), but the freshness is still -1 year lol.
&#60;/p&#62;</description>
</item>
<item>
<title>dangrey on "GMT Offset"</title>
<link>http://bbpress.org/forums/topic/gmt-offset#post-15926</link>
<pubDate>Fri, 02 May 2008 11:13:52 +0000</pubDate>
<dc:creator>dangrey</dc:creator>
<guid isPermaLink="false">15926@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;&#34;bb_current_time is in the functions file inside bb-includes directory. But you probably should touch that otherwise when you update bbpress, it will break again. :)&#34;&#60;/p&#62;
&#60;p&#62;Tell me about it -- I've already hacked another core file which has to be re-tweaked every upgrade... &#60;/p&#62;
&#60;p&#62;BTW isn't this a bug really?
&#60;/p&#62;</description>
</item>
<item>
<title>scooter7978 on "GMT Offset"</title>
<link>http://bbpress.org/forums/topic/gmt-offset#post-15922</link>
<pubDate>Fri, 02 May 2008 00:42:54 +0000</pubDate>
<dc:creator>scooter7978</dc:creator>
<guid isPermaLink="false">15922@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;bb_current_time is in the functions file inside bb-includes directory. But you probably should touch that otherwise when you update bbpress, it will break again. :)&#60;/p&#62;
&#60;p&#62;The SQL I used was just an interval clause...i.e. if I was going to import my current forums I would use something like:&#60;/p&#62;
&#60;p&#62;SELECT ID, Body, DateCreated - interval '9 30' hour_minute FROM current_forum_whatever&#60;/p&#62;
&#60;p&#62;This takes the date field and drops 9.5 hours off, coincidentally, my time zone.&#60;/p&#62;
&#60;p&#62;You could probably adapt this to an 'update' statement to change what's already in your database, eg:&#60;/p&#62;
&#60;p&#62;UPDATE bb_topics SET DateCreated=(SELECT DateCreated -  interval '9 30' hour_minute);&#60;/p&#62;
&#60;p&#62;I haven't tested it but it probably wouldn't be too far wrong.
&#60;/p&#62;</description>
</item>
<item>
<title>dangrey on "GMT Offset"</title>
<link>http://bbpress.org/forums/topic/gmt-offset#post-15906</link>
<pubDate>Thu, 01 May 2008 10:28:24 +0000</pubDate>
<dc:creator>dangrey</dc:creator>
<guid isPermaLink="false">15906@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Where can I find the bb_current_time function?&#60;/p&#62;
&#60;p&#62;Also could you post the SQL statement you used to fix existing date fields in the db? Thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>scooter7978 on "GMT Offset"</title>
<link>http://bbpress.org/forums/topic/gmt-offset#post-15904</link>
<pubDate>Thu, 01 May 2008 05:44:55 +0000</pubDate>
<dc:creator>scooter7978</dc:creator>
<guid isPermaLink="false">15904@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;On thinking about it a bit further, I went back to my SQL posts and kludged a statement which removes 9.5 hours from the various date fields that populate the bbpress database.&#60;/p&#62;
&#60;p&#62;On restoring everything back, it's ok now.
&#60;/p&#62;</description>
</item>
<item>
<title>scooter7978 on "GMT Offset"</title>
<link>http://bbpress.org/forums/topic/gmt-offset#post-15903</link>
<pubDate>Thu, 01 May 2008 05:01:28 +0000</pubDate>
<dc:creator>scooter7978</dc:creator>
<guid isPermaLink="false">15903@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I've been playing with bbPress for a few days and noticed that when I started posting the time was set all wrong and the posts I imported were dated wrong (only ones from that day).&#60;/p&#62;
&#60;p&#62;Since I'm in South Australia (+9.5 GMT) I had set the gmt_offset option in the admin interface to 9.5 to accomodate my differences but it wouldn't set the post date/time to my timezone when posting.&#60;/p&#62;
&#60;p&#62;The only way around it was to modify the bb_current_time function and change this line:&#60;/p&#62;
&#60;p&#62;$d = gmdate('Y-m-d H:i:s');&#60;/p&#62;
&#60;p&#62;to this:&#60;/p&#62;
&#60;p&#62;$d = gmdate('Y-m-d H:i:s', time() + 3600*(bb_get_option('gmt_offset')+date(&#34;I&#34;)));&#60;/p&#62;
&#60;p&#62;So that it actually uses the GMT offset.&#60;/p&#62;
&#60;p&#62;Of course, doing this only means that current posts are displayed at the right time but previous ones are wrong because they're all set to the current time when posted and the system then adds 9.5hrs onto them when being read.&#60;/p&#62;
&#60;p&#62;I'm assuming either I've missed something in the config or the time option just isn't using the gmt_offset value from the db for anything.&#60;/p&#62;
&#60;p&#62;Can someone confirm or refute this please? I'd like to be able to change it back and do it the proper way if possible.
&#60;/p&#62;</description>
</item>
<item>
<title>dangrey on "Where can I find text "New Topic in this Forum"?"</title>
<link>http://bbpress.org/forums/topic/where-can-i-find-text-new-topic-in-this-forum#post-15794</link>
<pubDate>Sat, 26 Apr 2008 18:46:44 +0000</pubDate>
<dc:creator>dangrey</dc:creator>
<guid isPermaLink="false">15794@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Any chance this text could be made part of the theme? Would save having to go into the core files upon each upgrade.
&#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>dangrey on "Where can I find text "New Topic in this Forum"?"</title>
<link>http://bbpress.org/forums/topic/where-can-i-find-text-new-topic-in-this-forum#post-15721</link>
<pubDate>Wed, 23 Apr 2008 17:35:47 +0000</pubDate>
<dc:creator>dangrey</dc:creator>
<guid isPermaLink="false">15721@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Thank you!
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "Where can I find text "New Topic in this Forum"?"</title>
<link>http://bbpress.org/forums/topic/where-can-i-find-text-new-topic-in-this-forum#post-15720</link>
<pubDate>Wed, 23 Apr 2008 17:27:10 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">15720@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Line 137 of /bb-includes/template-functions.php is where that's defined.  I don't know if there is a way to override that with a plugin or not, but that's where you will find the text.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://trac.bbpress.org/browser/trunk/bb-includes/template-functions.php#L137&#34; rel=&#34;nofollow&#34;&#62;http://trac.bbpress.org/browser/trunk/bb-includes/template-functions.php#L137&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>dangrey on "Where can I find text "New Topic in this Forum"?"</title>
<link>http://bbpress.org/forums/topic/where-can-i-find-text-new-topic-in-this-forum#post-15719</link>
<pubDate>Wed, 23 Apr 2008 17:07:17 +0000</pubDate>
<dc:creator>dangrey</dc:creator>
<guid isPermaLink="false">15719@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I want to edit the text &#34;New Topic in this Forum&#34; on my new topic pages, but can't find which file it's in. Can anyone help?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
