MyBB Community Forums

Full Version: Adapt phpb script for mybb
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all,

I'm new to mybb, having previously used phpbb. I have a script that allows me to see the most recent five posts on my website's homepage. With mybb it doesn't work obviously and I have been trying to figure out how to adapt it to make it work.

I have looked on here at similar posts but they all seem quite old so I'm not sure if they would still be relevant.

In my case, all I need to do is create a connection to the database and then return a few details on the most recent posts such as user, post title, post date etc.

If anyone can help point me in the right direction to a relevant post or has a script that does just what I need, I would be eternally grateful.

Thank you.
Andy
Hi,

well, I can't say much without seeing the script, but if it's just a new page, you can take a look at:
http://docs.mybb.com/1.8/development/plu...arate-file

And also at:
http://docs.mybb.com/1.8/development/plu...e-methods/
if you're not familiar with MyBB database functions.