Forum tab doesn't get group theme, applying the patch on #13 #595820: Organic groups pages don't get group theme to og_panels fixed the this bug as well

Comments

tom_buytaert’s picture

but this fix uses og_panels to fix it. i'm having the same problem (no group theme for the OG forums) but am not using panels.

tom_buytaert’s picture

i solved it by using sections for those pages, but it would be nice if it could also be done without this extra module.

btopro’s picture

would you mind posting your implementation to make this theme the og forums correctly?

btopro’s picture

found a solution in another thread and adapted it. in case anyone was curious create the following function --

function og_forum_init(){
  $group_node = node_load(arg(1));
  if(og_is_group_type($group_node->type)){
    og_set_theme($group_node);
    og_set_group_context($group_node);
    og_set_language($group_node);
  }
}
bjc5070’s picture

new to custom theming where would I put this patch?

btopro’s picture

just put it in the og_forum module the way it's written here.

bjc5070’s picture

I installed the patch and it seems to be working well.

vegantriathlete’s picture

Version: 6.x-2.2 » 6.x-2.x-dev
Issue summary: View changes
Status: Active » Closed (won't fix)
vegantriathlete’s picture