Page 1 of 1

reading news from yabb

Posted: Thu Aug 03, 2006 6:32 am
by gaogier
hi,

i have gone over to yabb, which is perl based, but, i want to know, how can i read the news from the forums, to go onto the main site, keeping all the style its in now, but, using a different forum

i would like this done in php, or would it have to be done in perl,

i have got most of the perl work done, but, if it has to be done in perl, can someone tell me an address to a forum like this for perl?

Posted: Thu Aug 03, 2006 6:41 am
by shiznatix

Code: Select all

echo '<pre>';
print_r(file_get_contents('http://www.yabbforum.com/community/YaBB.pl?board=general'));
echo '</pre>';
start with that, then keep going.

Posted: Thu Aug 03, 2006 6:47 am
by gaogier
so it can be done in php?

Posted: Thu Aug 03, 2006 7:15 am
by shiznatix
gaogier wrote:so it can be done in php?
your original question is poorly worded but this is what I think you are trying to do:

You want to have a script go to the yabb forums website, get the topics from one of the forums, then display that information on your own website with formatting kept the same.

Yes, that can be done with PHP. Their server outputs HTML so you don't have to use the same technology that they use to output it to get it, just get what was outputted (the HTML).

Just use the file_get_contents() function to get the pages HTML, try it and see.


LEGAL WARNING!
It is probably illigal to steal their content and put it on your site as your own. You should definatly get permission first.

Posted: Fri Aug 04, 2006 6:37 am
by gaogier
its content from my forums, which is yabb powered