<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to Tweet Calendar Events on MyBB</title>
	<atom:link href="http://valadilene.org/2010/02/09/how-to-tweet-calendar-events-on-mybb/feed/" rel="self" type="application/rss+xml" />
	<link>http://valadilene.org/2010/02/09/how-to-tweet-calendar-events-on-mybb/</link>
	<description>web development, programming and music</description>
	<lastBuildDate>Wed, 28 Jul 2010 10:18:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Mark</title>
		<link>http://valadilene.org/2010/02/09/how-to-tweet-calendar-events-on-mybb/comment-page-1/#comment-1925</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 23 Jun 2010 16:54:32 +0000</pubDate>
		<guid isPermaLink="false">http://valadilene.org/?p=687#comment-1925</guid>
		<description>Got it working now, but had to completely change the twitter status section</description>
		<content:encoded><![CDATA[<p>Got it working now, but had to completely change the twitter status section</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://valadilene.org/2010/02/09/how-to-tweet-calendar-events-on-mybb/comment-page-1/#comment-1924</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 23 Jun 2010 14:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://valadilene.org/?p=687#comment-1924</guid>
		<description>I have tried to incorporate your plugin, but changing it to tweet recent threads.

I am using the twitter.php and renamed it to class.titter.php, as you have.

On creating a new thread I am getting this error though:

Fatal error: Cannot access private property Twitter::$username in /home/truth/public_html/inc/plugins/testplugin.php on line 45

Any help would be appreciated.  Here is the code I&#039;m using:

&lt;?php
if(!defined(&quot;IN_MYBB&quot;))
{
	die(&quot;Direct initialization of this file is not allowed.Please make sure IN_MYBB is defined.&quot;);
}

$plugins-&gt;add_hook(&quot;newthread_do_newthread_end&quot;, &quot;twitterfeed_addthread&quot;);

function testplugin_info()
{
	return array(
		&quot;name&quot;			=&gt; &quot;Twitterfeed&quot;,
		&quot;description&quot;	=&gt; &quot;Tweed new threads to Twitter!&quot;,
		&quot;website&quot;		=&gt; &quot;&quot;,
		&quot;author&quot;		=&gt; &quot;&quot;,
		&quot;authorsite&quot;	=&gt; &quot;&quot;,
		&quot;version&quot;		=&gt; &quot;1.1&quot;,
		&quot;guid&quot;			=&gt; &quot;&quot;,
		&quot;compatibility&quot; =&gt; &quot;1*&quot;,
	);
}

function twitterfeed_activate()
{
}

function twitterfeed_deactivate()
{
}

function twitterfeed_addthread()
{
        global $new_thread, $mybb, $tid, $thread_info;

        // include twitter class
        require_once(&#039;class.twitter.php&#039;);

        // get URL
        $url = get_thread_link($tid);

       // send twitter status
       $tw=new twitter();
       $tw-&gt;username=MYACTUALUSERNAME;
       $tw-&gt;password=MYACTUALPASSWORD;
         $tw-&gt;update(&quot;[&quot;.my_date(&#039;d M&#039;,$thread_info[&#039;dateline&#039;]).&quot;]&quot; . $new_thread[&#039;subject&#039;] . &quot; &quot; . $new_thread[&#039;username&#039;]  . &quot; &quot; . $url);
}

?&gt;</description>
		<content:encoded><![CDATA[<p>I have tried to incorporate your plugin, but changing it to tweet recent threads.</p>
<p>I am using the twitter.php and renamed it to class.titter.php, as you have.</p>
<p>On creating a new thread I am getting this error though:</p>
<p>Fatal error: Cannot access private property Twitter::$username in /home/truth/public_html/inc/plugins/testplugin.php on line 45</p>
<p>Any help would be appreciated.  Here is the code I&#8217;m using:</p>
<p>&lt;?php<br />
if(!defined(&quot;IN_MYBB&quot;))<br />
{<br />
	die(&quot;Direct initialization of this file is not allowed.Please make sure IN_MYBB is defined.&#8221;);<br />
}</p>
<p>$plugins-&gt;add_hook(&#8220;newthread_do_newthread_end&#8221;, &#8220;twitterfeed_addthread&#8221;);</p>
<p>function testplugin_info()<br />
{<br />
	return array(<br />
		&#8220;name&#8221;			=&gt; &#8220;Twitterfeed&#8221;,<br />
		&#8220;description&#8221;	=&gt; &#8220;Tweed new threads to Twitter!&#8221;,<br />
		&#8220;website&#8221;		=&gt; &#8220;&#8221;,<br />
		&#8220;author&#8221;		=&gt; &#8220;&#8221;,<br />
		&#8220;authorsite&#8221;	=&gt; &#8220;&#8221;,<br />
		&#8220;version&#8221;		=&gt; &#8220;1.1&#8243;,<br />
		&#8220;guid&#8221;			=&gt; &#8220;&#8221;,<br />
		&#8220;compatibility&#8221; =&gt; &#8220;1*&#8221;,<br />
	);<br />
}</p>
<p>function twitterfeed_activate()<br />
{<br />
}</p>
<p>function twitterfeed_deactivate()<br />
{<br />
}</p>
<p>function twitterfeed_addthread()<br />
{<br />
        global $new_thread, $mybb, $tid, $thread_info;</p>
<p>        // include twitter class<br />
        require_once(&#8216;class.twitter.php&#8217;);</p>
<p>        // get URL<br />
        $url = get_thread_link($tid);</p>
<p>       // send twitter status<br />
       $tw=new twitter();<br />
       $tw-&gt;username=MYACTUALUSERNAME;<br />
       $tw-&gt;password=MYACTUALPASSWORD;<br />
         $tw-&gt;update(&#8220;[".my_date('d M',$thread_info['dateline']).&#8221;]&#8221; . $new_thread['subject'] . &#8221; &#8221; . $new_thread['username']  . &#8221; &#8221; . $url);<br />
}</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tweet adder coupon</title>
		<link>http://valadilene.org/2010/02/09/how-to-tweet-calendar-events-on-mybb/comment-page-1/#comment-1877</link>
		<dc:creator>tweet adder coupon</dc:creator>
		<pubDate>Mon, 08 Mar 2010 12:00:58 +0000</pubDate>
		<guid isPermaLink="false">http://valadilene.org/?p=687#comment-1877</guid>
		<description>Twitter does not have link juice. Merely because of their amazingly high pagerank, your tweets and even your Twitter profile page can get on the first page of Google simply with a good linking strategy</description>
		<content:encoded><![CDATA[<p>Twitter does not have link juice. Merely because of their amazingly high pagerank, your tweets and even your Twitter profile page can get on the first page of Google simply with a good linking strategy</p>
]]></content:encoded>
	</item>
</channel>
</rss>
