Invision Power Board forum bridge
This is a script we use on the norwegian community root.no to show the latest messages from our IPB forum in our WordPress blog template.
I already published this on my norwegian blog so I figgured I’d do the english speaking world a favor and publish it here as well in case someone was searching for “Invision Power Board forum bridge” and found the norwegian language one ;-)
The script can be downloaded here.
It will output the latest X number of messages from the forum (with forum_id’s specified in the script) in the format:
- ’s around the include in your template.
Here’s how we use it:
<h2><em>Latest in the forum</em></h2>
<?php include "../inc/ipb_last10.php"; ?><br />
Edit the script before you upload it to your server. It should be pretty self-explanatory, but if you run into any problems just write a comment on this entry.
The script is released under a Creative Commons Attribution-Share Alike 3.0 Unported License, so enjoy.
Comment by Thomas on 2009-05-21 23:19:43 +0000
Hi thanks for tha beautiful script… but I tried to install it on my site but is doesnt work… I just have a blank page :/ Problem may come from the root path to the forum.. should it start like this : /customers/neo-rammstein.com/…. ?
Any ideas otherwise? thx
Comment by Bjørn on 2009-05-21 23:55:47 +0000
you need to find the path to the /forum/conf_global.php somehow. You can try with a relative path (like ../forum/conf_global.php etc) but if that doesn’t work you can ask your webhost for that path.
Comment by Thomas on 2009-05-22 11:21:33 +0000
well i tried to find it with a PHP script :
and when i open it, it gives me a long path /customers/neo-rammstein.com/…. /index.php so i replace index.php with forum/conf_global.php
Comment by Bjørn on 2009-05-22 11:40:44 +0000
Well, first – it depends on where your forum is installed; is it located in /forum/ ? Also, when I visit your site I find phpBB – this script is for IPB.
Comment by Thomas on 2009-05-22 12:45:06 +0000
Don’t pay attention on what you see for the moment, this is my old site (only one html page), i’m finishing my new php site. And there will be a IPB forum for it. It’s installed at the root of my server in /forum/
Comment by Bjørn on 2009-05-22 12:54:24 +0000
Okey, where did you upload the script?
Comment by Thomas on 2009-05-22 13:00:20 +0000
Its located in a sidebar, i inclueded on every pages. But yesterday, a friend of mine created me a similar script. We tried to make yours working but we failed.
His script is working… but i still have some small problems (may I ask you to have a look on it to help me to fix it? :) )
Comment by Bjørn on 2009-05-22 13:03:08 +0000
I mean – where on your server did you upload the script?
Comment by Thomas on 2009-05-22 13:07:35 +0000
at the root
Comment by Thomas on 2009-05-22 13:08:22 +0000
but i also tried to put it in the forum folder… but I had the same problem : blank page
Comment by Bjørn on 2009-05-22 13:11:46 +0000
ok, in the script located in the root, try setting the path like this:
If this does not work, you need to contact your host to get the full path of the conf_global.php file and use that.
Comment by Thomas on 2009-05-22 13:38:55 +0000
I will contact my host to get that path… becaus your fix still gives me blank page :/ Thanks for your help though