Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: New Groupblog Plugin

@mariusooms

Participant

As promised…for now it means changing the code inside the plugin as follows:

* Find this function groupblog_screen_blog() in bp-events.php (somewhere towards the bottom)

* Uncomment that whole function.

* Replace it with the following function:

function groupblog_screen_blog() {
global $bp;

if ( $bp->current_component == $bp->groups->slug && 'blog' == $bp->current_action ) {

bp_core_load_template( apply_filters( 'groupblog_screen_blog', 'groupblog/blog' ) );
}
}
add_action( 'wp', 'groupblog_screen_blog', 4 );

* Create a folder in your active theme directory named ‘groupblog’.

* Then create your template file (in this case ‘blog.php’) in the groupblog folder.

Send me a message if you run into problems :)

The basic difference is that in this function we use bp_core_load_template to load our template file and fire an add_action to register this function.

Skip to toolbar