Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: “My Threads” – User Specific Views


Sam Bauers
Participant

@sambauers

You should be aware that views are registered differently in the latest versions in trunk. Views are now constructed using the BB_Query class.

See the latest Support Forum plugin for a way to use both the new and old, although it is wrapped in a Class in there so the basic idea is:

if (is_callable('bb_register_view')) { // Build 876+
$query = <SOME ARRAY ACCEPTABLE TO BB_QUERY>;
bb_register_view('myview', __('My view name'), $query);
} else { // Build 214-875
add_filter('bb_views', 'my_addView');
add_action('bb_custom_view', 'my_processView');
}

Skip to toolbar