Support » Plugin: Bowe Codes » [Plugin: Bowe Codes] bc_group slug: incorrect link when WordPress is not in domain root folder

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Kraigg,

    I’ll need your help to fix this, can you try to edit the main plugin file (bowe-codes.php) at line 71 you’ll find this :
    $group_home = $bp->root_domain.'/'.BP_GROUPS_SLUG.'/'.$slug.'/';
    replace it by this 2 lines :

    $group = groups_get_group( 'group_id='.$id );
    $group_home = bp_get_group_permalink( $group );

    Then tell me if it’s fixing the trouble.. if so i’ll upgrade the plugin. Thanks

    Thanks for that, Imath

    On line 71, I changed it to:

    $current_group_folder = site_url();
    $group_home = $current_group_folder.'/'.BP_GROUPS_SLUG.'/'.$slug.'/';

    My solution worked fine, except it conflicted with the BP Group Hierarchy plugin when it came to sub-groups. Your solution worked a lot better.

    Thanks again!

    Hi Kraigg,

    Thanks for your feedback.
    Then i’ll add the fix to the plugin and release soon an upgrade 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Bowe Codes] bc_group slug: incorrect link when WordPress is not in domain root folder’ is closed to new replies.