WordPress Phpbb Last Topics Plugin
2003 giorni faI created a plugin to display the most recent topics of your phpBB forum.
You can set the number of topics to display, wrap long words or exclude a category of the forum.
Just download the plugin, unpack it into your wordpress plugins-folder and activate it, then edit it to set:
$host = “http://www.yourblog.com/phpbb”;
$forum_path = “phpbb”;
Then activate it and insert this short code where you want to show the last topics.
<?php if (function_exists(‘wpphpbb_topics’)): ?>
<? wpphpbb_topics(); ?>
<?php endif; ?>
[...] I’ve found a solution for including the recent posts to the forum on the site, the website for the plugin is http://www.4mj.it/wordpress-phpbb-last-topics-plugin/ [...]
jzn:
I get this:
Warning: Cannot modify header information – headers already sent by (output started at /apache/www.psycholoog.net/www/wordpress/wp-content/plugins/wp-phpbb.php:48) in /apache/www.psycholoog.net/www/wordpress/wp-includes/pluggable-functions.php on line 272
Does anyone know a solution???
Thanks
Link me your site, http://www.psychogoloog.net/ is wrong.
Have you edit the plugin settings?
For example my site settings are
$forum_path = “forum”;
$host = “http://www.4mj.it/forum”;
$prefix = “phpbb_”;
Kratoss:
When I insert in sidebar.php I see correctly the last messages of my phpbb forum, but I receive this error in Categories:
Warning: Invalid argument supplied for foreach() in C:\AppServ\www\wordpress\wp-includes\template-functions-category.php on line 321
No hay categorías.
If I comment , this error disappear.
What can I do?
Link me your site.
Kratoss:
It’s in localhost.
Do you have any categories?
Do you have any posts?
The problem isn’t the plugin.
Kratoss:
I have 3 categories in wordpress and 10 or 11 posts in phpbb.
Any idea?
Kratoss:
I know that the problem isn’t the plugin, I’ll try to fix it.
Thx
max:
Great work!
Meredith:
Hi. Love the plugin.
Im wondering how it would be possible to show my latest forum posts in a list, like you have done on your site? Right now, there are no breaks between each link and it all runs together.
Thanks for any advice.
Meredith:
Found a solution to my question…..
added li tags around this last bit of code —>
a href=\”$host”.”/viewtopic.php?t=$resultsow[topic_id]\”>$topics_title…
thanks for the plugin! works great!
I have a problem with your plugin. Others have mentioned that after the plugin is installed that the sidebar lists don’t appear (Blogroll, categories, and other links), and I have noticed the same thing AFTER activating your plugin through the WP admin control panel.
It also has the effect of not redirecting to forms after submitting them in the ACP. As soon as I disable the plugin everything goes back to normal.
alex:
the plugin is very pretty easy to install and works fine …but i need to expand it ! can you give me a solution to show the usernames to ??? like
lastpost(link)
by: username
lastpost(link)
by: username
lastpost(link)
by: username
thanx !!!
ok ,now i work to it!
[...] 插件页面: 点击进入 [...]
Come posso escludere alcune categorie del forum?
Apri con un editor il plugin, dentro
There is a bug in the plug-in. It closes the connection to the database in the last string of code. So if you put the plug-in in the page source before posts, you’ll get a error message telling you that wordpress can’t get the posts from the database. Because the connection is closed by the plug-in.
Not a big problem. And the plug-in works GREAT! You can see it in action in the sidebar of my blog:
http://www.tjodalf.no
How do you get around the database connection closure??
You just remove the last string of the plug-in. You should right away be able to see what string that has to be removed. It is not difficult at all. Just use the “try and error” method.
Hi! Enbody know how to get some other-languages special characers like polish? I’ve got wp and phpbb in polish, but names of post are not correct? In special-characters places this plugin display me some “?”
Looking for some doorway scripts but dont know what is good. I came across TrafficboosterPro and TrafficHurricane.
Has anyone tried these programs or could tell me about any better ones?
Nice plugin, but had to later it a little bit :
LINE35 : original# $phpbbq = “SELECT * FROM “.$prefix.”topics WHERE forum_id !=’1′ ORDER BY topic_last_post_id DESC LIMIT 0,10″;
LINE35 : new# $phpbbq = “SELECT * FROM “.$prefix.”topics WHERE forum_id !=’7′ ORDER BY topic_last_post_id DESC LIMIT 0,5″;
by default, you exclude forum_id 1 and you tell in your manual to add “AND forum_id !=’2′” , that would exclude two forum_id’s
LINE 46 : original# mysql_close($connection);
LINE 46 : new# //mysql_close($connection);
WordPress 2.0.5 doesn’t like closed connections b4 all database queries are handled, so i commented the line out
and last thing (but that’s more for formatting reasons)
LINE44 : original# $topics_title…“;
LINE44 : new# $topics_title…“;
that’s just simply to fit better into the Sidebar layout from wordpress
and a little workaround, if for some reason, the plugin gets deactivated :
sidebar.php
original#
new#
… some formatting …
… more formatting …
ah crap, my formatting has been killed ![]()
again the last two suggestions :
—————————–
and last thing (but that’s more for formatting reasons)
LINE44 : original# <a href=\”$host”.”/viewtopic.php?t=$resultsow[topic_id]\”>$topics_title…</a>”;
LINE44 : new# <li><a href=\”$host”.”/viewtopic.php?t=$resultsow[topic_id]\”>$topics_title…</a></li>”;
that’s just simply to fit better into the Sidebar layout from wordpress
and a little workaround, if for some reason, the plugin gets deactivated :
sidebar.php
original# <?php wpphpbb_topics(); ?>
new#
… some formatting …
<?php wpphpbb_topics(); ?>
… more formatting …
<?php endif; ?>
————-
hope it works this time
sidebar.php again *narf*
# add before “… some formatting …” #
<?php if (function_exists(‘wpphpbb_topics’)) : ?>
that’s all, merry christmas to you all
Help! What have I done wrong? I keep getting errors in my side bar? Have I not configured the addresses in the code right?
Thanks
You have the forum on a subdomain, try to copy your config.php(of the forum) where u have the wp, and set $forum_path with the path of the config.php.
Peppe, thanks for the answer, but it didn’t work. WP is on a subdomain as well. I did like you said and pointed everything to the correct path, but I am still recieving mysql errors for trying to connect.
I think it is my blasted server. I’ve had trouble with phpfetchall in the past too. Any other ideas?
Thanks
Ok try this, copy from your config.php of the forum:
**********************************
$table_prefix = ‘phpbb_’;
$dbhost = ‘*****’;
$dbname = ‘*****’;
$dbuser = ‘*****’;
$dbpasswd = ‘*****’;
**********************************
so the plugin will
**********************************
function wpphpbb_topics() {
// set forum path, forum host and phpbb table prefix
$prefix = “phpbb_”;
$dbhost = ‘*****’;
$dbname = ‘*****’;
$dbuser = ‘*****’;
$dbpasswd = ‘*****’;
$connection = mysql_connect($dbhost, $dbuser, $dbpasswd);
$s_db = mysql_select_db($dbname, $connection);
**********************************
Thanks for that. I was close to doing that myself, but wasn’t sure it would work. It Did!
I did make one change though–I kept the $host in because it’s called later in the script.
Now I just need to impliment some code to clean up the output for my sidebar and I’m there.
Thanks so much!
I updated the plugin to 1.1!
[...] Io uso questo e funziona (
pico:
ciao peppe
mi pare di aver capito che per installare il tuo plugin devo configurare il file wp-phpbb.php come segue:
$host = “http://www.miosito.it/forum;
$forum_path = forum;
poi dopo aver attivato il plugin devo inserire il seguente codice ad esempio nella side bar
Ciao, si funziona anche con wp 2.1, lo puoi vedere in funzione in home.
pico:
al momento non sono ancora riuscito a farlo funzionare.
ho provato anche ad usare:
function wpphpbb_topics() {
// set forum path, forum host and phpbb table prefix
$prefix = “phpbb_”;
$dbhost = ‘69.69.69.69’;
$dbname = ‘Sql123456_1’;
$dbuser = ‘Sql123456’;
$dbpasswd = ‘123456’;
$connection = mysql_connect($dbhost, $dbuser, $dbpasswd);
$s_db = mysql_select_db($dbname, $connection);
invece di:
function wpphpbb_topics() {
//set forum path, forum host
$forum_path = “forum”;
$host = “http://www.miosito.it/forum”;
include(“”.$forum_path.”/config.php”);
$connection = mysql_connect($dbhost, $dbuser, $dbpasswd);
$s_db = mysql_select_db($dbname, $connection);
ma nulla da fare!! poi nel file “sidebar.php” del tema utilizzato ho inserito il link nel seguente modo:
Ultime dal forum
invece degli ultimi topics viene solo visualizzata una stringa di codice come indicato nel link qui sotto
http://www.topico.it/varie/wp_phpbb.png
probabilmente sbaglio qualcosa ma non so dove
Quel codice va inserito nel file sidebar.php, non come testo.
pico:
cos
Devo presumere che ora funzioni! Ciao
DZGB:
hi.. i have problems using this plugin. what to do if my forum is on this type of url: forum.my-site.com?
How should the code look like then?
Because I get only this text in sidebar:
DZGB:
anyone?
It’s great. Thank you.
ciao peppe, come vedi sono spesso dalle tue parti.
Sono alla prima esperienza di installazione forum per il mio blog. Vista la tua esperienza phpbb ritieni sia integrabile con wordpress?? Ovviamente anche grazie al tuo plugin. Insomma me lo consigli??
grazie
paolo
Ciao, giusto ieri http://www.phpbb.com/ ha aggiornato il propio sito con la nuova versione del forum ed una nuova vesta grafica, fossi in te aspetterei qualche giorno il rilascio della versione 3 stabile di phpbb, ora in beta5.
Ciao
KenMarshall:
Thanks for helping
xBalanaRx:
Hello,
I’m loking for a song lyrics website. I was using: http://www.lyricshunt.com but I think they brought it down for updates – I can’t access it anymore.
Sorry for posting in the “this” category.
Regards,
Balanar
[...] Visit [...]
MariaTereza:
Hello i’m new here
Let me in!
i can’t use this plugin
please help me
my wordpress system address is: http://www.fu20.com/car
and my phpbb froum address is: http://car.fu20.com
what is “$host” & “$forum_path” address
help meeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
please!
Hi, your path is where is the config.php of the phpbb.
For my site is
$forum_path = “forum”;
$host = “http://www.4mj.it/forum”;
You can also copy the data in config.php,
$prefix = “phpbb_”;
$dbhost = ‘*****’;
$dbname = ‘*****’;
$dbuser = ‘*****’;
$dbpasswd = ‘*****’;
$connection = mysql_connect($dbhost, $dbuser, $dbpasswd);
$s_db = mysql_select_db($dbname, $connection);
I seem to be getting the header from my phpbb forum on the WP index instead of just the recent topics can you help?
[...] WP-Phpbb Last Topics to include the current forum topics on the front page [...]
[...] server del blog dovete usare Phpbb_recent_topics e qui il sito ufficiale.(ho provato anche ad usare Wp-Phpbb, ma funziona solo per forum installati nello stesso spazio web) Segnala [...]
[...] Plugin tương tự: WP-Phpbb Last Topics [...]
[...] Plugin tương tự: WP-Phpbb Last Topics [...]
[...] då ett plugin som kan hjälpa dig att visa dessa trådar. Du finner pluginet på denna webbplats: WordPress Phpbb Last Topics Plugin Taggar: Blogg, Forum, phpBB, WordPress Plugin, WordPress Plugins Lämna en kommentar [...]












[...] 插件页面: 点击进入 [...]