MyBB Community Forums

Full Version: How can I do this?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,

I want to pull all the first posts from the threads in the forum id 2 (news). I want to remove all CSS stylings and just get the post, plus, after X news posts (lets say 10) it goes onto a new page.

Is there anyway to do this without using a portal? Thanks Big Grin

-Alex

EDIT: SOLVED.

Just remembered php parse. For anyone else who wants to kno wthe code:
Latest news:<br>
<?php
$page = file_get_contents('http://www.animetenshi.net/forum/portal.php');
eregi('<!-- start: portal_announcement -->(.*)<!-- end: portal_announcement -->', $page, $result);
echo ("$result[1]");
?>

Change http://www.animetenshi.net/forum/ to your forum url