Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: MegaPoppo on August 30, 2006, 03:54:04 AM

Title: Help with broswing message with MessageIndex.php
Post by: MegaPoppo on August 30, 2006, 03:54:04 AM
Hi,

I'm working with my mod that try to browse the boards using SSI.php
I try the following code,


require_once($sourcedir . '/BoardIndex.php');
BoardIndex();


and then I can use $context['categories'] to list all board in my site.

Now I want to list the topic in the board so I use the similar method,


require_once($sourcedir . '/MessageIndex.php');
MessageIndex();


this time I can get the child board but no topics is in $context['topics'].

What is wrong this time, any idea?

Thanks anyway
---------------
MegaPoppo
Title: Re: Help with broswing message with MessageIndex.php
Post by: MegaPoppo on August 30, 2006, 04:13:58 AM
OK

I had known what I missed is that I didn't call loadBoard()