Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Working Member List?

@_ck_

Participant

Now we need a proper function to process/display the view output.

Because we are essentially tricking bbPress into doing this view for us, we have to make sure we do all the output ourselves, like this mini-example

function member_list($view='') {
if (!empty($view) && $view!='member-list') {return;}
bb_send_headers();
bb_get_header();
// do view stuff here
bb_get_footer();
exit;
}

first we make sure the view is for us, if so we send any http headers, then we send any bbPress html headers like in a normal page (meta, css, etc.) then we do our view, then we send the bbPress footer and we force PHP to stop afterwards.

Skip to toolbar