<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>[LINICKX].com &#187; plugins</title>
	<atom:link href="http://www.linickx.com/tag/plugins/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linickx.com</link>
	<description>Moments of Genius followed by Trash.</description>
	<lastBuildDate>Thu, 17 May 2012 10:23:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>phpbb_recent_topics version 0.5</title>
		<link>http://www.linickx.com/713/phpbb_recent_topics-version-0-5</link>
		<comments>http://www.linickx.com/713/phpbb_recent_topics-version-0-5#comments</comments>
		<pubDate>Tue, 18 Aug 2009 09:59:28 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[phpbb_recent_topics]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=713</guid>
		<description><![CDATA[UPDATE: This Plugin has been updated, please download the update from http://wordpress.org/extend/plugins/phpbb-recent-topics/, and please comment on the new post, thanks. Admin GUI Version 0.5 is the first enhancement update to php_recent_topics for a looooooonnnng while! Actually it&#8217;s taken me soo &#8230; <a href="http://www.linickx.com/713/phpbb_recent_topics-version-0-5">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="border: 2px dotted #ff0000; padding: 0.5em;  text-align: center"> <strong>UPDATE</strong>: This Plugin has been updated, please download the update from <a href="http://wordpress.org/extend/plugins/phpbb-recent-topics/">http://wordpress.org/extend/plugins/phpbb-recent-topics/</a>, and please <a href="http://www.linickx.com/archives/2998/phpbb_recent_topics-version-0-6">comment on the new post</a>, <em>thanks</em>.</p>
<div style="float: right">
<table>
<tr>
<td>
<div id="attachment_1935" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.linickx.com/files/2009/08/phpbb_recent_topix_v05x.png" rel="lightbox[713]"><img src="http://www.linickx.com/files/2009/08/phpbb_recent_topix_v05x-150x150.png" alt="Screenshot phpbb_recent_topics admin page" title="Screenshot phpbb_recent_topics admin page" width="150" height="150" class="size-thumbnail wp-image-1935" /></a><p class="wp-caption-text">Screenshot phpbb_recent_topics admin page</p></div>
</td>
</tr>
<tr>
<td align="center">Admin GUI</td>
</tr>
</table>
</div>
<p>Version 0.5 is the first enhancement update to php_recent_topics for a looooooonnnng while! </p>
<p>Actually it&#8217;s taken me soo long to finish that we&#8217;ve jumping straight into <del datetime="2009-08-21T17:27:22+00:00">0.5.2</del> <a href="http://www.linickx.com/archives/1962/phpbb_recent_topics_0-5-3">0.5.3</a> which includes bug fixes from 0.4.1 &#038; 0.4.2</p>
<p>There are four notable changes, two minor, two major <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Minor CHANGE 1: You should notice the admin page don&#8217;t look so rubbish, we&#8217;re now using the new CSS provided by the WordPress team!</p>
<p>Minor CHANGE 2: The SQL syntax now excludes SPAM from being shown up in the wigdet by only selecting &#8220;Approved&#8221; posts, thanks <a href="http://www.microstrategy101.com/">Ashish</a>.</p>
<p>Major CHANGE 1: The admin page now has the option for excluding forums from being displayed by the widget, this was one of the most requested features but please be advised this change means there are <strong>New database permissions required for upgraders</strong>!<br />
Before you did <code>GRANT SELECT ON phpbb_database.phpbb_topics TO wp_user@localhost;</code> NOW DO THIS TOO&#8230;.</p>
<p><code>GRANT SELECT ON phpbb_database.phpbb_forums TO wp_user@localhost;</code></p>
<p>Major CHANGE 2: The plugin now supports &#8220;Insecure&#8221; Database connectivity, getting the plugin to talk to the PHPBB DB seemed to be the biggest hurdle for most, so I&#8217;ve added a simpler way to keep my SPAM down. This approach is <strong>not recommended</strong> as the plug-in stores your PHPBB DB credentials IN CLEAR TEXT in the WordPress database. As a side effect from this is, now users can connect to a PHPBB database installed on a different server to WordPress &#8211; This suggestion actually came from someone called Nedim.. Thanks!</p>
<p>Some of the usual information now follows&#8230;.</p>
<p><strong><a href="http://wordpress.org/extend/plugins/phpbb-recent-topics/">Download phpBB_Recent_Topics_0.5.2 from wordpress.org</a></strong></p>
<p><strong>The Installation</strong></p>
<p><u>Before starting</u> you need to get your database configuration sorted. So, are you going to connect to the PHPBB Database securely or Insecurely?</p>
<p>To connect Securely you need to GRANT access TO WordPress FROM phpbb.</p>
<p><strong>How to GRANT wordpress read only access to phpBB ?</strong><br />
If you don&#8217;t know it already you need to find your wordpress mysql user id, it&#8217;ll be in wp-config.php</p>
<pre>define('DB_USER', 'wp_user');     // Your MySQL username</pre>
<p>and you should have already found your phpbb database &amp; table for the above.<br />
You need to type the following syntax into your mysql database</p>
<pre>GRANT SELECT ON phpbb_database.phpbb_topics TO wp_user@localhost;</pre>
<p><strong>AND</strong></p>
<pre>GRANT SELECT ON phpbb_database.phpbb_forums TO wp_user@localhost;</pre>
<p>this can be achieved by logging into <a href="http://www.phpmyadmin.net">phpmyadmin</a> as your phpbb user, selecting SQL and pasting the correct GRANT into the text box.</p>
<p><strong>WordPress Installation</strong></p>
<ul>
<li>Unzip phpbb_recent_topics.tgz in your `/wp-content/plugins/` directory. (<em>You&#8217;ll have a new directory, with this plugin in /wp-content/plugins/phpbb_recent_topics</em>)</li>
<li>Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress</li>
<li>Configure the plugin, you need to tell wordpress about phpbb, this is done in the wordpress menu &#8216;Settings&#8217; -&gt; &#8216;phpBB Recent Topics&#8217;<br />
The following Settings are required:</p>
<ul>
<li>* The name of your phpBB database (<em>e.g phpbb</em>)</li>
<li>* The name of the table where topics are held (<strong>the default is </strong><strong>phpbb_topics</strong> )</li>
<li>* The full url of your forum for links (<em>e.g. http://www.mydomain.com/forum</em>)</li>
<li>* The number of topics to show. (<em>If left blank you get 5</em>)</li>
<li>* The Date Formatting, i.e. &#8220;d/M/y &#8211; g:i a&#8221; similar to the WordPress &#8220;General Settings&#8221; </li>
</ul>
</li>
<li>The use of Insecure connectivity is optional &#8211; See Below</li>
<li>Tick the boxes of any Forums you don&#8217;t want this plugin to show posts from</li>
<li>Hit &#8216;Update Options&#8221;</li>
<li>To output the list of topics in a page or post&#8230;
<ul>
<li>* create a new page/post, type {phpbb_recent_topics} , hit &#8216;Publish&#8217; or &#8216;Create new page&#8217;</li>
</ul>
<p>To output the list of topics in your theme sidebar using the widget&#8230;</p>
<ul>
<li> * click &#8220;design&#8221; in the dashboard</li>
<li> * click &#8220;widgets&#8221;</li>
<li> * next to  <strong>phpBB Recent Topics click</strong> &#8220;add&#8221;</li>
<li> * click &#8220;save changes&#8221;</li>
</ul>
<p>To output the list of topics in your theme sidebar using a template tag&#8230;</p>
<ul>
<li>* edit sidebar.php and inside &lt;div id=&#8221;sidebar&#8221;&gt; type&#8230;
<pre>&lt;?php
if (function_exists('phpbb_topics')) {
phpbb_topics();
}
?&gt;</pre>
</li>
</ul>
</li>
</ul>
<p><strong>What is Insecure MySQL Connectivity &#038; How do I use it?</strong><br />
If you need to you can connect in a less secure manner, the connection details held in your PHPBB config.php can be loaded into WordPress. This is insecure becuase the phpbb3 credentials are store in clear text, this is bad cuase if someone somehow comprised WordPress they&#8217;d have full access to PHPBB.</p>
<p>To use, tick the &#8220;Enable Insecure Database Connection&#8221; box, and submit, when the page re-freshes you&#8217;ll have some more boxes to populate, from your phpbb config.php fill in</p>
<p><code><br />
$dbuser = phpbb MySQL Database UserName<br />
$dbpasswd = phpbb MySQL Database Password<br />
$dbhost = phpbb MySQL Server<br />
</code></p>
<p>Click update, and you should be connected!</p>
<p><strong>Support</strong><br />
I&#8217;ve always been honest about <u>support, there isn&#8217;t any</u>. Basically I write this for my own needs and then publish it for you to use for free. You&#8217;re more than welcome to post comments here and if you tag <a href="http://wordpress.org/tags/phpbb-recent-topics">wordpress forum posts</a> with &#8220;phpbb-recent-topics&#8221; I&#8217;ll reply to you there, but we all have busy lives and I make no promises on how quickly I&#8217;ll reply to you.</p>
<p>Link for posting in the correct <a href="http://wordpress.org/tags/phpbb-recent-topics?forum_id=10#postform">phpbb-recent-topics forum</a></p>
<p><strong>Finally Subversion</strong><br />
The source for this plugin is in the wordpress subversion, you can download it directly from <a href="http://svn.wp-plugins.org/phpbb-recent-topics/">here</a>; and when wordpress.org re-crawls my readme the latest version will also be available on <a href="http://wordpress.org/extend/plugins/">wordpress.org/extend/plugins/</a> </p>
<p>I hope you enjoy my plug-in!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/713/phpbb_recent_topics-version-0-5/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>phpbb_recent_topics version 0.4.1</title>
		<link>http://www.linickx.com/682/phpbb_recent_topics-version-041</link>
		<comments>http://www.linickx.com/682/phpbb_recent_topics-version-041#comments</comments>
		<pubDate>Mon, 01 Dec 2008 11:23:04 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[phpBB]]></category>
		<category><![CDATA[phpbb_recent_topics]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=682</guid>
		<description><![CDATA[UPDATE: This Plugin has been updated, please download the update from http://wordpress.org/extend/plugins/phpbb-recent-topics/, and please comment on the new post, thanks. This is a small update, it incorporates the patch submitted by toni to fix the widget, thanks toni The old &#8230; <a href="http://www.linickx.com/682/phpbb_recent_topics-version-041">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="border: 2px dotted #ff0000; padding: 0.5em;  text-align: center"> <strong>UPDATE</strong>: This Plugin has been updated, please download the update from <a href="http://wordpress.org/extend/plugins/phpbb-recent-topics/">http://wordpress.org/extend/plugins/phpbb-recent-topics/</a>, and please <a href="http://www.linickx.com/archives/1775/phpbb_recent_topics-fixed-for-2-8-3">comment on the new post</a>, <em>thanks</em>.</p>
<p>This is a small update, it incorporates the <a href="http://toni.uebernickel.info/entwicklung/wordpress/phpbb-recent-topics-widget/">patch submitted by toni to fix the widget</a>, thanks toni <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The old information still applies&#8230;</p>
<div style="float: right">
<table>
<tr>
<td>
<a href='http://www.linickx.com/files/2008/05/phpbb_recent_topics_screenshot_v4.png' rel="lightbox[682]"><img src="http://www.linickx.com/files/2008/05/phpbb_recent_topics_screenshot_v4-150x150.png" alt="phpBB Recent Topics Admin interface in WordPress" title="phpbb recent topics screenshot v4" width="150" height="150" class="alignnone size-thumbnail wp-image-414" /></a></td>
</tr>
<tr>
<td align="center">Admin GUI</td>
</tr>
</table>
</div>
<p><strong>If you&#8217;re happy with v0.4 and have it running fine then don&#8217;t bother</strong>, in fact edit <code>phpbb_recent_topics.php</code> so that WordPress stops complaining about finding a newer version.</p>
<p><strong><a href="http://wordpress.org/extend/plugins/phpbb-recent-topics/">Download phpBB_Recent_Topics_0.4.1 from wordpress.org</a></strong></p>
<p><strong>What&#8217;s New?</strong></p>
<ul>
<li> The widget patch mentioned above! </li>
</ul>
<p><strong>What&#8217;s Old? </strong> </p>
<ul>
<li>Most importantly I have tested this plugin with phpBB3 and WP2.5 so I&#8217;ve updated the readme.txt to reflect this.</li>
<li> I finally quashed the install bug where by phpbb-recent-topics was confused with phpbb_recent_topics.</li>
<li>Sidebar Widget, yus for all you non-php people you have a widget to play with.</li>
<li>Edit the Time &#038; Date layout &#8211; leave blank to remove it completely</li>
</ul>
<p><strong>The Installation</strong></p>
<ul>
<li>Unzip phpbb_recent_topics.tgz in your `/wp-content/plugins/` directory. (<em>You&#8217;ll have a new directory, with this plugin in /wp-content/plugins/phpbb_recent_topics</em>)</li>
<li>Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress</li>
<li>Configure the plugin, you need to tell wordpress about phpbb, this is done in the wordpress menu &#8216;Settings&#8217; -&gt; &#8216;phpBB Recent Topics&#8217;<br />
The following Settings are required:</p>
<ul>
<li>* The name of your phpBB database (<em>e.g phpbb</em>)</li>
<li>* The name of the table where topics are held (<strong>the default is </strong><strong>phpbb_topics</strong> )</li>
<li>* The full url of your forum for links (<em>e.g. http://www.mydomain.com/forum</em>)</li>
<li>* The number of topics to show. (<em>If left blank you get 5</em>)</li>
<li>* The Date Formatting, i.e. &#8220;d/M/y &#8211; g:i a&#8221; similar to the WordPress &#8220;General Settings&#8221; </li>
</ul>
</li>
<li>Hit &#8216;Update Options&#8221;</li>
<li>To output the list of topics in a page or post&#8230;
<ul>
<li>* create a new page/post, type {phpbb_recent_topics} , hit &#8216;Publish&#8217; or &#8216;Create new page&#8217;</li>
</ul>
<p>To output the list of topics in your theme sidebar using the widget&#8230;</p>
<ul>
<li> * click &#8220;design&#8221; in the dashboard</li>
<li> * click &#8220;widgets&#8221;</li>
<li> * next to  <strong>phpBB Recent Topics click</strong> &#8220;add&#8221;</li>
<li> * click &#8220;save changes&#8221;</li>
</ul>
<p>To output the list of topics in your theme sidebar using a template tag&#8230;</p>
<ul>
<li>* edit sidebar.php and inside &lt;div id=&#8221;sidebar&#8221;&gt; type&#8230;
<pre>&lt;?php
if (function_exists('phpbb_topics')) {
phpbb_topics();
}
?&gt;</pre>
</li>
</ul>
</li>
</ul>
<p><strong>A bit about Database configuration.</strong><br />
If wordpress &amp; phpBB share a DB already then set $PHPBBDB to DB_NAME and everything will be fine, else you&#8217;re going to need to GRANT the wordpress user read access to phpBB.</p>
<p><strong>How to GRANT wordpress read only access to phpBB ?</strong><br />
If you don&#8217;t know it already you need to find your wordpress mysql user id, it&#8217;ll be in wp-config.php</p>
<pre>define('DB_USER', 'wp_user');     // Your MySQL username</pre>
<p>and you should have already found your phpbb database &amp; table for the above.<br />
You need to type the following syntax into your mysql database</p>
<pre>GRANT SELECT ON phpbb_database.phpbb_topics TO wp_user@localhost;</pre>
<p>this can be achieved by logging into <a href="http://www.phpmyadmin.net">phpmyadmin</a> as your phpbb user, selecting SQL and pasting the correct GRANT into the text box.</p>
<p><strong>Frequently Asked Questions</strong></p>
<ul>
<li> Is phpbb3 supported?
<ul>
<li>yes.</li>
</ul>
</li>
<li>Can I output 10 Topics in my Page, and 3 Topics in my Sidebar ?
<ul>
<li>Yes ! In the WordPress menu &#8216;Options&#8217; -&gt; &#8216;phpBB Recent Topics&#8217;, set &#8216;The number of topics to show&#8217; to 10, and then in your sidebar include&#8230;&lt;?php<br />
if (function_exists(&#8216;phpbb_topics&#8217;)) {<br />
phpbb_topics(3);<br />
}<br />
?&gt;</li>
</ul>
</li>
<li>Can I exclude a certain forum from the list ?
<ul>
<li> In this version, the only way to do that is to hack /wp-content/plugins/phpbb_recent_topics/display/display.php, change
<pre>$results = $wpdb-&gt;get_results("SELECT * FROM $TOPIC_TABLE ORDER BY topic_time DESC LIMIT $LIMIT");</pre>
<p>to</p>
<pre>$results = $wpdb-&gt;get_results("SELECT * FROM $TOPIC_TABLE WHERE forum_id != 1 ORDER BY topic_time DESC LIMIT $LIMIT");</pre>
<p>to exclude forum 1 from the list. I plan to setup a proper solution to this in the next version.</li>
</ul>
</li>
<li>Why is the date config under settings not in the widget configuration?
<ul>
<li>The date settings effect both the template tag and the widget <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
</li>
</ul>
<p><strong>Support</strong><br />
I&#8217;ve always been honest about <u>support, there isn&#8217;t any</u>. Basically I write this for my own needs and then publish it for you to use for free. You&#8217;re more than welcome to post comments here and if you tag <a href="http://wordpress.org/tags/phpbb-recent-topics">wordpress forum posts</a> with &#8220;phpbb-recent-topics&#8221; I&#8217;ll reply to you there, but we all have busy lives and I make no promises on how quickly I&#8217;ll reply to you.</p>
<p>Link for posting in the correct <a href="http://wordpress.org/tags/phpbb-recent-topics?forum_id=10#postform">phpbb-recent-topics forum</a></p>
<p><strong>Finally Subversion</strong><br />
You also might be interested to know that I&#8217;ve been getting to grips with the wordpress plug-ins svn, so you can get work directly from <a href="http://svn.wp-plugins.org/phpbb-recent-topics/">here</a>; and when wordpress.org re-crawls my readme the latest version will also be available on <a href="http://wordpress.org/extend/plugins/">wordpress.org/extend/plugins/</a> <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' /> </p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/682/phpbb_recent_topics-version-041/feed</wfw:commentRss>
		<slash:comments>37</slash:comments>
		</item>
		<item>
		<title>Missing argument 1 for phpbb_topics()</title>
		<link>http://www.linickx.com/454/missing-argument-1-for-phpbb_topics</link>
		<comments>http://www.linickx.com/454/missing-argument-1-for-phpbb_topics#comments</comments>
		<pubDate>Thu, 17 Jul 2008 09:22:33 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpBB]]></category>
		<category><![CDATA[phpbb_recent_topics]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=454</guid>
		<description><![CDATA[I thought I&#8217;d write a post about this error message as it&#8217;s pretty much the main reason that I ever receive comments or e-mails from the WordPress community. Sadly the complaints I receive from the community out weigh the complements, &#8230; <a href="http://www.linickx.com/454/missing-argument-1-for-phpbb_topics">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I thought I&#8217;d write a post about this error message as it&#8217;s pretty much the main reason that I ever receive comments or e-mails from the WordPress community. Sadly the complaints I receive from the community out weigh the complements, but I guess that&#8217;s life <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><u>Thank you to all those who have downloaded and enjoyed my plug-in and all those who have taken to say something nice.</u></p>
<p>The problem with this error message <code>Missing argument 1 for phpbb_topics()</code> is that I don&#8217;t actually know how to fix it. If you <a href="http://svn.wp-plugins.org/phpbb-recent-topics/trunk/display/display.php">look in the source code</a> you&#8217;ll see that I&#8217;ve tried to trap &#8220;empty variables&#8221;&#8230;</p>
<pre>
if (is_null($LIMIT)) {
                $LIMIT = 5;
}
</pre>
<p>Now this approach seems to work on my server(<em>s</em>), and works for some people, but there are a number of people whom is doesn&#8217;t work for; unfortunately the majority of the WP community are no more technical than myself and I have never received any feedback on how to fix this.</p>
<p>I&#8217;m not a programmer, I&#8217;ve never claimed to be a PHP guru; as I don&#8217;t know how to fix this problem in the latest version of <a href="http://wordpress.org/extend/plugins/phpbb-recent-topics/">phpbb-recent-topics</a> I tried to combat the problem by introducing a widget. The widget it aimed at people who don&#8217;t know php, it allows you to &#8220;drag&#8221; the list of recent topics into your sidebar, but for some reason people still prefer to edit their sidebar.php :confused: </p>
<p>I would to remind all readers that it quite clearly states on <a href="http://www.linickx.com/archives/392/recent-phpbb-topics-on-wordpress-plugin-v04#comments">my announcement </a>:</p>
<blockquote><p><strong>Support</strong><br />
I’ve always been honest about support, there isn’t any. Basically I write this for my own needs and then publish it for you to use for free. You’re more than welcome to post comments here and if you <a href="http://wordpress.org/tags/phpbb-recent-topics?forum_id=10#postform">tag wordpress forum posts with “phpbb-recent-topics” I’ll reply to you there</a>, but we all have busy lives and I make no promises on how quickly I’ll reply to you.</p></blockquote>
<p>Currently the only solution I can offer to anyone suffering from this error message is to replace <code>phpbb_topics() </code>with <code>phpbb_topics(”5″)</code>, if that doesn&#8217;t work then please accept my apologies.</p>
<p>If anyone would like to offer a patch for my plugin I would gladly include it and accredit appropriately.</p>
<p>Thanks for Reading!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/454/missing-argument-1-for-phpbb_topics/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Recent phpBB Topics on WordPress Plugin v0.4</title>
		<link>http://www.linickx.com/392/recent-phpbb-topics-on-wordpress-plugin-v04</link>
		<comments>http://www.linickx.com/392/recent-phpbb-topics-on-wordpress-plugin-v04#comments</comments>
		<pubDate>Thu, 10 Apr 2008 19:03:53 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[phpBB]]></category>
		<category><![CDATA[phpbb_recent_topics]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://www.linickx.com/archives/392/recent-phpbb-topics-on-wordpress-plugin-v04</guid>
		<description><![CDATA[UPDATE: This Plugin has been updated, please download the update from http://wordpress.org/extend/plugins/phpbb-recent-topics/, and please comment on the new post, thanks. Admin GUI It&#8217;s been a year since the last release so perhaps this version should be called &#8220;about time!&#8221; v0.4 &#8230; <a href="http://www.linickx.com/392/recent-phpbb-topics-on-wordpress-plugin-v04">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="border: 2px dotted #ff0000; padding: 0.5em;  text-align: center"> <strong>UPDATE</strong>: This Plugin has been updated, please download the update from <a href="http://wordpress.org/extend/plugins/phpbb-recent-topics/">http://wordpress.org/extend/plugins/phpbb-recent-topics/</a>, and please <a href="http://www.linickx.com/archives/682/phpbb_recent_topics-version-041">comment on the new post</a>, <em>thanks</em>.</p>
<div style="float: right">
<table>
<tr>
<td>
<a href='http://www.linickx.com/files/2008/05/phpbb_recent_topics_screenshot_v4.png' rel="lightbox[392]"><img src="http://www.linickx.com/files/2008/05/phpbb_recent_topics_screenshot_v4-150x150.png" alt="phpBB Recent Topics Admin interface in WordPress" title="phpbb recent topics screenshot v4" width="150" height="150" class="alignnone size-thumbnail wp-image-414" /></a></td>
</tr>
<tr>
<td align="center">Admin GUI</td>
</tr>
</table>
</div>
<p>It&#8217;s been a year since the last release so perhaps this version should be called &#8220;about time!&#8221; v0.4 has primarily been released as a bugfix version, i<strong>f you&#8217;re happy with v0.3 and have it running fine then don&#8217;t bother</strong>, in fact edit <code>phpbb_recent_topics.php</code> so that WordPress stops complaining about finding a newer version.</p>
<p><strong><a href="http://wordpress.org/extend/plugins/phpbb-recent-topics/">Download phpBB_Recent_Topics_0.4 from wordpress.org</a></strong></p>
<p><strong>What&#8217;s New?</strong></p>
<ul>
<li>Most importantly I have tested this plugin with phpBB3 and WP2.5 so I&#8217;ve updated the readme.txt to reflect this.</li>
<li> I finally quashed the install bug where by phpbb-recent-topics was confused with phpbb_recent_topics.</li>
<li>Sidebar Widget, yus for all you non-php people you have a widget to play with.</li>
<li>Edit the Time &#038; Date layout &#8211; leave blank to remove it completely</li>
</ul>
<p><strong>What&#8217;s Old? &#8211; aka: Installation</strong></p>
<ul>
<li>Unzip phpbb_recent_topics.tgz in your `/wp-content/plugins/` directory. (<em>You&#8217;ll have a new directory, with this plugin in /wp-content/plugins/phpbb_recent_topics</em>)</li>
<li>Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress</li>
<li>Configure the plugin, you need to tell wordpress about phpbb, this is done in the wordpress menu &#8216;Settings&#8217; -&gt; &#8216;phpBB Recent Topics&#8217;<br />
The following Settings are required:</p>
<ul>
<li>* The name of your phpBB database (<em>e.g phpbb</em>)</li>
<li>* The name of the table where topics are held (<strong>the default is </strong><strong>phpbb_topics</strong> )</li>
<li>* The full url of your forum for links (<em>e.g. http://www.mydomain.com/forum</em>)</li>
<li>* The number of topics to show. (<em>If left blank you get 5</em>)</li>
<li>* The Date Formatting, i.e. &#8220;d/M/y &#8211; g:i a&#8221; similar to the WordPress &#8220;General Settings&#8221; </li>
</ul>
</li>
<li>Hit &#8216;Update Options&#8221;</li>
<li>To output the list of topics in a page or post&#8230;
<ul>
<li>* create a new page/post, type {phpbb_recent_topics} , hit &#8216;Publish&#8217; or &#8216;Create new page&#8217;</li>
</ul>
<p>To output the list of topics in your theme sidebar using the widget&#8230;</p>
<ul>
<li> * click &#8220;design&#8221; in the dashboard</li>
<li> * click &#8220;widgets&#8221;</li>
<li> * next to  <strong>phpBB Recent Topics click</strong> &#8220;add&#8221;</li>
<li> * click &#8220;save changes&#8221;</li>
</ul>
<p>To output the list of topics in your theme sidebar using a template tag&#8230;</p>
<ul>
<li>* edit sidebar.php and inside &lt;div id=&#8221;sidebar&#8221;&gt; type&#8230;
<pre>&lt;?php
if (function_exists('phpbb_topics')) {
phpbb_topics();
}
?&gt;</pre>
</li>
</ul>
</li>
</ul>
<p><strong>A bit about Database configuration.</strong><br />
If wordpress &amp; phpBB share a DB already then set $PHPBBDB to DB_NAME and everything will be fine, else you&#8217;re going to need to GRANT the wordpress user read access to phpBB.</p>
<p><strong>How to GRANT wordpress read only access to phpBB ?</strong><br />
If you don&#8217;t know it already you need to find your wordpress mysql user id, it&#8217;ll be in wp-config.php</p>
<pre>define('DB_USER', 'wp_user');     // Your MySQL username</pre>
<p>and you should have already found your phpbb database &amp; table for the above.<br />
You need to type the following syntax into your mysql database</p>
<pre>GRANT SELECT ON phpbb_database.phpbb_topics TO wp_user@localhost;</pre>
<p>this can be achieved by logging into <a href="http://www.phpmyadmin.net">phpmyadmin</a> as your phpbb user, selecting SQL and pasting the correct GRANT into the text box.</p>
<p><strong>Frequently Asked Questions</strong></p>
<ul>
<li> Is phpbb3 supported?
<ul>
<li>yes.</li>
</ul>
</li>
<li>Can I output 10 Topics in my Page, and 3 Topics in my Sidebar ?
<ul>
<li>Yes ! In the WordPress menu &#8216;Options&#8217; -&gt; &#8216;phpBB Recent Topics&#8217;, set &#8216;The number of topics to show&#8217; to 10, and then in your sidebar include&#8230;&lt;?php<br />
if (function_exists(&#8216;phpbb_topics&#8217;)) {<br />
phpbb_topics(3);<br />
}<br />
?&gt;</li>
</ul>
</li>
<li>Can I exclude a certain forum from the list ?
<ul>
<li> In this version, the only way to do that is to hack /wp-content/plugins/phpbb_recent_topics/display/display.php, change
<pre>$results = $wpdb-&gt;get_results("SELECT * FROM $TOPIC_TABLE ORDER BY topic_time DESC LIMIT $LIMIT");</pre>
<p>to</p>
<pre>$results = $wpdb-&gt;get_results("SELECT * FROM $TOPIC_TABLE WHERE forum_id != 1 ORDER BY topic_time DESC LIMIT $LIMIT");</pre>
<p>to exclude forum 1 from the list. I plan to setup a proper solution to this in the next version.</li>
</ul>
</li>
<li>Why is the date config under settings not in the widget configuration?
<ul>
<li>The date settings effect both the template tag and the widget <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
</li>
</ul>
<p><strong>Support</strong><br />
I&#8217;ve always been honest about <u>support, there isn&#8217;t any</u>. Basically I write this for my own needs and then publish it for you to use for free. You&#8217;re more than welcome to post comments here and if you tag <a href="http://wordpress.org/tags/phpbb-recent-topics">wordpress forum posts</a> with &#8220;phpbb-recent-topics&#8221; I&#8217;ll reply to you there, but we all have busy lives and I make no promises on how quickly I&#8217;ll reply to you.</p>
<p><strong>EDIT</strong>: Found a link for posting in the correct <a href="http://wordpress.org/tags/phpbb-recent-topics?forum_id=10#postform">phpbb-recent-topics forum</a></p>
<p><strong>Finally Subversion</strong><br />
You also might be interested to know that I&#8217;ve been getting to grips with the wordpress plug-ins svn, so you can get work directly from <a href="http://svn.wp-plugins.org/phpbb-recent-topics/">here</a>; and when wordpress.org re-crawls my readme the latest version will also be available on <a href="http://wordpress.org/extend/plugins/">wordpress.org/extend/plugins/</a> <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' /> </p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/392/recent-phpbb-topics-on-wordpress-plugin-v04/feed</wfw:commentRss>
		<slash:comments>48</slash:comments>
		</item>
	</channel>
</rss>

