Help - Search - Members - Calendar
Full Version: How To Fetch Forum Posts From Phpbb2 And Ipb
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > PHP
darkgen
hi

i currently have 2 forums, 1 of them is phpbb2 and another 1 is a free version of ipb from invisionfree.com

i just have a question...

can some one show me how to fetch posts from phpbb and ipb using php and put them on the front page of a site??

thanks

-darkgen
MrTouz
im a noob when it comes to php and mysql but :

i am guessing you will need to connect to 2 databases with the same script
tell your script to search for the "post table" which is where all your posts are stored.
tell your script to count the number of rows to each databases.

i would of tried but i do not think i know how to connect 2 databases in one script, must be kind of hard... like i said.. im a noob to php and mysql
Trice
QUOTE(darkgen @ Feb 10 2008, 11:00 AM) *
hi

i currently have 2 forums, 1 of them is phpbb2 and another 1 is a free version of ipb from invisionfree.com

i just have a question...

can some one show me how to fetch posts from phpbb and ipb using php and put them on the front page of a site??

thanks

-darkgen


First question is, regarding your knowledge first. Do you actually know php and how to use php to connect to mysql databases?
Anyones first suggestion would be to learn the language sufficently enough that you'd be able to make your own pages that can connect to a working database.
Next suggestion would be to write a script that would connect to both your phpbb2 and your ibp forum databases, and then you'd have to (by looking manually into each of the 2 databases and finding out where the posts are, and how each forums pull the specific info from the databases) take the data from the tables you need. And manually make your own script to display it.


Hope this helps
Trice
Paradoks
Trice, What your attempting to do is Intergrate a forum. You can do that with a forum that uses the same database as your site, or is located in the /forums/ or w.e forum and MUST be on the same server. Here is a simple tutorial to help you with the PHP BB but since the invisionfree is hosted on their servers u cant fetch anything from that.

Tutorial:http://marek.litomisky.com/2007/03/26/php-phpbb2-integration-with-your-site/
Tutorial2:http://deceptive-logic.com/index.php?id=tutorial&cat=php&tutorial=topic

NOTE: Tutorial 1 is strictly for learning. I suggest you read that. Tutorial 2 is completly copy paste with some learning. Although you will find problems/ errors with tutorial 2 thats why you must first read tutorial one.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.